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

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    background: #0f0c29; /* Fallback */
    overflow: hidden;
}

/* This creates the blurred background layer */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg-login.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(8px); /* Adjust the pixels for more/less blur */
    transform: scale(1.1); /* Prevents white edges caused by blur */
    z-index: -1;
}

.glass-box {
    width: 400px;
    padding: 40px;
    background: rgba(61, 61, 61, 0.6); /* Very faint white */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    
    /* The core Glassmorphism property */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    text-align: center;
}

.logo h1 {
    color: white;
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.logo span {
    color: #00d2ff; /* A nice techy blue accent */
    font-weight: 300;
}

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

input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: 0.3s;
}

input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00d2ff;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    display: none; /* Hidden by default */
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.error-msg {
    color: #ff4b2b;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

