﻿
body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: hidden; /* Prevents scrollbars */
}

/* Background Section */
.bg {
    position: fixed; /* Ensures it covers the entire screen */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('image/h2h.jpg') no-repeat center center;
    background-size: cover;
}

    /* Overlay for better contrast */
    .bg::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
    }

/* Container for Login Box */
.container {
    position: relative;
    width: 90%;
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 160px;
}

.custom-container {
    max-width: 400px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Centering the form inside the login box */
.login-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Updated form-group to properly align text boxes */
.form-group {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Input fields should take full width inside the box */
.form-control {
    width: 100%; /* Adjusts width properly inside the box */
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

/* Center the password input container */
.password-container {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

/* Password input field */
.password-input {
    width: 100%;
    padding: 10px 40px 12px 12px; /* Extra padding for the eye icon */
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

/* Eye icon inside the password input */
.toggle-password {
    position: absolute;
    right: 30px; /* Keeps it inside the input box */
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #007bff;
    cursor: pointer;
}

/* Button container centered */
.button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* Button styles */
.btn-primary {
    width: 180px;
    padding: 12px;
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        justify-content: center;
    }

    .custom-container {
        width: 90%;
        padding: 20px;
    }

    .btn-primary {
        padding: 15px;
        width: 100%; /* Make button full-width on smaller screens */
    }
}
