/* ============================================
   AUTH PAGE — Split layout modern
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

/* === WRAPPER === */
.auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 600px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(212,168,67,0.08);
    z-index: 1;
    position: relative;
}

/* === LEFT PANEL === */
.auth-panel {
    flex: 1;
    background: linear-gradient(135deg, #0f0f2a 0%, #1a0a2e 40%, #2a1a0a 100%);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.auth-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(212,168,67,0.08), transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(114,9,183,0.06), transparent 50%);
    pointer-events: none;
}
.auth-panel::after {
    content: '♠ ♥ ♦ ♣';
    position: absolute;
    bottom: -20px;
    right: -30px;
    font-size: 8rem;
    color: rgba(212,168,67,0.03);
    font-weight: 900;
    letter-spacing: 20px;
    pointer-events: none;
    transform: rotate(-15deg);
}

.panel-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(212,168,67,0.12);
    border: 1px solid rgba(212,168,67,0.2);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 32px;
    width: fit-content;
}

.panel-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.panel-highlight {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 320px;
}

.panel-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: auto;
}

.panel-feat {
    display: flex;
    align-items: center;
    gap: 14px;
}
.feat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.panel-feat div {
    display: flex;
    flex-direction: column;
}
.panel-feat strong {
    font-size: 0.85rem;
    color: var(--text-primary);
}
.panel-feat span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.panel-testimonial {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.testi-avatars {
    display: flex;
}
.testi-avatars span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bg-primary);
    margin-left: -8px;
    border: 2px solid #0f0f2a;
}
.testi-avatars span:first-child { margin-left: 0; }
.panel-testimonial p {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.panel-testimonial strong {
    color: var(--text-secondary);
}

/* === RIGHT CARD === */
.auth-card-modern {
    width: 440px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.auth-logo-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    transition: color 0.3s;
    width: fit-content;
}
.auth-logo-modern:hover {
    color: var(--gold);
}
.back-arrow {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Tabs */
.auth-tabs-modern {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 4px;
}
.auth-tab-modern {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 11px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
}
.auth-tab-modern.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--gold-glow);
}
.auth-tab-modern:hover:not(.active) {
    color: var(--text-secondary);
}
.tab-icon {
    font-size: 1rem;
}

/* Forms */
.auth-form-modern {
    display: none;
    flex-direction: column;
    gap: 0;
    flex: 1;
}
.auth-form-modern.active {
    display: flex;
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.form-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 16px;
}
.input-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    opacity: 0.6;
}
.input-group input {
    padding: 14px 16px 14px 46px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s var(--ease-out-expo);
    outline: none;
}
.input-group input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(212,168,67,0.1);
}
.input-group input::placeholder {
    color: var(--text-muted);
}
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0px 1000px #141428 inset;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--text-primary);
}

/* Password toggle */
.pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.4;
    padding: 4px;
    transition: opacity 0.3s;
}
.pwd-toggle:hover {
    opacity: 0.8;
}

/* Password strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -8px 0 16px;
    padding: 0 4px;
}
.strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.strength-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s;
}
.strength-bar.weak::after { width: 25%; background: var(--red); }
.strength-bar.medium::after { width: 55%; background: #f0a030; }
.strength-bar.strong::after { width: 100%; background: var(--green); }
.strength-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    min-width: 40px;
    text-align: right;
}

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    cursor: pointer;
    border: none;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow);
}
.btn-submit:active {
    transform: translateY(0);
}
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
.btn-loader {
    display: flex;
    gap: 4px;
    align-items: center;
}
.loader-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bg-primary);
    animation: dotBounce 1.2s infinite;
}
.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Switch link */
.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-switch a {
    color: var(--gold);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.auth-switch a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Footer */
.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Error */
.auth-error {
    font-size: 0.82rem;
    color: var(--red);
    margin-bottom: 12px;
    display: none;
    padding: 10px 14px;
    background: rgba(230,57,70,0.08);
    border-radius: 10px;
    border: 1px solid rgba(230,57,70,0.15);
    line-height: 1.4;
}
.auth-error.show {
    display: block;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .auth-panel {
        display: none;
    }
    .auth-card-modern {
        width: 100%;
        padding: 32px 24px;
    }
    .auth-wrapper {
        max-width: 440px;
        border-radius: 16px;
    }
    .auth-page {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .auth-card-modern {
        padding: 24px 16px;
    }
    .auth-tabs-modern {
        flex-direction: column;
    }
    .form-title {
        font-size: 1.1rem;
    }
}