@charset "utf-8";
/* CSS Document */

.container { 
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    /*justify-content: space-between;*/
    /*align-items: center;*/
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.nav-item {
    margin-right: 5%;
    margin-left: 2%;
    position: relative;
}

.nav-item a {
    text-decoration: none;
    color: #c70e80;
    transition: color 0.2s ease;
    font-size: 16px;
    font-weight: 500;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
}

.nav-item a:hover {
    color: #e7a515;
}

.nav-item a {
    text-decoration: none;
    color: #fff;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, DejaVu Sans, Verdana, sans-serif;
    background-color: #3f78b1; /* light green background */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 2px 2px rgba(0, 0, 0, 0.2);
}

.nav-item a:hover {
    background-color: #3f78b1; /* darker green on hover */
    color: #fff;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 2px 2px rgba(0, 0, 0, 0.3);
}

.nav-item a:active {
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}


.bursary {
    position: relative;
    padding-bottom: 0;
}

.bursary .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background-color: rgba(250, 247, 247, 0.849);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1;
    backdrop-filter: blur(10px);
}

.bursary:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 5px;
    text-decoration: none;
    color: #4d1ac5; /* Change text color to a dark gray */
    transition: color 0.2s ease;
}

.dropdown-menu a:hover {
    color: #555;
    background-color: rgba(209, 202, 202, 0.342);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
        width: 100%;
    }

    .nav-item {
        margin-right: 0;
        margin-left: 0;
        padding: 10px;
    }

    .bursary .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        margin-top: 10px;
    }

    .bursary:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 480px) {
    .nav-item a {
        font-size: 14px;
    }

    .bursary .dropdown-menu {
        padding: 5px;
    }

    .dropdown-menu a {
        padding: 5px;
    }
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight:200;
  font-size: 1px;
}

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

.form-control:focus {
  border-color: #337ab7;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.btn {
  background-color: #337ab7;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #23527c;
}

strong {
  font-size: 14px;
  font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, DejaVu Sans, Verdana, sans-serif;
  color: #000;
  font-weight: bold;
  margin-bottom: 20px;
  display: block;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg,#0f2027,#203a43,#2c5364);
}

/* ================= MAIN WRAPPER ================= */
.half {
  min-height: 100vh;
  width: 100%;
  display: flex;
}

/* ================= LEFT CONTENT ================= */
.contents {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(255,255,255,0.96);
}

/* ================= LOGIN CARD ================= */
.login-card {
  width: 100%;
  max-width: 620px;              /* was 520px */
  min-height: 480px;             /* gives presence */
  background: #fff;
  padding: 35px 37px 20px;       /* more breathing room */
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.28);
}
/* ================= INSTITUTION HEADER ================= */
.institution-header {
  text-align: center;
  margin-bottom: 20px;
}

.institution-header img {
  width: 70px;
  margin-bottom: 10px;
}

.institution-header h4 {
  margin: 0;
  font-weight: 600;
  color: #002244;
}

.institution-header p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* ================= NAVBAR ================= */
.login-navbar {
  margin: 15px 0 25px;
}

.login-navbar nav {
  background: transparent;
  box-shadow: none;
}

/* ================= TITLE ================= */
.login-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: #002244;
  margin-bottom: 25px;
}

/* ================= FORM ================= */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
}

.form-control {
  height: 50px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.form-control:focus {
  border-color: #3f78b1;
  box-shadow: 0 0 0 3px rgba(63,120,177,0.2);
}

/* ================= BUTTON ================= */
.btn-primary {
  width: 100%;
  height: 50px;
  border-radius: 30px;
  background: linear-gradient(135deg,#3f78b1,#1e4f91);
  border: none;
  font-size: 16px;
}

/* ================= MESSAGE ================= */
.session-msg {
  background: #eaf2fb;
  color: #1e4f91;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
}

/* ================= RIGHT BACKGROUND ================= */
.bg {
  flex: 1;
  background-size: cover;
  background-position: center;
}

/* ================= MOBILE ================= */
@media (max-width: 991px) {

  .half {
    flex-direction: column;
  }

  /* Background image on top */
  .bg {
    width: 100%;
    height: 240px;
    order: 1;
  }

  /* Login section below */
  .contents {
    order: 2;
    padding: 30px 15px 40px;
  }

  /* Login card spacing */
  .login-card {
    padding: 35px 25px 40px;
    max-width: 100%;
  }

  /* Navbar spacing fix */
  .login-navbar {
    margin-bottom: 5px;
  }

  .login-navbar nav {
    position: static !important;
    width: 100%;
  }

   .login-navbar ul {
    display: flex;
    flex-direction: column;
    gap: 6px;              /* space between items */
  }

  /* Extra padding for touch comfort */
  .login-navbar a {
    padding: 11px 25px;
    display: block;
  }
}





