* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0b0e11;
    --bg-secondary: #1e2329;
    --bg-tertiary: #2b3139;
    --bg-card: #181a20;
    --accent-gold: #f0b90b;
    --accent-green: #0ecb81;
    --accent-red: #f6465d;
    --accent-blue: #1e80ff;
    --text-primary: #eaecef;
    --text-secondary: #848e9c;
    --text-muted: #5e6673;
    --border-color: #2b3139;
    --glow-gold: rgba(240, 185, 11, 0.3);
}

html, body {
    height: 100%;
    background: var(--bg-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Background effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(240,185,11,0.03) 100%),
        linear-gradient(0deg, transparent 98%, rgba(240,185,11,0.03) 100%);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240,185,11,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.glow-right {
    position: fixed;
    bottom: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14,203,129,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    position: relative;
    z-index: 1;
}

/* Left Side - Branding */
.brand-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.brand-side::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(240,185,11,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-logo .icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-gold), #d4a00a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-primary);
    font-weight: 800;
}

.brand-logo .text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: -1px;
}

.brand-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.brand-title span {
    background: linear-gradient(135deg, var(--accent-gold), #fcd535);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Right Side - Auth Form */
.auth-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 32px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: var(--bg-tertiary);
    color: var(--accent-gold);
}

.auth-tab:hover:not(.active) {
    color: var(--text-primary);
}

/* Form Card */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--glow-gold);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-gold), #d4a00a);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-gold);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Message */
.message {
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.message.success {
    background: rgba(14, 203, 129, 0.1);
    border: 1px solid rgba(14, 203, 129, 0.3);
    color: var(--accent-green);
}

.message.error {
    background: rgba(246, 70, 93, 0.1);
    border: 1px solid rgba(246, 70, 93, 0.3);
    color: var(--accent-red);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.trust-badge .icon {
    font-size: 1.1rem;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-footer a {
    color: var(--accent-gold);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .brand-side {
        display: none;
    }
    
    .auth-side {
        padding: 40px 24px;
        width: 100%;
    }
    
    .form-card {
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .auth-side {
        padding: 32px 20px;
    }
    
    .form-card {
        padding: 28px 24px;
    }
    
    .auth-header h2 {
        font-size: 1.6rem;
    }
    
    .auth-header p {
        font-size: 0.85rem;
    }
    
    .auth-tabs {
        gap: 0;
    }
    
    .auth-tab {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .form-input {
        padding: 13px 14px;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 0.95rem;
    }
    
    .divider span {
        padding: 0 12px;
        font-size: 0.75rem;
    }
    
    .social-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .auth-footer {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .auth-side {
        padding: 24px 16px;
    }
    
    .form-card {
        padding: 24px 18px;
        border-radius: 16px;
    }
    
    .auth-header {
        margin-bottom: 24px;
    }
    
    .auth-header h2 {
        font-size: 1.4rem;
    }
    
    .auth-tabs {
        border-radius: 10px;
    }
    
    .auth-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    .form-input {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 13px;
        font-size: 0.9rem;
    }
    
    .social-btn {
        padding: 11px;
        font-size: 0.85rem;
    }
    
    .brand-title {
        font-size: 2rem;
    }
}

@media (max-width: 360px) {
    .form-card {
        padding: 20px 14px;
    }
    
    .auth-tab {
        padding: 9px 12px;
        font-size: 0.8rem;
    }
    
    .auth-header h2 {
        font-size: 1.3rem;
    }
}

/* Hidden forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}
