@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');

/* ==========================================================================
   AUTH PAGES — CLEAN LIGHT THEME
   ========================================================================== */

:root {
    --bg-primary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent-primary: #2563eb;
    --accent-secondary: #1d4ed8;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --border-subtle: #e2e8f0;
    --border-input: #cbd5e1;
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --cs-primary: #2563eb;
}

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

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

/* Subtle ambient background glow */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(29, 78, 216, 0.04) 0%, transparent 45%);
    z-index: 0;
    pointer-events: none;
}

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

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

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

/* ==========================================================================
   AUTH CONTAINER (CARD)
   ========================================================================== */

.auth-container {
    max-width: 960px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   BRANDING PANEL (LEFT SIDE)
   ========================================================================== */

.branding-panel {
    background: var(--gradient-primary);
    color: #ffffff !important;
    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.12) 0%, transparent 70%);
    animation: rotateSheen 22s linear infinite;
}

@keyframes rotateSheen {
    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;
    color: #ffffff !important;
    opacity: 0.95;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: floatIcon 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 floatIcon {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.branding-panel h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.01em;
}

.branding-panel p,
.branding-panel .text-white-50 {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400;
}

/* ==========================================================================
   FORM SECTION (RIGHT SIDE)
   ========================================================================== */

.auth-form-section {
    background: #ffffff;
    padding: 3.5rem 3rem !important;
}

.auth-form-section h2,
.auth-form-section .h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

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

.input-group-text {
    background-color: #f8fafc !important;
    border: 1px solid var(--border-input) !important;
    border-right: none !important;
    color: var(--text-muted) !important;
    padding: 0.875rem 1rem;
    transition: all 0.2s ease;
}

.input-group-text i {
    color: var(--text-muted) !important;
    transition: color 0.2s ease;
}

.form-control {
    background-color: #f8fafc !important;
    border: 1px solid var(--border-input) !important;
    border-left: none !important;
    color: var(--text-primary) !important;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

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

.form-control:focus {
    background-color: #ffffff !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
    color: var(--text-primary) !important;
}

.input-group:focus-within .input-group-text {
    border-color: var(--accent-primary) !important;
    background-color: #eff6ff !important;
}

.input-group:focus-within .input-group-text i {
    color: var(--accent-primary) !important;
}

/* ==========================================================================
   PRIMARY BUTTON
   ========================================================================== */

.btn-cs-accent,
.btn.btn-cs-accent {
    background: var(--gradient-primary) !important;
    background-color: var(--accent-primary) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: none !important;
    outline: none !important;
    border-radius: 0.5rem !important;
    padding: 0.875rem 2rem !important;
    width: 100%;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-cs-accent:hover,
.btn.btn-cs-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
    filter: brightness(1.05);
    color: #ffffff !important;
}

.btn-cs-accent:focus,
.btn.btn-cs-accent:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
    outline: none !important;
}

.btn-cs-accent:active,
.btn.btn-cs-accent:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}

/* ==========================================================================
   LINKS
   ========================================================================== */

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

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

a.fw-bold {
    color: var(--accent-primary) !important;
    font-weight: 600 !important;
}

a.fw-bold:hover {
    color: var(--accent-secondary) !important;
}

/* ==========================================================================
   MESSAGES & ALERTS
   ========================================================================== */

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

.messages li {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: #b91c1c;
    font-size: 0.9rem;
}

.alert {
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ==========================================================================
   DIVIDERS & FOOTER
   ========================================================================== */

.border-top {
    border-top: 1px solid var(--border-subtle) !important;
}

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

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: 2.5rem 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.4rem;
    }
}

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

/* Selection Color */
::selection {
    background: rgba(37, 99, 235, 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(37, 99, 235, 0.2);
    color: var(--text-primary);
}