/* ══════════════════════════════════════════════════════════
   AUTH PAGES — Login, Register, Welcome
   PropFirmMap 2026 — Modern glassmorphic auth experience
   ══════════════════════════════════════════════════════════ */

/* ── Layout: Split Screen ── */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 960px;
    width: 100%;
    background: rgba(255,255,255,0.06);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.05) inset;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ── Left: Form Panel ── */
.auth-form-panel {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    margin-bottom: 32px;
}

.auth-form-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.auth-form-header p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}

/* ── Form Elements ── */
.auth-field {
    margin-bottom: 20px;
    position: relative;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: var(--font-family-base);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.auth-field input::placeholder {
    color: rgba(255,255,255,0.35);
}

.auth-field input:focus {
    border-color: rgba(122, 149, 248, 0.6);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(122, 149, 248, 0.15);
}

.auth-field .auth-error {
    display: block;
    font-size: 12px;
    color: #f87171;
    margin-top: 6px;
    font-weight: 500;
}

.auth-field-icon {
    position: absolute;
    right: 14px;
    top: 42px;
    color: rgba(255,255,255,0.3);
    font-size: 16px;
    pointer-events: none;
}

/* ── Password Toggle ── */
.auth-password-toggle {
    position: absolute;
    right: 14px;
    top: 38px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
    z-index: 2;
}

.auth-password-toggle:hover {
    color: rgba(255,255,255,0.7);
}

/* ── Remember Me Row ── */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.auth-checkbox--inline {
    margin-bottom: 0;
}

/* ── Buttons ── */
.auth-btn {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-family-base);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.auth-btn--primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.auth-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

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

.auth-btn--secondary {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.12);
}

.auth-btn--secondary:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    transform: translateY(-1px);
}

/* ── Forgot / Links ── */
.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 8px;
}

.auth-link {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-link--highlight {
    color: #10b981;
    font-weight: 600;
}

.auth-link--highlight:hover {
    color: #34d399;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 12px;
}

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

.auth-divider span {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ── Right: Benefits Panel ── */
.auth-benefits-panel {
    padding: 48px 40px;
    background: rgba(255,255,255,0.04);
    border-left: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-benefits-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.auth-benefits-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin: 0 0 28px;
    line-height: 1.5;
}

.auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.auth-benefit:last-child {
    border-bottom: none;
}

.auth-benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.auth-benefit-icon--green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.auth-benefit-icon--blue {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.auth-benefit-icon--amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.auth-benefit-icon--purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.auth-benefit-icon--red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.auth-benefit-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}

.auth-benefit-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.4;
}

/* ── Social Proof Bar ── */
.auth-social-proof {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.auth-proof-stat {
    text-align: center;
}

.auth-proof-stat .number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.auth-proof-stat .label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ── Register: Step Progress ── */
.auth-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.auth-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.auth-step--completed .auth-step-number {
    background: #10b981;
    color: #fff;
}

.auth-step--active .auth-step-number {
    background: rgba(122, 149, 248, 0.2);
    color: #7A95F8;
    border: 2px solid #7A95F8;
}

.auth-step--pending .auth-step-number {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.1);
}

.auth-step-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.auth-step--completed .auth-step-label {
    color: #10b981;
}

.auth-step--active .auth-step-label {
    color: #fff;
}

.auth-step--pending .auth-step-label {
    color: rgba(255,255,255,0.35);
}

.auth-step-line {
    flex: 1;
    height: 2px;
    margin: 0 8px;
    border-radius: 1px;
}

.auth-step--completed + .auth-step-line,
.auth-step-line--done {
    background: #10b981;
}

.auth-step-line--pending {
    background: rgba(255,255,255,0.1);
}

/* ── Register: Radio Groups ── */
.auth-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-radio-group--single {
    grid-template-columns: 1fr;
}

.auth-radio-option {
    position: relative;
}

.auth-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-radio-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
}

.auth-radio-option input[type="radio"]:checked + label {
    background: rgba(122, 149, 248, 0.12);
    border-color: rgba(122, 149, 248, 0.4);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(122, 149, 248, 0.15);
}

.auth-radio-option label:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.18);
    color: #fff;
}

.auth-radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.auth-radio-option input[type="radio"]:checked + label .auth-radio-dot {
    border-color: #7A95F8;
    background: #7A95F8;
}

.auth-radio-option input[type="radio"]:checked + label .auth-radio-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

/* ── Register: Terms Checkbox ── */
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}

.auth-checkbox label a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

