body {
    margin: 0;
    min-height: 100vh;
    background-image: url(../images/login-bg.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* === Glass Login Panel === */
.login_area {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login {
    width: 100%;
    max-width: 420px;
    background: rgb(6 6 6 / 23%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.219),
        inset 0 4px 8px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease-out;
}

.login:hover {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 4px 12px rgba(255, 255, 255, 0.08);
}

.login__header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login__header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.5px;
}

.login__header p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.login__body {
    padding: 30px;
}

/* === Input Fields === */
.field {
    position: relative;
    margin-bottom: 20px;
}

.field input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}
.field input::placeholder {
    color: rgba(255, 255, 255, 0.534) !important;
    font-weight: 300;
    letter-spacing: 0.2px;
}
/* Reset all autofill styles - keeps your original design */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important; /* Keeps text white */
    -webkit-background-clip: text !important;
    background-clip: text !important;
    transition: all 5000s ease-in-out 0s !important; /* Disables default behavior */
    caret-color: #fff; /* Maintains cursor color */
}

/* For Firefox */
.field input:-moz-autofill,
.field input:-moz-autofill-preview {
    filter: none !important;
    background: rgba(255, 255, 255, 0.05) !important; /* Your original bg */
    color: #fff !important;
}

@keyframes autofillGlass {
    from {
        background-color: rgba(15, 25, 40, 0.7);
    }
    to {
        background-color: rgba(15, 25, 40, 0.4);
    }
}
.field input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.show-pass {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(255 255 255 / 91%);
    cursor: pointer;
    transition: all 0.3s;
}

.show-pass:hover {
    color: rgba(0, 180, 180, 0.8);
}

/* === Login Footer (Remember/Forgot) === */
.login__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember_wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember_wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #d7e5e5;
}

.remember {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 0;
}

.field_foget a {
    color: rgb(233 233 233);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.field_foget a:hover {
    color: rgb(233 233 233);
    text-decoration: underline;
}

/* === Sign-in Button === */
.sign-in {
    width: 100%;
    padding: 14px;
    background: rgb(68 68 68 / 27%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sign-in:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(30, 75, 110, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.sign-in:active {
    background: rgba(255, 255, 255, 0.15) !important;
}
.login__footer a {
    color: rgb(233 233 233);;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}
/* === Captcha Styling === */
.x-captcha {
    margin-bottom: 20px;
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}