body, html {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden; /* Prevents scrollbars from appearing */
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.left-panel {
    flex: 1;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    text-align: center;
    position: relative;
}

.left-panel .header {
    padding-top: 20px;
}

.left-panel .logo {
    display: block; /* Make the link a block element for centering */
    width: 120px;
    height: 120px;
    margin: 0 auto 20px; /* Center the logo horizontally */
    background-image: url('ss_logo.png'); 
    background-size: cover;
    background-position: center;
}

.left-panel h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
    margin: 0;
}

.left-panel p {
    font-size: 0.8rem;
    color: #6c757d;
}

.skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 109%;
    height: 450px; /* Adjust height as needed */
    background-image: url('login-bg-image.png'); /* Replace with your SVG */
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    opacity: 0.4; /* Adjusted for better visibility */
    
}

.right-panel {
    flex: 1;
    background-color: #001f3f; /* Dark Navy Blue */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-card {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    font-size: larger;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 30px;
}



.form-control {
    height: 50px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0 20px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    padding-right: calc(1.5em + .75rem);
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.btn-login {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
}

.btn-login:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.signup-link {
    margin-top: 20px;
    font-size: 0.875rem;
    color: #6c757d;
}

.signup-link a {
    color: #007bff;
    text-decoration: underline;
}

/* Keep Bootstrap's invalid feedback for PHP errors */
.invalid-feedback {
    text-align: left;
    font-size: 0.875em;
}





/* --- Responsive Design --- */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        height: auto; /* Allow content to determine height */
        min-height: 100vh;
    }

    body, html {
        overflow: auto; /* Allow scrolling on smaller screens */
    }

    .left-panel {
        flex: none; /* Disable flex-grow */
        justify-content: center; /* Center the logo and text block */
        padding: 40px 20px;
        order: 2; /* Show the login form first */
    }

    .skyline {
        display: none; /* Hide decorative skyline on mobile */
    }

    .right-panel {
        order: 1; /* Show the login form first */
        padding: 40px 20px; /* Adjust padding for smaller screens */
    }
}
