/* ============================================
   NEO-BRUTALISM AUTH SYSTEM - MAIN STYLES
   ============================================ */

:root {
    /* Color Palette */
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent-1: #f093fb;
    --accent-2: #f5576c;
    --accent-3: #4facfe;
    --accent-4: #43e97b;
    --accent-5: #fa709a;
    
    /* Neutrals */
    --bg: #fafafa;
    --surface: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px var(--shadow);
    --shadow-md: 0 4px 16px var(--shadow);
    --shadow-lg: 0 8px 32px var(--shadow);
    --shadow-brutal: 4px 4px 0 var(--text);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-sm {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

/* ============================================
   CARDS - Neo-Brutalism Style
   ============================================ */

.card {
    background: var(--surface);
    border: 3px solid var(--text);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-brutal);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text);
}

.card-soft {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.card-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   BUTTONS - Neo-Brutalism Style
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 3px solid var(--text);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--text);
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text);
    text-decoration: none;
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--text);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
}

.btn-soft {
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-soft:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-google {
    background: white;
    color: #4285F4;
    border-color: #4285F4;
}

.btn-facebook {
    background: #1877F2;
    color: white;
    border-color: #1563cc;
}

.btn-twitter {
    background: #1DA1F2;
    color: white;
    border-color: #0c85d0;
}

.btn-discord {
    background: #5865F2;
    color: white;
    border-color: #4752c4;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 3px solid var(--text);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control-soft {
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.form-control-soft:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background: var(--surface);
    border-bottom: 3px solid var(--text);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.navbar-nav {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--bg);
    text-decoration: none;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BADGE & TAGS
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid var(--text);
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-success {
    background: var(--accent-4);
    color: white;
}

.badge-danger {
    background: var(--accent-2);
    color: white;
}

.badge-warning {
    background: #fbbf24;
    color: var(--text);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 3px solid;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.alert-success {
    background: #d1fae5;
    border-color: var(--accent-4);
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border-color: var(--accent-2);
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border-color: var(--accent-3);
    color: #1e40af;
}

/* ============================================
   GRID SYSTEM
   ============================================ */

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.p-0 { padding: 0; }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

.animate-slideIn {
    animation: slideIn 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .navbar-nav {
        gap: var(--spacing-sm);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f172a;
        --surface: #1e293b;
        --text: #f1f5f9;
        --text-muted: #94a3b8;
        --border: #334155;
        --shadow: rgba(0, 0, 0, 0.3);
    }
    
    .card {
        border-color: var(--border);
        box-shadow: 4px 4px 0 var(--border);
    }
    
    .card:hover {
        box-shadow: 6px 6px 0 var(--border);
    }
    
    .btn {
        border-color: var(--border);
        box-shadow: 4px 4px 0 var(--border);
    }
    
    .btn:hover {
        box-shadow: 6px 6px 0 var(--border);
    }
    
    .form-control {
        border-color: var(--border);
    }
}

/* ============================================
   GOOGLE ICONS MULTICOLOR SUPPORT
   ============================================ */

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    vertical-align: middle;
}

.icon-google { color: #4285F4; }
.icon-facebook { color: #1877F2; }
.icon-twitter { color: #1DA1F2; }
.icon-discord { color: #5865F2; }
.icon-success { color: var(--accent-4); }
.icon-error { color: var(--accent-2); }
.icon-warning { color: #fbbf24; }
.icon-info { color: var(--accent-3); }
