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

body {
    font-family: 'Segoe UI', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #0f172a;
}

/* 🔥 Animated background */
.bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, #2563eb33, transparent 40%),
    radial-gradient(circle at 80% 70%, #38bdf833, transparent 40%);
    animation: moveBg 8s infinite alternate ease-in-out;
}

@keyframes moveBg {
    from { transform: translate(0,0); }
    to { transform: translate(-30px, 20px); }
}

.login-container {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 360px;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    text-align: center;
    animation: fadeIn 0.8s ease;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.logo i {
    color: #38bdf8;
}

h2 {
    color: #fff;
}

.subtitle {
    color: #94a3b8;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-group input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: 0.2s;
}

.input-group input:focus {
    background: rgba(255,255,255,0.15);
}

.toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.alert {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.error {
    background: #7f1d1d;
    color: #fecaca;
}

.success {
    background: #064e3b;
    color: #6ee7b7;
}

.footer {
    margin-top: 20px;
    color: #64748b;
    font-size: 0.8rem;
}