:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-dim: #64748B;
    --error: #EF4444;
    --success: #10B981;
    --border: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Animations */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(100px);
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: move 25s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #4F46E5;
    top: -150px;
    left: -150px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #9333EA;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: #3B82F6;
    top: 40%;
    left: 45%;
    animation-delay: -10s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

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

/* Login Card */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 24px;
}

.login-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

/* Header */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.brand-logo-full {
    height: 52px;
    width: auto;
    object-fit: contain;
    margin-bottom: 6px;
}

.logo-hub-text {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 4px;
    margin-bottom: 28px;
    text-transform: uppercase;
    opacity: 0.9;
}


.portal-badge {
    background: #EEF2FF;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #E0E7FF;
}

h1 {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    color: #0F172A;
}

.subtitle {
    font-size: 15px;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 36px;
    font-weight: 400;
}

/* Form */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    margin-left: 4px;
}

.input-group input {
    width: 100%;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px 20px;
    color: var(--text-main);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.error-message {
    color: var(--error);
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
    min-height: 20px;
    font-weight: 500;
}

button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #4338CA 100%);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(79, 70, 229, 0.1);
}

button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
    filter: brightness(1.1);
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
    margin-left: 12px;
}

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

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

.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
}