.auth-shell-password {
    width: min(760px, calc(100% - 32px));
}

.password-panel {
    gap: 14px;
}

.password-logo-stage {
    margin-bottom: 4px;
}

.password-form {
    gap: 14px;
}

.password-reset-confirm-form {
    gap: 18px;
}

.password-reset-confirm-form .password-rules {
    margin-top: 2px;
}

.password-reset-confirm-form .submit-btn {
    margin-top: 2px;
}

.password-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.password-head-actions .panel-link {
    width: auto;
}

.password-summary-card,
.password-empty-state {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--green-50);
}

.password-summary-card strong,
.password-empty-state strong {
    font-size: 1rem;
    font-weight: 700;
}

.password-summary-card p,
.password-empty-state p {
    color: var(--text-soft);
    font-size: var(--text-sm);
    line-height: 1.55;
}

.password-summary-success {
    border-color: rgba(40, 125, 94, 0.18);
    background: var(--success-soft);
}

.password-empty-state {
    border-color: rgba(177, 77, 68, 0.18);
    background: rgba(177, 77, 68, 0.08);
}

.password-empty-state strong {
    color: #7f302a;
}

.password-action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.password-summary-card + .password-action-row,
.password-empty-state + .password-action-row {
    margin-top: 14px;
}

.password-action-row .primary-btn,
.password-action-row .secondary-btn {
    flex: 1 1 220px;
    width: auto;
}

.password-choice-list {
    display: grid;
    gap: 12px;
}

.password-choice-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--surface-raised);
}

.choice-copy {
    display: grid;
    gap: 6px;
}

.choice-label {
    font-size: var(--text-xs);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.choice-copy strong {
    font-size: var(--text-lg);
    line-height: 1.2;
}

.choice-copy p {
    color: var(--text-soft);
    font-size: var(--text-sm);
    line-height: 1.55;
}

.choice-btn {
    flex: 0 0 auto;
    min-width: 208px;
    width: auto;
}

.otp-input {
    text-align: center;
    letter-spacing: 0.32em;
    font-weight: 700;
}

.otp-summary-card {
    gap: 14px;
}

.otp-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.otp-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 138, 100, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-base);
    font-weight: 600;
}

.otp-resend-panel {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.otp-timer {
    color: var(--text-soft);
    text-align: center;
}

.otp-resend-actions {
    width: 100%;
}

.otp-resend-actions form {
    display: flex;
    justify-content: center;
}

.otp-resend-actions .secondary-btn {
    width: auto;
    min-width: 200px;
}

.otp-footer {
    justify-content: center;
}

@media (max-width: 720px) {
    .auth-shell-password {
        width: min(100%, calc(100% - 20px));
    }

    .password-head-actions {
        width: 100%;
        display: grid;
    }

    .password-head-actions .panel-link {
        width: 100%;
    }

    .password-choice-card {
        flex-direction: column;
        align-items: stretch;
    }

    .choice-btn {
        width: 100%;
        min-width: 0;
    }

    .otp-targets {
        display: grid;
    }

    .otp-resend-actions .secondary-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .password-action-row {
        display: grid;
    }

    .password-action-row .primary-btn,
    .password-action-row .secondary-btn {
        width: 100%;
    }
}
