/* ═══════════════════════════════════════════════════
   WolvPay Auth Pages - Login · Register · Reset
   Matches landing page design language
═══════════════════════════════════════════════════ */

/* Page wrapper */
.auth-page {
    background: var(--bg);
    min-height: 100vh;
}

/* Hide the floating nav on auth pages - no double-branding */
.auth-page .lp-nav-wrap {
    display: none !important;
}

/* ── Two-column layout ── */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ══════════════
   LEFT PANEL
══════════════ */
.auth-left {
    position: relative;
    background: linear-gradient(155deg, #0a0a14 0%, #0c0c18 40%, #07070f 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.055);
    padding: 56px 56px 56px 56px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Ambient glow orbs */
.auth-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-orb-a {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 65%);
    top: -140px;
    left: -120px;
}

.auth-orb-b {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 65%);
    bottom: -80px;
    right: -80px;
}

.auth-orb-c {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 65%);
    top: 40%;
    right: 10%;
}

/* Brand mark at top */
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    margin-bottom: 3rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.auth-brand-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.auth-brand-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.45);
    flex-shrink: 0;
}

.auth-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--white);
}

/* Main body */
.auth-left-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 20px 0;
}

/* Hero image on left panel */
.auth-left-img {
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
    margin-top: 2rem;
    opacity: 0.92;
    filter: drop-shadow(0 8px 32px rgba(99, 102, 241, 0.15));
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 1.25rem;
}

.auth-left-title {
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 0.85rem;
}

.auth-left-sub {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.75;
    max-width: 360px;
    margin-bottom: 2rem;
}

/* Mini stats strip */
.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.875rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.auth-stat {
    padding: 1rem 1rem 1rem 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-stat:last-child {
    border-right: none;
}

.auth-stat-num {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.2rem;
}

.auth-stat-label {
    font-size: 0.68rem;
    color: var(--gray-500);
    line-height: 1.35;
}

/* Feature list */
.auth-feat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.auth-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.865rem;
    color: var(--gray-300);
    line-height: 1.5;
}

.auth-feat-icon {
    width: 28px;
    height: 28px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--accent-text);
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* Testimonial card */
.auth-testimonial {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    position: relative;
    z-index: 1;
}

.auth-testi-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.65rem;
    color: #f59e0b;
    font-size: 0.78rem;
}

.auth-testi-quote {
    font-size: 0.855rem;
    color: var(--gray-300);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 0.85rem;
}

.auth-testi-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.auth-testi-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.auth-testi-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.25;
}

.auth-testi-role {
    font-size: 0.71rem;
    color: var(--gray-500);
}

/* ══════════════
   RIGHT PANEL
══════════════ */
.auth-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: var(--bg);
    position: relative;
}

.auth-right-inner {
    width: 100%;
    max-width: 420px;
}

/* Auth card */
.auth-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2.25rem 2.25rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Top accent line */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.55) 35%,
        rgba(139, 92, 246, 0.5) 65%,
        transparent 100%
    );
}

.auth-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.auth-card-sub {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

/* Form label */
.auth-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 0.4rem;
}

/* Input fields */
.auth-input {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    color: var(--white);
    padding: 0.68rem 1rem;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.04);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    color: var(--white);
}

.auth-input::placeholder {
    color: var(--gray-600);
    font-size: 0.85rem;
}

/* Password wrap */
.auth-pw-wrap {
    position: relative;
}

.auth-pw-wrap .auth-input {
    padding-right: 2.8rem;
}

.auth-pw-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
    transition: color 0.18s;
}

.auth-pw-toggle:hover {
    color: var(--gray-300);
}

/* Remember / forgot row */
.auth-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--gray-400);
    cursor: pointer;
    user-select: none;
}

.auth-checkbox {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-forgot-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-text);
    transition: color 0.18s;
}

.auth-forgot-link:hover {
    color: var(--white);
}

/* Submit button */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.625rem;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    line-height: 1.5;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 4px 14px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
    color: var(--white);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Captcha row */
.auth-captcha {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Terms/checkbox row */
.auth-agree-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--gray-400);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.auth-agree-row a {
    color: var(--accent-text);
    font-weight: 500;
}

.auth-agree-row a:hover {
    color: var(--white);
}

/* Footer link below card */
.auth-foot-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--gray-500);
}

.auth-foot-text a {
    color: var(--accent-text);
    font-weight: 500;
}

.auth-foot-text a:hover {
    color: var(--white);
}

/* Alert box */
.auth-alert-box .alert {
    border-radius: 0.625rem;
    font-size: 0.83rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
}

.alert-success {
    background: rgba(34, 197, 94, 0.08) !important;
    border-color: rgba(34, 197, 94, 0.2) !important;
    color: #86efac !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
    color: #fcd34d !important;
}

/* Reset-password steps indicator */
.auth-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.75rem;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-600);
}

.auth-step.active { color: var(--accent-text); }
.auth-step.done   { color: var(--success); }

.auth-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.auth-step.active .auth-step-num {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--accent-text);
}

.auth-step.done .auth-step-num {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.auth-step-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 0.6rem;
    min-width: 32px;
}

/* Centered single-card layout (reset password) */
.auth-centered-wrap {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
}

.auth-centered-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.auth-centered-card {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

/* Icon circle for centered pages */
.auth-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(79,70,229,0.1));
    border: 1px solid rgba(99,102,241,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-text);
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 24px rgba(99,102,241,0.2);
}

/* Divider with text */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.auth-divider span {
    font-size: 0.7rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

/* Input field spacing utility */
.auth-field { margin-bottom: 1rem; }

/* ══════════════
   RESPONSIVE
══════════════ */
@media (max-width: 991.98px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    /* Show nav again on mobile since left brand panel is hidden */
    .auth-page .lp-nav-wrap {
        display: flex !important;
    }

    .auth-right {
        min-height: 100vh;
        padding: 40px 20px;
    }
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .auth-right {
        padding: 30px 16px;
    }

    .auth-centered-wrap {
        padding: 40px 16px;
    }
}
