@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap');
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  color: #333;
  background: #fff;
}

a {
  color: #1a5fa8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #1a5fa8;
  outline-offset: 2px;
}

/* ===== Header & Topbar ===== */
.topbar {
  border-bottom: 3px solid #1a3d6d;
}

.topbar__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px 32px 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  font-family: "Courier Prime",Georgia, "Times New Roman", serif;
  color: #1a3d6d;
  line-height: 1.15;
}

.brand_foot {
  display: flex;
  flex-direction: column;
  font-family: "Courier Prime", Georgia, "Times New Roman", serif;
  color: #1a3d6d;
  line-height: 1.15;
}

.brand_line {
  display: flex;
  align-items: start;
  font-weight: bold;
}

.brand__line {
  font-size: 28px;
  font-weight: bold;
}

.brand:hover {
  text-decoration: none;
}

/* ===== Form & Inputs ===== */
.login-form {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.field {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: bold;
  color: #1a3d6d;
}

.field input {
  margin-top: 6px;
  padding: 8px 10px;
  width: 190px;
  border: 1px solid #b8c4d4;
  border-radius: 2px;
  font-size: 14px;
  color: #333;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input::placeholder {
  color: #9aa5b1;
  font-weight: normal;
}

.field input:focus {
  border-color: #1a5fa8;
  outline: none;
}

.field input:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
  background-color: #fdf2f2;
}

.field__error {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: normal;
  color: #c0392b;
  line-height: 1.3;
}

.login-form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.btn-login {
  background: #fff;
  border: 2px solid #1a5fa8;
  color: #1a5fa8;
  font-weight: bold;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-login:hover:not(:disabled) {
  background: #eef4fb;
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f5f5f5;
}

.login-form__links {
  font-size: 13px;
  line-height: 1.4;
}

.new-user {
  display: block;
  color: #555;
}

.get-started {
  display: block;
  font-weight: bold;
  font-size: 15px;
}

.forgot-row {
  text-align: right;
  padding: 0 32px 14px;
  font-size: 13px;
}

/* ===== Security Banner ===== */
.security-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #555;
}

.security-banner__icon {
  width: 16px;
  height: 16px;
  background: #ccc;
  display: inline-block;
}

/* ===== Sub Navigation ===== */
.subnav {
  text-align: center;
  padding: 14px 16px 28px;
  font-size: 15px;
}

.subnav span {
  color: #bbb;
  margin: 0 6px;
}


/* ===== Footer ===== */
.site-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 16px 60px;
  font-size: 12px;
  color: #444;
}

main.hero{
  min-height: 80vh;
  width: 100%;
  background-image: url('images/pic.jpeg');
  background-size: cover;      
  background-position: center;
  background-repeat: no-repeat;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
}

.footer-logos img{
  width: 100%;
  object-fit: contain;
}

.footer-divider {
  color: #ccc;
}

.footer-copy,
.footer-legal,
.footer-address {
  max-width: 640px;
  margin: 0 auto 10px;
  line-height: 1.6;
  font-size: 15px;
}

/* ===== Modal System ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 61, 109, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid #b8c4d4;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 36px 28px 28px;
  transform: translateY(-12px);
  transition: transform 0.2s ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  border-radius: 4px;
}

.modal__close:hover {
  background: #f0f4f8;
  color: #333;
}

.modal__title {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  color: #1a3d6d;
  font-size: 22px;
}

.modal__subtitle {
  margin: 0 0 20px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.field--modal {
  width: 100%;
  margin-bottom: 18px;
}

.field--modal input {
  width: 100%;
}

.btn-login--block {
  width: 100%;
  padding: 12px;
}

.modal__back {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: #1a5fa8;
  font-size: 13px;
  cursor: pointer;
}

.modal__back:hover {
  text-decoration: underline;
}

/* ===== Responsive Layout ===== */
@media (max-width: 720px) {
  .topbar__inner {
    flex-direction: column;
  }

  .login-form {
    flex-direction: column;
  }

  .login-form__actions {
    margin-top: 4px;
  }

  .subnav span {
    display: none;
  }

  .subnav a {
    display: block;
    padding: 4px 0;
  }
  main.hero {
    /* Slightly lower minimum height for tablet/mobile landscape */
    min-height: 40vh;
  }
}

@media (max-width: 375px) {
  main.hero {
    /* Compact height for small mobile screens without distorting or letterboxing */
    min-height: 30vh;
  }
}