:root {
    --blue-dark: #01257D;
    --blue-electric: #00EFFF;
}

body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(135deg, var(--blue-dark), #00113a);
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow: hidden;
}

/* Particles container */
#particles-js {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* Center container */
.login-wrapper {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glass card */
.login-card {
    width: 100%;
    max-width: 420px;
    padding: 35px 30px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 0 40px rgba(0, 239, 255, 0.15);
    color: #fff;
    animation: fadeUp 0.9s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card h3 {
    color: var(--blue-electric);
}

.login-card small,
.login-card p {
    color: #cfd8ff;
}

/* Input with icon */
.input-group-text {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--blue-electric);
}

.form-control {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.form-control::placeholder {
    color: #b5c3ff;
}

.form-control:focus {
    background: transparent;
    border-color: var(--blue-electric);
    box-shadow: 0 0 0 0.2rem rgba(0, 239, 255, 0.25);
    color: #fff;
}

/* Button animation */
.btn-login {
    position: relative;
    background: linear-gradient(135deg, var(--blue-electric), #1fa2ff);
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    color: #002233;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 239, 255, 0.8);
}

.btn-login:disabled {
    opacity: 0.8;
    box-shadow: none;
}

/* Error Alert Animation */
.alert {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ffb3b3;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shake animation untuk error */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Toggle Password Styling */
#togglePassword {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--blue-electric);
    border-left: none;
}

#togglePassword:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--blue-electric);
}