@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1a1f35;
    --bg-card: rgba(26, 31, 53, 0.6);

    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #ec4899;
    --accent-gold: #fbbf24;
    --accent-cyan: #06b6d4;

    /* Text Colors */
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

body {
    background: var(--bg-primary);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: backgroundShift 15s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes backgroundShift {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

main {
    position: relative;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 1;
}

.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 3rem !important;
}

/* Auth Container */
.auth-container {
    max-width: 1000px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Branding Panel */
.branding-panel {
    background: var(--gradient-primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
}

.branding-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.branding-panel>div {
    position: relative;
    z-index: 1;
}

.icon-grid {
    margin-bottom: 2rem;
}

.branding-icon {
    font-size: 2.5rem;
    margin: 0.75rem;
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

.branding-icon:nth-child(1) {
    animation-delay: 0s;
}

.branding-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.branding-icon:nth-child(3) {
    animation-delay: 1s;
}

.branding-icon:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.branding-panel h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.branding-panel p {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Form Section */
.auth-form-section {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2.5rem !important;
}

.auth-form-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* Form Controls */
.input-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.input-group-text {
    background: rgba(99, 102, 241, 0.1) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-right: none !important;
    color: var(--accent-primary);
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-left: none;
    color: var(--text-primary);
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), var(--shadow-glow);
    outline: none;
    color: var(--text-primary);
}

.form-control:focus+.input-group-text,
.input-group:focus-within .input-group-text {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.15) !important;
}

/* Button Styles */
.btn-cs-accent {
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    letter-spacing: 0.5px;
}

.btn-cs-accent::before {
    content: '';
    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;
}

.btn-cs-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: var(--text-primary);
}

.btn-cs-accent:hover::before {
    left: 100%;
}

.btn-cs-accent:active {
    transform: translateY(0);
}

/* Links */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-secondary);
    text-decoration: none;
}

a.fw-bold {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600 !important;
}

a.fw-bold:hover {
    filter: brightness(1.2);
}

/* Messages */
.messages {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.messages li {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: #fca5a5;
    font-size: 0.9rem;
}

/* Border and Dividers */
.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
}

footer p {
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        border-radius: 16px;
        margin: 1rem;
    }

    .branding-panel {
        padding: 2rem 1.5rem;
    }

    .branding-panel h1 {
        font-size: 1.5rem;
    }

    .branding-icon {
        font-size: 2rem;
        margin: 0.5rem;
    }

    .auth-form-section {
        padding: 2rem 1.5rem !important;
    }

    .auth-form-section h2 {
        font-size: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}