/* ── Register: Question Title ── */
.auth-question {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-question-icon {
    font-size: 20px;
}

/* ── Back Button ── */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.auth-back:hover {
    color: #fff;
}

/* ══════════════════════════════════════════════════════════
   WELCOME / ONBOARDING PAGE
   ══════════════════════════════════════════════════════════ */

.welcome-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.welcome-container {
    max-width: 720px;
    width: 100%;
    text-align: center;
}

.welcome-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.welcome-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 40px;
    line-height: 1.5;
}

.welcome-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.welcome-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-action:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    text-decoration: none;
}

.welcome-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.welcome-action-icon--green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.welcome-action-icon--blue {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.welcome-action-icon--amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.welcome-action-icon--purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.welcome-action h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.welcome-action p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.4;
}

.welcome-skip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.welcome-skip:hover {
    color: #fff;
    text-decoration: none;
}

/* ── Welcome: Onboarding Section ── */
.welcome-onboarding {
    margin-bottom: 40px;
}

.welcome-onboarding-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    text-align: left;
}

.welcome-onboarding-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.welcome-onboarding-title i {
    color: rgba(255,255,255,0.5);
}

.welcome-onboarding-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.welcome-option-btn {
    padding: 10px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-family-base);
}

.welcome-option-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.welcome-option-btn--selected {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.welcome-option-btn--selected:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.welcome-onboarding-note {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin: 12px 0 0;
}

.welcome-section-title {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin: 0 0 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Testimonial on auth pages ── */
.auth-testimonial {
    margin-top: 32px;
    padding: 20px;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.auth-testimonial-text {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0 0 12px;
    font-style: italic;
}

.auth-testimonial-author {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

.auth-testimonial-stars {
    color: #f59e0b;
    font-size: 13px;
    margin-bottom: 8px;
}

/* ── Browse Without Account Link ── */
.auth-browse-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 8px 0;
}

.auth-browse-link:hover {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.auth-browse-link i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.auth-browse-link:hover i {
    transform: translateX(3px);
}

/* ── Speed Badge ── */
.auth-speed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    letter-spacing: 0.3px;
}

.auth-speed-badge i {
    font-size: 13px;
}

/* ── Trust badges ── */
.auth-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.auth-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.auth-trust-badge i {
    color: #10b981;
    font-size: 14px;
}

/* ══════════════════════════════════════════════════════════
   ENTRANCE ANIMATIONS
   ══════════════════════════════════════════════════════════ */

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-container {
    animation: authFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.auth-benefit {
    opacity: 0;
    animation: authSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.auth-benefit:nth-child(1) { animation-delay: 0.15s; }
.auth-benefit:nth-child(2) { animation-delay: 0.25s; }
.auth-benefit:nth-child(3) { animation-delay: 0.35s; }
.auth-benefit:nth-child(4) { animation-delay: 0.45s; }

.auth-social-proof {
    opacity: 0;
    animation: authFadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.55s both;
}

.auth-testimonial {
    opacity: 0;
    animation: authFadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

/* ── Benefit hover interaction ── */
.auth-benefits-panel .auth-benefit {
    transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -12px;
    margin-right: -12px;
}

.auth-benefits-panel .auth-benefit:hover {
    background: rgba(255,255,255,0.04);
}

.auth-benefits-panel .auth-benefit:hover .auth-benefit-icon {
    transform: scale(1.1);
}

.auth-benefits-panel .auth-benefit-icon {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Input focus glow ── */
.auth-field input:focus {
    border-color: rgba(122, 149, 248, 0.6);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(122, 149, 248, 0.15), 0 0 20px rgba(122, 149, 248, 0.08);
}

/* ── Button press effect ── */
.auth-btn--primary:active {
    transform: translateY(1px) scale(0.98);
}

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

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
    .auth-container,
    .auth-benefit,
    .auth-social-proof,
    .auth-testimonial {
        animation: none;
        opacity: 1;
    }
    .auth-benefit:hover .auth-benefit-icon {
        transform: none;
    }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .auth-benefits-panel {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.08);
        padding: 32px 24px;
        order: 2;
    }

    .auth-form-panel {
        padding: 32px 24px;
        order: 1;
    }

    .auth-social-proof {
        justify-content: space-around;
    }

    .auth-radio-group {
        grid-template-columns: 1fr;
    }

    .welcome-actions {
        grid-template-columns: 1fr;
    }

    .welcome-title {
        font-size: 26px;
    }

    .auth-form-header h1 {
        font-size: 24px;
    }

    .auth-remember-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .welcome-onboarding-options {
        gap: 6px;
    }

    .welcome-option-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .auth-page, .welcome-page {
        padding: 20px 12px;
    }

    .auth-form-panel {
        padding: 28px 20px;
    }

    .auth-benefits-panel {
        padding: 24px 20px;
    }

    .auth-proof-stat .number {
        font-size: 18px;
    }
}
