* {
  font-family: "Lato", sans-serif;
}
:root {
  --primary-color: #0f324d;
  --dark-bg: #06141f;
  --text-white: #ffffff;
  --btn-danger: #e52529;
}

body {
  background-color: var(--dark-bg);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== NAVBAR STYLES ========== */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1.75rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  max-width: 245px;
  height: auto;
  width: 100%;
  margin-left: 150px;
}

.navbar-brand span {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  display: none;
}

.nav-link-custom {
  font-family: 'Poppins', sans-serif;
  color: var(--text-white) !important;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.nav-link-custom:hover {
  opacity: 0.8;
}

.btn-apply-now {
  background-color: var(--btn-danger);
  color: var(--text-white) !important;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-left: 10px;
  font-family: 'Poppins', sans-serif;
}

.btn-apply-now:hover {
  background-color: #F34B4F;
}

.navbar-collapse {
  justify-content: center;
  flex-grow: 0;
}

.navbar-nav {
  gap: 15px;
  align-items: center;
  margin-right: 150px;
}

/* ========== LOGIN FORM STYLES ========== */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 80vh;
}

.login-container {
  width: 100%;
  max-width: 500px;
}

.login-card {
  width: 430px;
  background: #f5f7fa;
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-header {
  text-align: center;
  /* margin-bottom: 2rem; */
}

.login-header img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.login-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
}

/* Tab Switch */
.tab-buttons {
  display: flex;
  gap: 0;
  margin-bottom: calc(2rem - 30px);
  justify-content: center;
  background-color: #d3d3d3;
  border-radius: 25px;
  /* padding: 4px; */
  position: relative;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 21px;
  margin-top: 8px;
}

.tab-slider {
  position: absolute;
  background-color: #4a6b8a;
  border-radius: 20px;
  height: calc(100% - 8px);
  width: calc(50% - 2px);
  top: 4px;
  left: 4px;
  z-index: 1;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn {
  padding: 0.65rem 1.8rem;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  z-index: 2;
  color: #0c283e;
  background-color: transparent;
  transition: color 0.3s ease;
}

.tab-btn.active {
  color: #ffffff;
}

.tab-btn:hover {
  color: #333333;
}

.tab-btn.active:hover {
  color: #ffffff;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  /* border: 2.5px solid #D0D0D0; */
  border: 1.5px solid #777777;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #4a6b8a;
  box-shadow: 0 0 0 3px rgba(74, 107, 138, 0.1);
}

.password-group {
  position: relative;
  display: flex;
}

.password-group input {
  padding-right: 55px !important;
  flex: 1;
  border-radius: 8px !important;
}

.password-group input.is-invalid {
  border-color: #dc3545 !important;
  border-radius: 8px !important;
  background-image: none !important;
}

.password-group .invalid-feedback {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: block;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #d0d0d0;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 20px;
  width: 55px;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  z-index: 10;
  box-shadow: inset -2px 0 0 0 #d0d0d0;
}

.password-toggle:hover {
  background-color: #b8b8b8;
  color: #333;
}

.forgot-password {
  text-align: center;
  margin: 1rem 0 1rem 0;
}

.forgot-password a {
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.forgot-password a:hover {
  opacity: 0.7;
}

.submit-btn {
  width: 50%;
  padding: 0.85rem;
  background-color: #0f324d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.submit-btn:hover {
  background-color: #3F5B71;
}

.submit-btn:active {
  transform: translateY(0);
}

.form-section {
  display: none;
}

.form-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Terms and Conditions Text */
.terms-text {
  color: #4d4d4d;
  /* font-family: 'Lato', sans-serif; */
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .navbar-collapse {
    justify-content: flex-start !important;
  }

  .navbar-nav {
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .navbar-brand img {
    max-width: 200px;
    margin-left: 0;
  }

  .nav-link-custom {
    font-size: 16px;
    line-height: 24px;
    
  }

  .btn-apply-now {
    font-size: 16px;
    line-height: 24px;
    padding: 0.5rem 1.2rem;
  }
}

@media (max-width: 576px) {
  main {
    padding: 1rem;
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
    align-items: center;
    justify-content: center;
  }

  .login-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .login-card {
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 430px;
  }

  .login-header h1 {
    font-size: 24px;
  }

  .navbar-brand img {
    max-width: 220px;
  }

  .navbar-brand span {
    display: inline;
    font-size: 14px;
  }

  .nav-link-custom {
    font-size: 14px;
    line-height: 20px;
  }

  .btn-apply-now {
    font-size: 14px;
    line-height: 20px;
    padding: 0.5rem 1rem;
    margin-left: 5px;
  }

  .tab-btn {
    padding: 0.65rem 1.5rem;
    font-size: 14px;
  }
}
