/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Ensure No Scrolling Issues */
html, body {
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Full-Screen Background */
body {
    background: linear-gradient(rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.7)), 
                url('../images/banner.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Centered Container */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw; /* Ensures no horizontal overflow */
    height: 100vh;
    padding: 20px;
}

/* Login Box */
.box {
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

/* Form Box */
.form-box {
    width: 450px;
    max-width: 100%;
    padding: 25px;
}

.form-box header {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    color: #2B547E;
}

.form-box hr {
    background-color: #2B547E;
    height: 4px;
    width: 50px;
    margin: 10px auto;
    border-radius: 5px;
}

/* Input Fields */
.input-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
}

.icon {
    padding: 12px;
    background-color: #f1f1f1;
    color: #555;
    min-width: 45px;
    text-align: center;
}

.input-field {
    flex: 1;
    padding: 7px;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: #f1f1f1;
    width:90%;
}

.input-field:focus {
    color: #2B547E;
}

/* Remember & Forgot Password */
.remember {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 20px;
}

.remember a {
    text-decoration: none;
    color: #2B547E;
font-weight: bold;
}

.remember a:hover {
    font-weight: bold;
}

/* Submit Button */
.btn {
    width: 100%;
    max-width: 100%;
    height: 45px;
    background-color: #2B547E;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.8;
}

/* Links */
.links {
    margin-top: 20px;
    text-align: center;
}

.links a {
    text-decoration: none;
    color: #2B547E;
}

.links a:hover {
    /*font-weight: bold;*/
}

/* 🟢 FINAL FIX - Fully Responsive */
@media (max-width: 480px) {

.form-box {
    width: 100%;
    max-width: 100%;
    padding: 20px;
}
    .container {
        padding: 10px;
    }

    .box {
        width: 95%;
        padding: 15px;
    }

    .form-box header {
        font-size: 24px;
    }

    .input-container {
        flex-direction: row; /* Ensure inputs and icons align */
    }

    .input-field {
        font-size: 14px;
        padding: 9px;
    }

    .btn {
        font-size: 16px;
        padding: 9px;
    }

    .remember {
        flex-direction: column;
        align-items: flex-start;
        font-size: 12px;
    }

    .remember a {
        margin-top: 5px;
    }
}

/* 🟢 Ensure No Background Scaling Issues */
@media (max-width: 768px) {
    body {
        background-size: cover;
        background-attachment: fixed;
    }
}

@media (max-width: 480px) {
    .input-container {
        position: relative;
    }
i.fa.fa-eye-slash.toggle.icon {
    position: absolute;
    right: 0;
}
.input-field {
        width: 100%;
    }
}
