/* ================= ADMIN LOGIN ================= */
.admin-login-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f8ff, #e9f0fb);
    padding: 40px;
}

.admin-login-card {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.admin-login-card h2 {
    color: var(--primary-color);
    font-family: var(--font-serif);
    margin-bottom: 10px;
}

.login-subtitle {
    color: #777;
    margin-bottom: 30px;
    display: block;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    box-sizing: border-box;
    /* Fix padding issue */
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.login-btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), #2c5aa0);
    border: none;
    color: var(--white);
    font-size: 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: shadow 0.3s;
}

.login-btn-primary:hover {
    box-shadow: 0 5px 15px rgba(31, 63, 109, 0.3);
}

/* ================= PASSWORD TOGGLE EYE ICON ================= */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 50px !important;
}

.password-toggle-container {
    --color: #666;
    --size: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 50px;
    top: 42%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: var(--size);
    user-select: none;
    fill: var(--color);
    z-index: 10;
    margin-top: -1px;
}

.password-toggle-container .eye {
    position: absolute;
    animation: keyframes-fill .5s;
}

.password-toggle-container .eye-slash {
    position: absolute;
    animation: keyframes-fill .5s;
    display: none;
}

/* ------ On check event ------ */
.password-toggle-container input:checked~.eye {
    display: none;
}

.password-toggle-container input:checked~.eye-slash {
    display: block;
}

/* ------ Hide the default checkbox ------ */
.password-toggle-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* ------ Animation ------ */
@keyframes keyframes-fill {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
    .admin-login-wrapper {
        padding: 20px;
        min-height: calc(100vh - 100px);
        /* Adjust for mobile address bar/nav */
    }

    .admin-login-card {
        padding: 25px 20px;
    }

    .admin-login-card h2 {
        font-size: 22px;
    }

    .login-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .form-group input {
        font-size: 16px;
        /* Prevent zoom on mobile */
        padding: 12px;
    }
}