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

body {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    background: radial-gradient(1200px 700px at 15% -10%, rgba(110,168,254,.23), transparent 60%),
                radial-gradient(900px 600px at 95% 10%, rgba(124,247,212,.15), transparent 55%),
                #070b14;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cacbcc;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: rgba(13,20,38,.80);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    box-shadow: 0 20px 70px rgba(0,0,0,.45);
    padding: 40px;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.logo-text {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #6ea8fe, #7cf7d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: #aab5d2;
    font-size: 13px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #eaf0ff;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    border-radius: 12px;
    color: #eaf0ff;
    font-size: 14px;
    transition: all 0.2s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    background: rgba(255,255,255,.05);
    border-color: #6ea8fe;
    box-shadow: 0 0 0 3px rgba(110,168,254,.15);
}

input.is-invalid {
    border-color: #ff6b6b;
    background: rgba(255,107,107,.05);
}

input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(255,107,107,.15);
}

.invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #ff6b6b;
}

.remember-section {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #6ea8fe;
}

.btn-login {
    width: 100%;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(110,168,254,.95), rgba(124,247,212,.78));
    border: none;
    border-radius: 12px;
    color: #061021;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(110,168,254,.35);
}

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

.footer-links {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
}

.footer-links a {
    color: #6ea8fe;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #7cf7d4;
    text-decoration: underline;
}

.error-alert {
    background: rgba(255,107,107,.10);
    border: 1px solid rgba(255,107,107,.20);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #ff8787;
}

.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7,11,20,.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loader.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(110,168,254,.2);
    border-top-color: #6ea8fe;
    border-right-color: #7cf7d4;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}



@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .logo {
        width: 56px;
        height: 56px;
    }
}