* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100vw;
    margin-top: 0; /* Remove extra margin to avoid top white space */
}

/* Logo Styling */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.logo img {
    height: 50px;
    max-width: 100%;
}

/* Login Section */
.login-section {
    position: relative;
    background-color: #267D3C;
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 140px 60px 60px 60px; /* Provide space below logo */
    min-width: 300px;
}

/* Form Box */
.form-box {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.25);
}

@media (min-width: 1200px) {
  .form-box {
    margin-left: 15%;
  }
}


.form-box h2 {
    font-size: 34px;
    margin-bottom: 15px;
}

.form-box p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #f0f0f0;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

label {
    font-size: 16px;
    margin: 15px 0 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot {
    font-size: 13px;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.forgot:hover {
    color: black;
    text-decoration: underline;
}

input {
    padding: 14px;
    border: 1px solid #4caf50;
    border-radius: 6px;
    background-color: #ffffff;
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
}

button {
    padding: 14px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #222;
}

/* Desktop background */
.image-section {
    flex: 1;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .login-section {
        align-items: center;
        padding: 100px 20px 40px 20px; /* Ensure space from top and logo */
    }

    .logo {
        position: relative;
        top: auto;
        left: auto;
        align-self: flex-start;
        margin-bottom: 20px;
    }

    .logo img {
        height: 40px;
    }

    .form-box {
        width: 100%;
        max-width: 100%;
    }

    .image-section {
        width: 100%;
        height: 150px;
        order: -1;
        background-position: center;
        background-size: cover;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 80px 15px 30px 15px;
    }

    .logo img {
        height: 35px;
    }

    .form-box {
        padding: 20px;
    }

    .form-box h2 {
        font-size: 26px;
    }

    .form-box p {
        font-size: 15px;
    }

    label {
        font-size: 14px;
    }

    input, button {
        font-size: 16px;
        padding: 12px;
    }

    .image-section {
        height: 100px;
    }
}

/*sending email to the admin*/
.contact-info {
  margin-top: 24px;
  font-size: 16px;
  color: #ffffff; /* Clean white text */
  line-height: 1.5;
  font-family: 'Lato', sans-serif;
}

.contact-info a {
  color: #5307cf; /* Bright yellow for visibility */
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contact-info a:hover {
  color: #ffc107; /* Warm amber on hover */
  text-decoration: underline;
}


/*words in the backgroud image*/
.image-section {
  position: relative; /* make sure this is relative to position the overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;               /* stretch full width */
  transform: translateY(-50%);  /* vertically center only */

  color: white;
  font-family: 'Lato', sans-serif;
  font-weight: 1000;
  font-size: 1.5rem;
  line-height: 1.3;
  text-align: center;

  padding: 0 40px;          /* horizontal padding inside full width */
  box-sizing: border-box;

  /* Optional: text shadow for readability */
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

.subtitle-text {
  font-weight: 500;       /* lighter/thinner font */
  font-size: 1.2rem;        /* smaller */
  display: block;
  opacity: 0.85;          /* optional: make it a bit faded */
}


.overlay-text {
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

@media (min-width: 1200px) {
  .overlay-text {
    font-size: 2.2rem; /* Increase base font size */
  }

  .subtitle-text {
    font-size: 1.5rem; /* Increase subtitle font size proportionally */
  }
}


@media (max-width: 768px) {
  .overlay-text {
    font-size: 1.6rem;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .overlay-text {
    font-size: 1rem;
    padding: 10px 15px;
  }
}
