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

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

.login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e1a 0%, #0d1b2e 40%, #112244 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(0, 180, 255, 0.4);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

.login-box {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 180, 255, 0.2);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,150,255,0.1);
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #00b4ff, #0066cc);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 150, 255, 0.4);
}

.login-logo h1 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-logo p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-top: 4px;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background: rgba(255, 50, 50, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.4);
    color: #ff8888;
}

.alert-warning {
    background: rgba(255, 180, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.3);
    color: #ffcc44;
}

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

.form-group label {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group label i {
    margin-right: 6px;
    color: #00b4ff;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: #00b4ff;
    background: rgba(0, 180, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.15);
}

.form-group input::placeholder { color: rgba(255,255,255,0.3); }

.input-pass {
    position: relative;
}

.input-pass input { padding-right: 48px; }

.toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
}

.toggle-pass:hover { color: #00b4ff; }

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00b4ff, #0066cc);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(0, 150, 255, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, #00ccff, #0077ee);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 180, 255, 0.4);
}

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

.login-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}

.login-footer i { margin-right: 4px; color: #00cc66; }
