/* ── Forgot Password Page ── */
.reset-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--background, #f5f5f5);
}

.reset-card {
    background: var(--surface, #fff);
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.reset-logo {
    text-align: center;
    margin-bottom: 28px;
}

.reset-logo img {
    width: 48px;
    height: 48px;
}

.reset-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary, #B8960C);
    letter-spacing: 2px;
    margin-top: 6px;
}

/* ── Steps indicator ── */
.steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--border, #ddd);
    color: var(--text-3, #aaa);
    background: var(--surface, #fff);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.step-dot.active {
    border-color: var(--primary, #B8960C);
    color: var(--primary, #B8960C);
    background: rgba(184, 150, 12, 0.08);
}

.step-dot.done {
    border-color: #4caf50;
    background: #4caf50;
    color: #fff;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border, #ddd);
    max-width: 48px;
    transition: background 0.3s;
}

.step-line.done {
    background: #4caf50;
}

/* ── Step panels ── */
.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1, #111);
    margin-bottom: 6px;
}

.step-desc {
    font-size: 13px;
    color: var(--text-2, #666);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ── Form ── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2, #555);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1.5px solid var(--border, #ddd);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--surface, #fff);
    color: var(--text-1, #111);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary, #B8960C);
}

/* ── Phone hint box ── */
.phone-hint-box {
    background: rgba(184, 150, 12, 0.07);
    border: 1px solid rgba(184, 150, 12, 0.3);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-hint-icon {
    font-size: 22px;
}

.phone-hint-text {
    font-size: 13px;
    color: var(--text-2, #555);
    line-height: 1.5;
}

.phone-hint-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary, #B8960C);
    font-family: monospace;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* ── OTP input ── */
.otp-input {
    text-align: center !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: 10px !important;
    font-family: monospace !important;
}

/* ── Password strength ── */
.password-strength {
    margin-top: 6px;
    height: 5px;
    border-radius: 3px;
    background: var(--border, #ddd);
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.35s, background 0.35s;
    width: 0%;
}

.strength-hint {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 600;
}

/* ── Password input wrapper ── */
.pwd-wrapper {
    position: relative;
}

.pwd-wrapper input {
    padding-left: 40px !important;
}

.pwd-toggle {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-3, #aaa);
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 16px;
    transition: color 0.2s;
}

.pwd-toggle:hover {
    color: var(--primary, #B8960C);
}

/* ── Requirements list ── */
.pwd-requirements {
    margin: 10px 0 4px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 12px;
}

.pwd-req {
    font-size: 12px;
    color: var(--text-3, #aaa);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.25s;
}

.pwd-req .req-icon {
    font-size: 13px;
    width: 16px;
    text-align: center;
    transition: all 0.25s;
}

.pwd-req.met {
    color: #4caf50;
    font-weight: 600;
}

/* ── Match indicator ── */
.match-hint {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
    min-height: 18px;
    transition: color 0.2s;
}

.match-hint.ok {
    color: #4caf50;
}

.match-hint.err {
    color: #f44336;
}

/* ── Buttons ── */
.btn-primary {
    width: 100%;
    padding: 13px;
    background: var(--primary, #B8960C);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 4px;
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-primary:active:not(:disabled) {
    transform: scale(0.99);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-2, #666);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
}

.btn-back:hover {
    color: var(--primary, #B8960C);
}

/* ── Alert ── */
.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
}

.alert-error {
    background: rgba(198, 40, 40, 0.1);
    border: 1px solid rgba(198, 40, 40, 0.3);
    color: #c62828;
}

.alert-success {
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.3);
    color: #2e7d32;
}

/* ── Success screen ── */
.success-screen {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.success-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1, #111);
    margin-bottom: 8px;
}

.success-desc {
    font-size: 14px;
    color: var(--text-2, #666);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ── OTP Countdown ── */
.otp-countdown {
    font-size: 12px;
    color: var(--text-3, #aaa);
    text-align: center;
    margin-top: 10px;
}

.otp-resend {
    background: none;
    border: none;
    color: var(--primary, #B8960C);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    display: none;
}

/* ── Back to login ── */
.back-to-login {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-2, #666);
}

.back-to-login a {
    color: var(--primary, #B8960C);
    text-decoration: none;
    font-weight: 600;
}

.back-to-login a:hover {
    text-decoration: underline;
}

/* ── Spinner ── */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fp-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

@keyframes fp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Phone input inline style → class ── */
.phone-last4-input {
    text-align: center;
    font-size: 22px;
    letter-spacing: 8px;
    font-family: monospace;
}

/* ── OTP center margin ── */
.otp-resend-wrap {
    text-align: center;
    margin-top: 6px;
}

/* ── Or divider ── */
.or-divider {
    text-align: center;
    font-size: 12px;
    color: var(--text-3, #aaa);
    margin: -8px 0 12px;
}