.auth-panel .brand {
    margin-bottom: var(--space-4);
    color: var(--text-main);
    font-size: var(--fs-h3);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
}

.auth-panel h1 {
    font-size: var(--fs-h2);
    line-height: var(--lh-tight);
    letter-spacing: 0;
}

.auth-panel-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.auth-panel .subtitle {
    max-width: 320px;
    margin: 0 auto;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
}

.auth-panel .stack {
    gap: var(--space-3);
    margin-top: 0;
}

.auth-panel .field {
    gap: var(--space-2);
    color: var(--text-strong);
    font-family: var(--font-heading);
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    text-align: left;
}

.auth-panel input::placeholder {
    color: rgba(100, 116, 139, 0.5);
}

.auth-panel input,
.auth-panel .primary-button {
    width: 100%;
    height: 56px;
    font-size: var(--fs-body);
    line-height: var(--lh-snug);
}

.auth-secondary-action {
    width: 100%;
    min-height: 44px;
}

.auth-email-sent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    text-align: center;
}

.auth-email-sent.hidden {
    display: none;
}

.auth-email-sent-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: var(--fw-extrabold);
}

.auth-email-sent-copy {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.auth-email-sent-copy h2,
.auth-email-sent-copy p {
    margin: 0;
}

.auth-email-sent-copy h2 {
    font-size: var(--fs-h3);
}

.auth-email-sent-copy strong {
    overflow-wrap: anywhere;
    color: var(--text-strong);
}

.auth-email-sent .primary-button {
    width: 100%;
}

.auth-panel input {
    padding: 0 var(--space-4);
}

.auth-password-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-2);
}

.auth-panel .auth-password-input-row input {
    min-width: 0;
}

.auth-password-tool,
.auth-password-generate-row .ghost-button {
    height: 44px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: var(--fs-caption);
    font-weight: var(--fw-bold);
    line-height: 1;
    white-space: nowrap;
}

.auth-password-generate-row {
    display: flex;
    justify-content: flex-start;
}

.auth-password-requirements {
    width: 100%;
    text-align: left;
}

.auth-password-requirements.hidden,
.auth-password-generate-row.hidden {
    display: none;
}

.auth-panel .primary-button {
    padding: 0 var(--space-4);
}

.auth-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
}

.auth-panel-head .brand {
    margin-bottom: 0;
}

.release-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 7px 10px 7px 8px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--text-body);
    font-family: var(--font-heading);
    font-size: var(--fs-caption);
    font-weight: var(--fw-bold);
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 18px -18px rgba(15, 23, 42, 0.28);
}

.release-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-soft);
    flex: 0 0 auto;
    animation: release-dot-pulse 2.8s ease-in-out infinite;
}

.release-badge span {
    color: var(--text-strong);
    font-weight: var(--fw-extrabold);
}

@keyframes release-dot-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 4px var(--success-soft);
    }

    55% {
        box-shadow: 0 0 0 8px rgba(33, 192, 4, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .release-badge::before {
        animation: none;
    }
}
