/* Modern Gaming Register Styles */
:root {
    /* Gaming Color Palette */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: #818cf8;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: #1e1e2d;
    --bg-input: #2a2a3c;
    --bg-input-focus: #3a3a4c;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-accent: #06b6d4;
    
    /* Borders & Shadows */
    --border-color: #3f3f46;
    --border-focus: #6366f1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Sizes */
--input-height: 3rem;
--border-radius: 0.75rem;
--border-radius-lg: 1rem;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Gaming Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    position: relative;
}

/* Auth Card */
.auth-card {
    background: rgba(30, 30, 45, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

/* Logo Styling */
.logo-svg {
    margin-bottom: var(--spacing-lg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--text-primary), var(--text-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.form-label i {
    color: var(--primary);
    font-size: 1rem;
}

/* Input Groups */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.input-group:focus-within {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-glow);
    background: var(--bg-input-focus);
}

.form-control {
    flex: 1;
    height: var(--input-height);
    padding: 0 var(--spacing-lg);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-control:focus {
    outline: none;
}

/* Input Focus Border Animation */
.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group:focus-within .input-focus-border {
    width: 100%;
}

/* Password Toggle */
.toggle-password {
    width: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Form Actions */
.form-actions {
    margin-top: var(--spacing-md);
}

.register-btn {
    position: relative;
    width: 100%;
    height: var(--input-height);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.register-btn:active {
    transform: translateY(0);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.register-btn:hover .btn-glow {
    left: 100%;
}

/* Google Login Section */
.google-login-section {
    margin-top: var(--spacing-lg);
}

.btn-google {
    width: 100%;
    height: var(--input-height);
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: #333333;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: var(--spacing-md);
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #333333;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-google:active {
    transform: translateY(0);
}

.google-icon {
    width: 18px;
    height: 18px;
}

/* Login Prompt */
.login-prompt {
    margin-top: var(--spacing-lg);
}

.divider {
    position: relative;
    text-align: center;
    margin: var(--spacing-md) 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: var(--bg-card);
    padding: 0 var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.login-link-btn {
    width: 100%;
    height: var(--input-height);
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    text-decoration: none;
}

.login-link-btn:hover {
    background: var(--primary);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Validation & Alerts */
.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: #fca5a5;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.invalid-feedback::before {
    content: '⚠️';
    font-size: 0.75rem;
}

.alert {
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid transparent;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-danger::before {
    background: var(--danger);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.alert-success::before {
    background: var(--success);
}

/* Mobile App-like Design */
@media (max-width: 768px) {
    .auth-container {
        padding: var(--spacing-md);
        min-height: 100vh;
        background: var(--bg-primary);
    }
    
    .auth-card {
        padding: var(--spacing-xl);
        border-radius: var(--border-radius);
        max-width: 100%;
        margin: 0;
        box-shadow: none;
        border: none;
        background: var(--bg-card);
    }
    
    .auth-card::before {
        display: none;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-header p {
        font-size: 0.9rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .register-btn,
    .login-link-btn {
        height: 3.25rem;
        font-size: 1rem;
    }
    
    /* Mobile-specific animations */
    .input-group:focus-within {
        transform: scale(1.02);
    }
    
    .register-btn:active,
    .login-link-btn:active {
        transform: scale(0.98);
    }
    
    /* Mobile form spacing */
    .auth-form {
        gap: var(--spacing-md);
    }
}

/* Tablet Design */
@media (min-width: 769px) and (max-width: 1024px) {
    .auth-card {
        max-width: 560px;
        padding: var(--spacing-2xl);
    }
}

/* Large Screens */
@media (min-width: 1025px) {
    .auth-card {
        max-width: 520px;
    }
    
    .auth-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a0f;
        --bg-secondary: #1a1a2e;
        --bg-card: #1e1e2d;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #4f4f4f;
        --text-secondary: #cccccc;
    }
    
    .input-group {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn-glow {
        display: none;
    }
}

/* Loading states */
.register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.register-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Success animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.alert-success {
    animation: successPulse 0.6s ease-in-out;
} 