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

:root {
    --primary-hue: 255;
    --primary-saturation: 85%;
    --primary-lightness: 55%;
    --primary-color: hsl(var(--primary-hue), var(--primary-saturation), var(--primary-lightness));
    --primary-glow: rgba(139, 92, 246, 0.1);

    --bg-light: #ffffff;
    --bg-soft: #f8fafc;
    --bg-card: #ffffff;
    --border-soft: #e2e8f0;

    --text-primary: #1e293b;
    --text-muted: #64748b;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;

    --transition-smooth: all 0.2s ease-in-out;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-soft);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.02;
    z-index: -1;
    pointer-events: none;
}

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    margin: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}

.auth-card-body {
    padding: 2.5rem 2rem;
}

@media (min-width: 576px) {
    .auth-card-body {
        padding: 3rem;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-container {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a78bfa 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px var(--primary-glow);
    animation: pulseGlow 3s infinite alternate;
    transform: rotate(-5deg);
    transition: var(--transition-smooth);
}

.logo-container:hover {
    transform: rotate(0deg) scale(1.05);
}

.logo-container i {
    font-size: 2.5rem;
}

.auth-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 400;
}

/* Forms */
.form-group,
.mb-3,
.mb-4 {
    position: relative;
    margin-bottom: 1.5rem !important;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-soft);
    background-color: #ffffff;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    border-radius: var(--radius-md) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    transition: var(--transition-smooth);
    letter-spacing: 0.02em;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6d28d9 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #9333ea 0%, #5b21b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Alerts */
.alert {
    border-radius: var(--radius-md);
    background-color: #ffffff;
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--primary-color) !important;
    color: var(--text-primary);
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.alert-dismissible .btn-close {
    opacity: 0.5;
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: #a78bfa;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-muted a {
    color: var(--primary-color);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

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

@keyframes pulseGlow {
    0% {
        box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
    }

    100% {
        box-shadow: 0 15px 35px rgba(139, 92, 246, 0.5);
    }
}