* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    height: 100vh;
    background: url('background.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay */
body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
}

.login-form {
    background: rgba(20, 40, 80, 0.85);
    padding: 30px;
    border-radius: 12px;
    width: 320px;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

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

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding: 10px;
    padding-right: 35px;
    border: none;
    border-radius: 6px;
    outline: none;
}

/* Toggle icon */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
}

/* Regular inputs */
.input-group input:not([type="password"]) {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    outline: none;
}

/* Button */
button {
    width: 100%;
    padding: 10px;
    background: #2d8cff;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Spinner */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

/* Loading state */
button.loading .btn-text {
    display: none;
}

button.loading .spinner {
    display: block;
}

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

/* Hover */
button:hover {
    background: #1a6ed8;
}

/* Error popup */
.error-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff4d4d;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
    z-index: 999;
}

/* Visible state */
.error-popup.show {
    opacity: 1;
    transform: translateY(0);
}