* {
    box-sizing: border-box; /* Ensure padding and borders are included in width */
}

body { 
    margin: 0; 
    font-family: 'Assistant', sans-serif; 
    background-image: url('background.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    min-height: 100vh; 
    position: relative; 
    display: flex;
    flex-direction: column;
}

.header-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3; /* Ensure the header stays above other content */
}

.top-bar {
    background-color: white;
    width: 100%;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    display: flex;
    align-items: center;
    padding: 0 20px; /* Add padding for text spacing */
}

.top-bar-text {
    font-size: 19px;
    font-weight: 600;
    color: #555; /* Default color for the rest of the text */
}

.we-text {
    color: #9d002d; /* Deep red for "WE" */
}

.cert-text {
    color: #19457C; /* Dark blue for "CERT" */
}

.logo-bar {
    background-color: rgba(255, 255, 255, 0.1); /* Initial transparent background */
    width: 100%;
    height: 80px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    display: flex;
    align-items: center;
    padding: 0 0px; /* Add padding for logo spacing */
    transition: background-color 0.3s ease; /* Smooth transition for background color change */
}

.logo {
    max-width: 230px;
    transition: opacity 0.3s ease; /* Smooth transition for logo image change */
}

.overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    z-index: 1; 
}

.container-fluid { 
    position: relative; 
    z-index: 2; 
    min-height: calc(100vh - 60px); /* Adjust for footer (60px) only */
    display: flex; 
    flex: 1;
    margin-top: 0px;
    margin-bottom: 100px;
}

.left-side { 
    color: white; 
    padding-top: 50px;
    padding-left: 50px;
    padding-right: 50px;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    align-items: flex-start; 
}

.right-side { 
    padding-top: 50px;
    padding-left: 50px;
    padding-right: 50px;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    padding-bottom: 50px; /* Add 50px padding below the form */
}

.welcome-text h1 { 
    font-size: 40px; /* Reduced for better balance */
    line-height: 1.2; 
    margin: 0 0 20px 0; 
    font-weight: 600; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
    animation: fadeIn 1s ease-in-out;
}

.welcome-text p { 
    font-size: 20px; 
    line-height: 1.4; 
    margin: 0; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); 
    animation: fadeIn 1s ease-in-out 0.3s;
    animation-fill-mode: both;
}

.right-side h2 { 
    font-size: 35px; 
    font-weight: bold; 
    margin-bottom: 30px; 
    color: white; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
}

.form-label { 
    font-size: 16px; 
    color: white; 
    display: block;
    align-items: left;
    gap: 5px;
    position: relative;
}

.form-container { 
    width: 100%;
}

.form-control { 
    width: 100%; 
    height: 40px; 
    border-radius: 5px; 
    border: 1px solid #ccc; 
    padding: 10px;
    font-size: 14px;
}

.form-control-sm { 
    width: 100%; 
    height: 40px; 
    border-radius: 5px; 
    border: 1px solid #ccc; 
    padding: 10px;
    font-size: 14px; 
}

.form-control-prefix { 
    width: 20%; 
    height: 40px; 
    border-radius: 5px; 
    border: 1px solid #ccc; 
    padding: 10px; 
    font-size: 14px;
}

.form-control-name { 
    width: 100%; 
    height: 40px; 
    border-radius: 5px; 
    border: 1px solid #ccc; 
    padding: 10px;
    font-size: 14px; 
}

.form-control-lastname { 
    width: 100%; 
    height: 40px; 
    border-radius: 5px; 
    border: 1px solid #ccc; 
    padding: 10px; 
    font-size: 14px;
}

.form-control-half { 
    width: 100%; 
    height: 40px; 
    border-radius: 5px; 
    border: 1px solid #ccc; 
    padding: 10px; 
    font-size: 14px;
}

.btn-submit { 
    background-color: #9d002d; 
    border-color: #9d002d; 
    color: white; 
    border-radius: 5px; 
    width: 250px; 
    height: 40px; 
    font-size: 16px; 
    margin-top: 10px;
}

.btn-submit:hover { 
    background-color: #9d002d; 
    border-color: #a00d25; 
    font-size: 17px;
    color: white;
}

