/* ═══════════════════════════════════════════════════════════
   ABC Crypto - Authentication Pages
   Clean, modern dark theme with gradient accents
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Core palette */
    --bg-primary: #080b12;
    --bg-card: #111720;
    --bg-input: #1a2332;
    
    /* Accent colors */
    --accent-primary: #00d4aa;
    --accent-secondary: #00b894;
    --accent-glow: rgba(0, 212, 170, 0.2);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7a8a9e;
    
    /* Borders */
    --border-primary: #1e293b;
    
    /* Status */
    --error: #ff4757;
    --success: #00d4aa;
    --warning: #ffa502;
    --info: #667eea;
    
    /* Typography */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

/* Mobile touch optimizations */
a, button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Minimum touch target size */
button, .auth-button, .auth-link-button {
    min-height: 44px;
}

/* ═══════════════════════════════════════════════════════════
   Container & Layout
   ═══════════════════════════════════════════════════════════ */

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════
   Auth Card
   ═══════════════════════════════════════════════════════════ */

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), #667eea, #10b981);
    border-radius: 20px 20px 0 0;
}

/* ═══════════════════════════════════════════════════════════
   Logo
   ═══════════════════════════════════════════════════════════ */

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.auth-logo .logo-icon {
    font-size: 36px;
    color: var(--accent-primary);
    text-shadow: 0 0 30px var(--accent-glow);
}

.auth-logo .logo-text {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.auth-logo .accent {
    color: var(--accent-primary);
}

/* ═══════════════════════════════════════════════════════════
   Titles
   ═══════════════════════════════════════════════════════════ */

.auth-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════
   Flash Messages
   ═══════════════════════════════════════════════════════════ */

.flash-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-error {
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff6b7a;
}

.flash-success {
    background: rgba(0, 212, 170, 0.12);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: var(--accent-primary);
}

.flash-warning {
    background: rgba(255, 165, 2, 0.12);
    border: 1px solid rgba(255, 165, 2, 0.3);
    color: #ffb84d;
}

.flash-info {
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #8b9ff5;
}

/* ═══════════════════════════════════════════════════════════
   Form Styles
   ═══════════════════════════════════════════════════════════ */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group .optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input:hover:not(:focus) {
    border-color: #2d3a4f;
}

/* ═══════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════ */

.auth-button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 10px;
    color: #080b12;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 8px;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

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

.auth-link-button {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-link-button:hover {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   Divider
   ═══════════════════════════════════════════════════════════ */

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

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-primary);
}

.auth-divider span {
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   Terms & Footer
   ═══════════════════════════════════════════════════════════ */

.auth-terms {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.auth-terms a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-terms a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.auth-footer {
    margin-top: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.auth-footer p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.auth-footer strong {
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .auth-container {
        padding: 20px 16px;
    }
    
    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
    
    .auth-logo {
        margin-bottom: 24px;
    }
    
    .auth-logo .logo-icon {
        font-size: 28px;
    }
    
    .auth-logo .logo-text {
        font-size: 22px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .auth-button {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .auth-link-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .auth-divider {
        margin: 20px 0;
    }
    
    .auth-terms {
        font-size: 11px;
    }
    
    .auth-footer {
        margin-top: 28px;
    }
    
    .auth-footer p {
        font-size: 12px;
    }
    
    .flash-message {
        font-size: 13px;
        padding: 12px 14px;
    }
}

@media (max-width: 360px) {
    .auth-container {
        padding: 12px 10px;
    }
    
    .auth-card {
        padding: 24px 16px;
        border-radius: 12px;
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .auth-logo .logo-text {
        font-size: 20px;
    }
    
    .auth-logo .logo-icon {
        font-size: 24px;
    }
}

