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

:root {
    /* Colors */
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --input-bg: rgba(255, 255, 255, 0.8);
    --focus-ring: rgba(37, 99, 235, 0.2);

    /* Aurora Colors */
    --aurora-1: #4F46E5;
    --aurora-2: #0EA5E9;
    --aurora-3: #8B5CF6;
    --aurora-4: #EC4899;
}

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

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    color: var(--text-main);
}

/* Full Screen Aurora Background */
.aurora-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.15), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.15), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.15), transparent 40%);
    filter: blur(60px);
    animation: aurora-spin 30s linear infinite;
    z-index: -1;
}

/* Centered Glass Card */
.login-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-section h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.brand-section p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-main);
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--focus-ring);
    transform: translateY(-1px);
}

.input-group input::placeholder {
    color: var(--text-placeholder);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    filter: brightness(1.1);
}

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

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.login-footer p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Animations */
@keyframes aurora-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

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

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        max-width: 90%;
    }

    .brand-section h1 {
        font-size: 1.5rem;
    }
}