/* ==========================================================================
   Relox Virtual Lab - Account recovery pages (Forgot Password / OTP / Reset)
   Builds on the login styles in relox-modern.css (.login-page-modern, .rx-login-*)
   ========================================================================== */

.rx-auth-wrapper {
    max-width: 920px;
}

.rx-auth-wrapper .rx-login-brand-pane {
    flex: 1 1 40%;
}

.rx-auth-wrapper .rx-login-form-pane {
    flex: 1 1 60%;
}

.rx-auth-logo {
    height: 48px;
    width: 48px;
    border-radius: 10px;
    background: #ffffff;
    padding: 4px;
}

/* Recovery steps */
.rx-auth-steps {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rx-auth-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 22px;
}

.rx-auth-step:last-child {
    padding-bottom: 0;
}

.rx-auth-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 4px;
    width: 2px;
    background: rgba(148, 163, 184, 0.25);
}

.rx-auth-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.rx-auth-step-text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.3;
}

.rx-auth-step-text span {
    display: block;
    font-size: 0.78rem;
    color: #7c8ba1;
    margin-top: 2px;
}

.rx-auth-step.is-active .rx-auth-step-dot {
    color: #ffffff;
    background: #0284c7;
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.rx-auth-step.is-active .rx-auth-step-text strong {
    color: #ffffff;
}

.rx-auth-step.is-done .rx-auth-step-dot {
    color: #ffffff;
    background: #10b981;
    border-color: #34d399;
}

.rx-auth-step.is-done:not(:last-child)::after {
    background: rgba(16, 185, 129, 0.5);
}

/* Form pane */
.rx-auth-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.3rem;
    color: #0284c7;
    background: #e0f2fe;
}

.rx-auth-back {
    margin-top: 22px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

.rx-auth-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
}

.rx-auth-back a:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* OTP input: large, spaced digits */
.rx-form-control.rx-otp-input {
    padding-left: 42px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.45em;
    font-variant-numeric: tabular-nums;
}

.rx-form-control.rx-otp-input::placeholder {
    font-size: 0.925rem;
    font-weight: 400;
    letter-spacing: normal;
}

/* Show / hide password toggle */
.rx-input-wrapper .rx-toggle-password {
    position: absolute;
    right: 8px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.rx-input-wrapper .rx-toggle-password:hover {
    color: #0284c7;
    background: #f0f9ff;
}

.rx-input-wrapper .rx-form-control.has-toggle {
    padding-right: 48px;
}

.rx-auth-hint {
    margin: -8px 0 18px;
    font-size: 0.78rem;
    color: #64748b;
}

a.rx-btn-submit,
a.rx-btn-submit:hover {
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 860px) {
    .rx-auth-steps {
        display: none;
    }
}
