﻿/* ================= LOGIN ================= */

.login-page {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
}

/* BACKGROUND — full-viewport image, behind the form, positive stacking only */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

/* Portrait phones and tablets — shift focus toward centre of image */
@media (orientation: portrait) {
    .bg-image {
        object-position: 30% center;
    }
}

/* Small screens — ensure no overflow causes scrollbar */
@media (max-width: 768px) {
    .login-page {
        overflow-y: auto;
    }
}

.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

/* CENTER — must stack above .bg-image */
.login-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* BOX */
.login-box {
    width: 100%;
    max-width: 400px;
    padding: 35px;
    border-radius: 16px;
    /*background: rgba(155,155,155,0.58);*/
    background: rgba(15, 23, 42, 0.75); /* dark */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    color: #fff;
}

/* INPUT */
.form-control {
    background: rgba(255,255,255,0.08);
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.7);
    color: #fff;
}

    .form-control:focus {
        background: rgba(255,255,255,0.12);
        box-shadow: none;
        color: #fff;
    }

/* AUTOFILL FIX */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.08) inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* BUTTON */
.btn-login {
    width: 100%;
    background: linear-gradient(to right, #007bff, #00c6ff);
    border-radius: 25px;
    color: white;
}
/* 🔥 STRONG AUTOFILL FIX (LOGIN) */
/* 🔥 FORCE REMOVE CHROME AUTOFILL WHITE */
.login-box input.form-control:-webkit-autofill,
.login-box input.form-control:-webkit-autofill:hover,
.login-box input.form-control:-webkit-autofill:focus,
.login-box input.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px rgba(15,23,42,0.6) inset !important;
    box-shadow: 0 0 0px 1000px rgba(15,23,42,0.6) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    border-bottom: 1px solid rgba(255,255,255,0.7) !important;
    transition: background-color 9999s ease-in-out 0s;
}
.login-box input.form-control {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}