.login-container {
    display: flex;
    align-items: center;
    gap: 30px; /* Increased gap between the two .link-group divs */
    margin-top: 50px;
    margin-bottom: 50px;
    justify-content: space-between; /* Distribute space evenly */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.link-group {
    display: flex;
    align-items: center;
    gap: 10px; /* Gap between label and link within each group remains 10px */
}

.login-label { 
    font-size: 16px; 
    color: white; 
    text-align: left;
    margin-bottom: 0; /* Remove margin-bottom since we're in a single row */
}

.btn-login {
    color: white;
    border-radius: 5px;
    font-size: 17px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0; /* Remove margin-bottom */
}

.btn-login:hover {
    color: #9d002d;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
}

.g-recaptcha { 
    margin-top: 10px; 
}

.row-name { 
    display: flex; 
    gap: 10px; /* Reduced further to visually match 10px on Retina display */
    flex-wrap: nowrap; 
    align-items: flex-start; 
    width: 100%; 
    justify-content: space-between; /* Control gap distribution */
}

.row > div { 
    margin: 0; /* Ensure no additional margins */
}

.row-phone { 
    display: flex; 
    gap: 10px; 
    flex-wrap: nowrap; 
    align-items: flex-start; 
    width: 100%; 
}

.row-date-gender { 
    display: flex; 
    gap: 10px; 
    flex-wrap: nowrap; 
    align-items: flex-end; 
    width: 100%; 
}

.row-dept-job { 
    display: flex; 
    gap: 10px; 
    width: 100%; 
}

.dept { 
    width: 40%; 
}

.job { 
    width: 60%; 
}

.phone { 
    width: 50%; 
}

.password-strength { 
    display: flex; 
    gap: 3px; 
    margin-top: 5px; 
    width: 130px; /* Adjusted to fit 6 dashes (15px each) + 5 gaps (3px each) = 105px + extra for padding */
}

.dash { 
    width: 15px; 
    height: 5px; 
    background-color: grey; 
    border-radius: 3px; 
}

.dash.weak { 
    background-color: #9d002d; 
}

.dash.medium { 
    background-color: #FFC000; 
}

.dash.strong { 
    background-color: #92D050; 
}

.match-message { 
    font-size: 14px; 
    margin-top: 5px; 
    color: white; 
}

.password-container { 
    position: relative; 
    width: 100%; /* Adjusted to match original styling */
}

.password-container input { 
    width: 100%; 
    padding-right: 40px; 
}

.password-container i { 
    position: absolute; 
    right: 10px; 
    top: 50%; 
    transform: translateY(-50%); 
    cursor: pointer; 
    color: #ccc; 
}

.tooltip-text { 
    display: none; 
    width: 250px; 
    background-color: #555; 
    color: white; 
    text-align: center; 
    border-radius: 5px; 
    padding: 5px; 
    position: absolute; 
    z-index: 3; 
    top: -40px; 
    left: 50%; 
    transform: translateX(-50%); 
    font-size: 12px; 
}

.form-check-label { 
    color: white; 
    font-size: 14px; 
}

.form-check-label a { 
    color: white; 
    text-decoration: underline; 
}

.form-check-label a:hover { 
    color: #ddd; 
}

footer { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    z-index: 2; 
    background: #333333d8; /* Dark gray background */
    color: white; 
    width: 100%; 
    height: 90px; /* Fixed height to accommodate content */
    display: flex; 
    justify-content: space-between; /* Space out the left and right sections */
    align-items: flex-end; /* Bottom-align both sections */
    padding: 0 20px 10px 20px; /* Padding on sides and bottom */
}

.footer-left {
    display: flex;
    align-items: flex-end; /* Bottom-align the copyright text */
}

.footer-copyright {
    margin: 0;
    font-size: 14px;
    color: white;
    text-align: left; /* Left-align the text */
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Right-align the content */
}

.footer-logo {
    max-width: 200px; /* Adjust size as needed */
    max-height: 55px;
    object-fit: contain;
    margin-bottom: 1px; /* Space between logo and text */
}

.footer-slogan {
    margin: 0;
    font-size: 14px;
    color: white;
    font-weight: 500;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@media (max-width: 576px) {
    .login-container {
        flex-direction: column;
        gap: 20px; /* Keep a reasonable gap when stacked on mobile */
    }
    .link-group {
        justify-content: center;
    }

    footer {
        flex-direction: column;
        height: auto; /* Allow height to adjust for stacking */
        padding: 10px 20px;
        gap: 10px; /* Space between stacked sections */
        align-items: center; /* Center-align sections when stacked */
    }

    .footer-left {
        align-items: center; /* Center-align on mobile */
    }

    .footer-right {
        align-items: center; /* Center-align on mobile */
    }

    .footer-copyright {
        font-size: 12px; /* Slightly smaller font on mobile */
        text-align: center; /* Center-align text on mobile */
    }
}