@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background: #0f172a;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Animated Mesh Gradient Background */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 0% 0%, #1e1b4b 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, #312e81 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, #1e1b4b 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, #312e81 0%, transparent 50%);
    background-color: #0f172a;
    filter: blur(80px);
    animation: bgMove 20s ease infinite alternate;
}

@keyframes bgMove {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), #ec4899);
    filter: blur(100px);
    opacity: 0.4;
    z-index: -1;
    animation: orbFloat 15s infinite alternate ease-in-out;
}

.orb-1 {
    top: -100px;
    left: -100px;
}

.orb-2 {
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 100px) scale(1.2);
    }
}

/* Glass Card */
.glass-container {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

/* Typography & Inputs */
h1 {
    color: var(--text-main);
    font-weight: 800;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.025em;
}

p.subtitle {
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    color: var(--text-dim);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.btn-login {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.btn-login:active {
    transform: scale(0.98);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.remember-me input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

/* Error messages */
.error-text {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.input-error {
    border-color: #f87171 !important;
}