/* ===== AUTH STYLES ===== */
:root {
    --color-bg: #0b0e1a;
    --color-bg-secondary: #131b2e;
    --color-bg-card: #111827;
    --color-gold: #4a6fa5;
    --color-gold-light: #6b8fc5;
    --color-gold-dark: #345080;
    --color-text: #e8e8e8;
    --color-text-muted: #a0aec0;
    --color-text-dim: #6b7b8d;
    --color-border: rgba(192, 192, 192, 0.12);
    --color-border-light: rgba(192, 192, 192, 0.25);
    --color-success: #00cc66;
    --color-error: #ff4444;

    --font-display: 'Chakra Petch', sans-serif;
    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'Roboto', 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
}

a {
    color: var(--color-gold);
    text-decoration: none;
}

a:hover {
    color: var(--color-gold-light);
}

/* Auth Container */
.auth-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(74, 111, 165, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 111, 165, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(74, 111, 165, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(74, 111, 165, 0.05) 0%, transparent 50%);
}

/* Auth Card */
.auth-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.auth-header {
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 32px;
    color: var(--color-gold);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
}

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 48px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--color-text-muted);
    font-size: 16px;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper svg {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    stroke: var(--color-text-dim);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 15px;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.input-wrapper input::placeholder {
    color: var(--color-text-dim);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.toggle-password svg {
    position: static;
    stroke: var(--color-text-dim);
    transition: stroke 0.2s ease;
}

.toggle-password:hover svg {
    stroke: var(--color-gold);
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar span {
    display: block;
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    color: var(--color-text-muted);
    min-width: 100px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-muted);
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border-light);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--color-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--color-gold);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(74, 111, 165, 0.3);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.auth-divider span {
    font-size: 13px;
    color: var(--color-text-dim);
}

/* Social Login */
.social-login {
    display: flex;
    gap: 16px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: var(--color-gold);
    background: var(--color-bg-secondary);
}

/* Footer */
.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Visual Side */
.auth-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1) 0%, transparent 50%);
    border-left: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
}

.visual-content h2 {
    font-family: var(--font-display);
    font-size: 64px;
    letter-spacing: 4px;
    margin-bottom: 16px;
    color: var(--color-gold);
}

.visual-content > p {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.visual-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.v-stat {
    text-align: center;
}

.v-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 42px;
    color: var(--color-text);
}

.v-stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
}

.features-list .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text-muted);
}

.features-list .feature-item svg {
    stroke: var(--color-gold);
    flex-shrink: 0;
}

/* Hex Background */
.hex-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hex {
    position: absolute;
    border: 1px solid rgba(74, 111, 165, 0.15);
    animation: rotateHex 20s linear infinite;
}

.hex-1 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-direction: reverse;
    animation-duration: 15s;
}

@keyframes rotateHex {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-visual {
        display: none;
    }
    
    .auth-card {
        max-width: 100%;
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-header h1 {
        font-size: 36px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

