@import url("theme.css");

/* Max width container */
.container {
  max-width: 1440px;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background: #ffffff;
  font-size: 16px;
}

/* ================= HEADER ================= */
.top-header {
  background: var(--header);
  padding: 8px 0;
}

.top-header a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  margin: 0 15px;
}

.top-header .btn-link {
  color: #fff;
  padding: 8px 40px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.bg-cream {
  background: var(--secondary);
}

.bg-cream:hover {
  background: #fcefcd;
}

.text-gold {
  color: var(--gold);
  font-weight: 400;
  font-size: 24px;
  line-height: normal;
}

.text-heading {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
}

/* ================= MAIN ================= */
.portal-section {
  min-height: calc(100vh - 240px); /* Adjusted roughly for header/footer */
  display: flex;
  align-items: center; /* Vertically centers the login card */
  padding: 60px 0;
}

.portal-logo {
  width: 100%;
  max-width: 229px;
}

.portal-title {
  color: var(--primary);
  font-weight: 600;
  margin-top: 20px;
}

.portal-heading {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.portal-text {
  max-width: 480px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* ================= LOGIN CARD ================= */
.login-card {
  background: var(--secondary);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.login-card label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.login-card .form-control {
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  padding: 12px 15px;
  font-size: 15px;
}

.btn-login {
  background: #1c1c1c;
  color: #fff;
  width: 100%;
  border-radius: 6px;
  padding: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.btn-login:hover {
  background: #000;
  color: #fff;
}

.login-options {
  font-size: 14px;
}

.btn-apply {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50px;
}

.btn-apply:hover {
  background: var(--header);
  color: var(--secondary);
  border: 1px solid var(--header);
}

.line-divider {
  background: #d9d9d9;
  height: 1px;
  flex: 1;
}

/* ================= FOOTER ================= */
footer {
  background: var(--gradient);
  padding: 40px 0 25px;
  color: #fff;
}

footer a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s;
}

footer a:hover {
  opacity: 0.8;
}

.footer-links {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.footer-logo {
  max-width: 136px;
}

.copyright {
  font-size: 13px;
  opacity: 0.7;
}

/* ================= MEDIA QUERIES ================= */

@media (min-width: 1200px) and (max-width: 1440px) {
  .portal-section {
    height: auto;
  }
}

@media (max-width: 1199px) {
  .top-header .btn-link {
    padding: 8px 25px;
  }
  .portal-section {
    height: auto;
  }
}

@media (max-width: 991px) {
  .portal-section {
    padding: 60px 0;
    height: auto;
  }

  .portal-heading {
    font-size: 36px;
  }

  .login-card {
    margin-top: 50px;
    padding: 30px;
  }

  .portal-logo {
    max-width: 180px;
  }

  footer .container {
    flex-direction: column;
  }

  footer .row {
    width: 100%;
    margin-top: 30px;
  }

  .footer-links {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 10px;
  }

  .copyright {
    text-align: center !important;
  }
}

@media (max-width: 768px) {
  .top-header .container {
    flex-direction: column;
    gap: 10px !important;
  }

  .top-header .btn-link {
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  .portal-title {
    font-size: 20px !important;
  }

  .portal-heading {
    font-size: 32px;
  }

  .portal-text {
    max-width: 100%;
  }

  .footer-links a {
    padding: 5px 10px !important;
  }
}

@media (max-width: 576px) {
  .portal-section {
    padding: 40px 0;
    height: auto;
  }

  .portal-heading {
    font-size: 28px;
  }

  .login-card {
    padding: 20px;
  }

  .btn-apply {
    font-size: 12px;
  }

  .apply-btns-grid {
    grid-template-columns: 1fr !important;
  }
}
