body {
    background-color: #121419;
    color: #edf0f5;
    font-family: "Rubik", Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1.5rem;
    box-sizing: border-box;
}

button,
input {
    font-family: "Rubik", Arial, Helvetica, sans-serif;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-form:not(.auth-panel),
.login-card {
    background-color: #1a1e26;
    padding: 2.25rem;
    border: 1px solid #353b48;
    border-radius: 0.875rem;
    width: 100%;
    max-width: 25rem;
    box-sizing: border-box;
}

.login-card {
    max-width: 27rem;
}

.auth-panel {
    margin: 1.35rem 0 0;
}

.auth-panel[hidden] {
    display: none;
}

.brand-wordmark {
    margin-bottom: 2rem;
    color: #f7f9fc;
    font-size: 1.8rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.input-group {
    margin-bottom: 1.15rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #c6ceda;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #4b5361;
    border-radius: 0.5rem;
    background-color: #121419;
    color: #edf0f5;
    font-size: 1rem;
    box-sizing: border-box;
}

.input-group input::placeholder {
    color: #929dac;
    opacity: 1;
}

.input-group input:focus {
    outline: 3px solid rgba(107, 124, 255, 0.45);
    outline-offset: 1px;
    border-color: #8f9cff;
}

button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #6b7cff;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 180ms ease;
}

button:hover {
    background-color: #8290ff;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(143, 156, 255, 0.48);
    outline-offset: 2px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.error {
    color: #ffb4bd;
    margin-top: 1rem;
}

.login-kicker {
    margin: 0 0 0.5rem;
    color: #aab6ff;
    font-size: 0.85rem;
    font-weight: 600;
}

.login-tabs {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.6rem;
    border-bottom: 1px solid #353b48;
}

.login-tab {
    width: auto;
    margin: 0 0 -1px;
    padding: 0.7rem 0.1rem;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #aeb8c6;
    font-size: 0.92rem;
    font-weight: 550;
}

.login-tab:hover {
    background: transparent;
    color: #f7f9fc;
}

.login-tab.is-active {
    border-bottom-color: #8f9cff;
    color: #f7f9fc;
}

.verification-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
}

.send-code-button {
    width: 7.5rem;
    padding-inline: 0.8rem;
    border: 1px solid #4b5361;
    background: #252a35;
    color: #edf0f5;
    font-size: 0.9rem;
    white-space: nowrap;
}

.send-code-button:hover {
    background: #303642;
}

.sms-status {
    min-height: 1.3rem;
    margin: -0.35rem 0 0.85rem;
    color: #bbf4d9;
    font-size: 0.86rem;
    line-height: 1.4;
}

.sms-status.is-error {
    color: #ffb4bd;
}

h1,
h2,
h3 {
    margin: 0;
    color: #f7f9fc;
    text-wrap: balance;
}

h1 { font-size: 1.65rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

.login-copy,
.workspace-copy p,
.workspace-state p {
    color: #c6ceda;
    line-height: 1.55;
}

.login-help,
.field-hint {
    color: #aeb8c6;
    font-size: 0.86rem;
    line-height: 1.45;
}

.field-hint { margin: 0.45rem 0 0; }

a { color: #aab6ff; }

.workspace-body {
    display: block;
    min-height: 100vh;
    height: auto;
}

.workspace-shell {
    width: min(100% - 2rem, 68rem);
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.workspace-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.workspace-logo {
    display: block;
    width: 7.5rem;
    margin-bottom: 1.5rem;
}

.quiet-link {
    color: #c6ceda;
    text-decoration: none;
}

.quiet-link:hover { color: #f7f9fc; text-decoration: underline; }

.workspace-main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
    border-top: 1px solid #353b48;
    border-bottom: 1px solid #353b48;
}

.workspace-state {
    padding: 1.5rem;
    background: #1a1e26;
    border: 1px solid #353b48;
    border-radius: 0.75rem;
}

.state-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    background: #27314d;
    color: #c7d0ff;
    font-size: 1.5rem;
}

.status-chip {
    display: inline-flex;
    margin-top: 0.5rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #253b35;
    color: #bbf4d9;
    font-size: 0.82rem;
}

.notice {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid #7b4e58;
    border-radius: 0.5rem;
    background: #311f27;
    color: #ffd9df;
}

.notice-success { border-color: #477563; background: #1d3029; color: #c9f8df; }
.workspace-footer { margin-top: 1.5rem; color: #aeb8c6; font-size: 0.9rem; }

@media (max-width: 720px) {
    body { padding: 1rem; }
    .login-form:not(.auth-panel), .login-card { padding: 1.5rem; }
    .workspace-shell { width: min(100% - 1.5rem, 68rem); padding-top: 1.5rem; }
    .workspace-header { flex-direction: column-reverse; }
    .workspace-main { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 390px) {
    .verification-row { grid-template-columns: 1fr; }
    .send-code-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    button { transition: none; }
}
