

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.login-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
    padding: 40px;
    box-sizing: border-box;
}


.branding {
    margin-bottom: 20px;
    text-align: center; /* Center-align the entire branding section */
}

.branding img {
    width: 180px; /* Adjust logo size */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensures proper spacing */
    margin: 0 auto 10px auto; /* Center the logo and add space below */
}

.branding h1 {
    margin: 0;
    font-size: 38px;
    font-weight: bold;
    color: #2B3A67;
    text-align: center; /* Align app name centrally */
}

.branding .appname {
    margin: 5px 0 0 0;
    font-size: 38px;
    color: #2B3A67;
    font-weight: bold;
    text-align: center; /* Align centrally */
}

.branding .slogan {
    margin: 10px 0 0 0; /* Reduce bottom margin for tighter spacing */
    font-size: 18px;
    font-style: italic;
    color: #757575;
    line-height: 1.5; /* Improve readability */
    text-align: center; /* Align text centrally */
    font-family: 'Roboto', Arial, sans-serif; /* Clean, professional font */
}


.login-box {
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 30px;
    max-width: 380px;
    width: 100%;
    box-sizing: border-box;
    /* center horizontally */
    /* push down to center vertically with flex-grow */
    margin: auto;
    position: relative;
    overflow: hidden;
}

/* Put the waves at a "neutral" z-index (0).
   By default, .info-box itself has no z-index or z-index: auto,
   so the waves will appear behind the text in normal flow. */
.login-box::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 200%;
    pointer-events: auto;
    /* Extend well beyond the box for a "wave" look */
}

.login-box::before {
  content: "";
  position: absolute;
  left: -20px; right: -20px; top: 390px; /* adjust as needed */
  height: 120px;
  background: linear-gradient(
    80deg,
    rgba(173, 216, 230, 0.5),
    rgba(135, 202, 223, 0.2),
    rgba(173, 216, 230, 0.5)
  );
  transform: rotate(-15deg);
  z-index: 10;
  opacity: 0.8;
  pointer-events: none;
}



.login-box h1 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 20px;
    color: #2B3A67;
    font-weight: 600;
}

.login-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2B3A67;
}

.login-box input[type="text"],
.login-box input[type="email"],
.login-box input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
    box-sizing: border-box;
    background: #F7FAFC;
}

.login-box select {
    width: 100%; /* Full width like text controls */
    padding: 12px; /* Same padding as the text controls */
    margin-bottom: 20px; /* Same bottom margin */
    border-radius: 4px; /* Rounded corners */
    border: 1px solid #ddd; /* Subtle border */
    font-size: 14px; /* Match font size */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    background: #F7FAFC; /* Same background color */
    appearance: none; /* Removes default dropdown arrow styling */
    -webkit-appearance: none; /* For Safari */
    -moz-appearance: none; /* For Firefox */
    color: #333; /* Ensures readable text */
    cursor: pointer; /* Matches the cursor style for interactive elements */
}

/* Optional: Add a custom arrow for the dropdown */
.login-box select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path fill="%23333" d="M0 0l5 6 5-6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center; /* Align arrow */
    background-size: 10px 6px; /* Size of the arrow */
}

/* Optional: Ensure the arrow doesn't overlap the text */
.login-box select {
    padding-right: 36px; /* Adds space for the arrow */
}

.password-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.password-label label {
    margin-bottom: 0;
}

.forgot-link a {
    font-size: 14px;
    color: #6366F1;
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #2B3A67;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.login-box-button {
    width: 100%;
    padding: 12px;
    background-color: #FF8900;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-box-button:hover {
    background-color: #d37202;
}

.create-account {
    text-align: center;
    font-size: 14px;
    color: #2B3A67;
}

.create-account a {
    color: #2B3A67;
    text-decoration: none;
    font-weight: 600;
}

.create-account a:hover {
    text-decoration: underline;
}

footer {
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    color: #757575; /* Change to white for contrast */
    left: 20px;
    background-color: rgba(255, 255, 255, 0.6); /* Semi-transparent black background */
    padding: 5px 10px; /* Space around the text */
    border-radius: 4px; /* Optional: Rounds the corners */
}

footer a {
    color: #757575;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Right panel for image with cover effect */
.login-image {
    flex: 1;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative; /* Establish a relative container for positioning */
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio */
    transform: translateX(100%); /* Start fully offscreen to the right */
    animation: coverEffectRTL 1.5s ease-in-out forwards; /* Cover effect animation */
}

.google-login {
    background-color: #ffffff;
    color: #757575;
    border: 1px solid #ddd;
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%;
    padding: 10px 15px; /* Padding for size */
    border-radius: 4px; /* Rounded corners */
    font-family: 'Roboto', sans-serif; /* Google's font, or a similar sans-serif */
    text-align: left; /* Align text to the left */
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    cursor: pointer; /* Change cursor to pointer */
    transition: background-color 0.2s; /* Smooth transition for hover effect */
}

.google-login:hover {
    background-color: #f2f2f2;
}

.google-login img {
    margin-right: 10px; /* Space between logo and text */
    height: 22px; /* Adjust size of the logo */
}

.google-login span {
    flex-grow: 1; /* Make text take up available space */
    text-align: center; /* Ensure text is centered */
}

.light-line {
    height: 2px;
    background-color: lightgray;
    border: none;
    margin-top: 15px;
    margin-bottom: 15px;
}

.loading-popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black with a bit of opacity */
}

/* Keyframes for the right-to-left cover effect */
@keyframes coverEffectRTL {
    from {
        transform: translateX(100%); /* Start fully offscreen to the right */
    }
    to {
        transform: translateX(0); /* End fully onscreen */
    }
}
