/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Background image placed inside HTML */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: -1; /* Push behind everything */
    pointer-events: none;
}

/* Center the login card */
body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* LOGIN BOX */
.login-container {
    background: rgba(255, 255, 255, 0.88);
    padding: 32px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.8s ease;
}

h2 {
    margin-bottom: 10px;
    color: #333;
}

/* FORM */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 16px;
    transition: 0.25s;
}

input:focus {
    border-color: #4facfe;
    box-shadow: 0 0 6px rgba(79, 172, 254, 0.4);
    outline: none;
}

/* BUTTON */
button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #4facfe;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
}

button:hover {
    background-color: #00c6ff;
    transform: translateY(-2px);
}

/* ERROR */
.error {
    margin-top: 15px;
    color: red;
    font-size: 14px;
    animation: shake 0.5s ease;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 22px;
    }
}

.login-container {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.18); /* more transparent */
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* PASSWORD TOGGLE */
.password-field-wrapper {
    position: relative;
}

.password-field-wrapper input[type="password"],
.password-field-wrapper input[type="text"] {
    padding-right: 44px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 4px;
    background: none;
    border: none;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    background-color: transparent;
    color: #4facfe;
    transform: translateY(-50%);
}

.password-toggle-icon--hide {
    display: none;
}

.password-toggle-btn.is-active .password-toggle-icon--show {
    display: none;
}

.password-toggle-btn.is-active .password-toggle-icon--hide {
    display: block;
}
