/* styles.css */

/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body.modal-open {
    padding-right: 0 !important;
}

body h1 {
    font-weight: bold;
}

/* Header and Footer Styles */
header,
footer {
    background-color: #ffffff;
}

footer p {
    margin: 0;
    color: #666666;
}

/* Background Image */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Login Form Styling */
.container-fluid.position-relative {
    z-index: 1; /* Ensure the login container is above the background */
}

/* Logo Box Styling */
.logo-box {
    background-color: #ffffff; /* White background */
    padding: 20px; /* Padding inside the box */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
}

.logo-box img {
    max-width: 100%;
    height: auto;
}

.card {
    background-color: #31a9e0;
    border: none;
    border-radius: 8px;
    color: #ffffff; /* Set text color to white */
}

/* Ensure the logo image fits within the card */
.card img {
    max-width: 100%;
    height: auto;
}

.card .card-body {
    color: #ffffff;
}

.card-title {
    color: #ffffff;
}

/* Form Control Styling */
.form-control {
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    color: #000;
    border: 1px solid #ffffff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
    color:#000;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.3);
    color: #000;
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.2) inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Login Message Styling */
#login-message {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    padding: 15px;
    border-radius: 5px;
}

#login-message p {
    margin: 0;
    font-size: 0.9em;
}

/* Styling for Show Password and Forgot Password row */
.form-group.d-flex {
    margin-bottom: 15px;
}

.form-group.d-flex label {
    margin-bottom: 0; /* Align label with checkbox */
}

.form-group.d-flex a {
    text-decoration: underline; /* Emphasize the forgot password link */
}

.form-group.d-flex a:hover {
    color: #e6e6e6; /* Lighter hover color for accessibility */
}


/* Need Assistance Section */
.need-assistance {
    margin-top: 20px;
}

.need-assistance h5 {
    color: #ffffff;
    margin-bottom: 15px;
}

.need-assistance .btn-outline-light {
    border-color: #ffffff;
    color: #ffffff;
}

.need-assistance .btn-outline-light:hover {
    background-color: #ffffff;
    color: #31a9e0;
}

/* Modal Header Styling */
.modal-header {
    background-color: #31a9e0;
    color: #000000;
}

.modal-header .close {
    color: #ffffff;
    opacity: 1;
}

.modal-header .close:hover {
    color: #e6e6e6;
}

/* Modal Section Titles */
.modal-section-title {
    color: #000000;
    font-weight: bold;
    margin-top: 20px;
}

/* Modal Body Styling */
.modal-body {
    color: #333333;
}

.modal-body h3,
.modal-body h2 {
    font-weight: bold;
    font-size: 18px;
}

.modal-body p,
.modal-body ul {
    margin-bottom: 15px;
}

.modal-body ul {
    list-style-type: disc;
    padding-left: 20px;
}

.modal-body ul li {
    margin-bottom: 10px;
}

.modal-body a {
    color: #08587D;
    font-weight: bold;
}

.modal-body a:hover {
    color: #08587D;
    text-decoration: underline;
}

/* Modal Buttons */
.modal-body .btn-primary {
    background-color: #31a9e0;
    border-color: #31a9e0;
    color: #000000;
}

.modal-body .btn-primary:hover {
    background-color: #2695c7;
    border-color: #2695c7;
}

/* Adjust modal content padding */
.modal-content {
    border-radius: 8px;
}

/* Labels */
.card label {
    color: #ffffff;
}

/* Button Styling */
.btn-primary {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #31a9e0;
}

.btn-primary:hover {
    background-color: #e6e6e6;
    border-color: #e6e6e6;
    color: #31a9e0;
}

/* Adjust 'Forgot Password?' link */
.card a {
    color: #ffffff;
}

.card a:hover {
    color: #e6e6e6;
}

/* Navbar Styling */
.navbar-light .navbar-nav .nav-link {
    color: #00467f;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #31a9e0;
}

/* Existing styles above */

/* System Maintenance Section */
.system-maintenance {
    background-color: #000000;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
}

.system-maintenance p {
    margin: 0;
    font-size: 1em;
}

.system-maintenance a {
    color: #ffffff;
    text-decoration: underline;
}

.system-maintenance a:hover {
    color: #e6e6e6;
}

/* Adjusting margins to avoid overlap */
.main-content {
    margin-top: 20px;
}


/* Responsive Adjustments */
@media (max-width: 767.98px) {
    header img {
        max-width: 300px;
    }
    .col-md-6.d-flex {
        justify-content: center;
    }
    .card {
        margin: 2rem auto;
    }
}
