:root {
  --deep-teal: #00383b;
  --dark-teal: #002f32;
  --teal: #00777b;
  --bright-teal: #00a9b0;
  --orange: #f53616;
  --yellow: #ffb600;
  --page-bg: #f3f6f7;
  --text: #173c3e;
  --muted: #637779;
  --border: #cbd5d6;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: var(--teal);
}

.site-header {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px max(24px, calc((100% - 1120px) / 2));
  background: var(--dark-teal);
  border-bottom: 3px solid var(--bright-teal);
}

.brand img {
  display:block;
  width: min(250px, 55vw);
  max-height: 64px;
  object-fit: contain;
  border-radius: 12px;
}



.help-link {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.page {
  min-height: calc(100vh - 154px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 48px 20px;
}

.login-card {
  width: min(100%, 440px);
  padding: 38px 42px 30px;
  background: var(--white);
  border-top: 6px solid var(--orange);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgb(0 47 50 / 10%);
}

.card-heading {
  text-align: center;
  margin-bottom: 30px;
}

.lock-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: #e8f3f3;
  border-radius: 50%;
  font-size: 23px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--deep-teal);
  font-size: 32px;
  line-height: 1.2;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

form > label,
.password-label label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  height: 50px;
  margin-bottom: 22px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgb(0 119 123 / 14%);
}

input::placeholder {
  color: #8b999a;
}

.password-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -3px 0 24px;
  font-size: 13px;
}

.form-options a {
  font-weight: 700;
  text-decoration: none;
}

.remember-option {
  display: flex;
  align-items: center;
  gap: 7px;
}

.remember-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.login-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 28px;
  background: var(--deep-teal);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.login-button:hover {
  background: var(--teal);
}

.login-button:active {
  transform: scale(0.99);
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.85;
}

.spinner {
  display: none;
  width: 19px;
  height: 19px;
  border: 3px solid rgb(255 255 255 / 40%);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.login-button.is-loading .spinner {
  display: inline-block;
}

.status-message {
  min-height: 22px;
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.status-message.error {
  color: #b42318;
}

.status-message.success {
  color: #147442;
}

.card-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e4e9e9;
  text-align: center;
  font-size: 14px;
}

.card-footer p {
  display: inline;
  margin: 0 4px 0 0;
  color: var(--muted);
}

.card-footer a {
  font-weight: 700;
  text-decoration: none;
}

.security-note {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.site-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: var(--dark-teal);
  color: #e9f0f0;
  font-size: 12px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}


@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {

  .site-header {
    min-height: 76px;
    padding: 12px 20px;
  }

  .brand img {
    width: 140px;
   border-radius: 10px;
  }

  .help-link {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  }


  .page {
    min-height: calc(100vh - 140px);
    padding: 28px 15px;
  }

  .eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


#page-title{
 font-size: 24px;
}


.subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

form > label,
.password-label label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
}


input[type="text"],
input[type="password"] {
  width: 100%;
  height: 50px;
  margin-bottom: 22px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  outline: none;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
  margin: -3px 0 24px;
  font-size: 12px;
}

.form-options a {
  font-weight: 700;
  text-decoration: none;
}

.remember-option {
  display: flex;
  align-items: center;
  gap: 2px;
}

.remember-option input {
  width: 12px;
  height: 12px;
  accent-color: var(--teal);
}

#first-footer-link{
  font-size: 10px;
}


.login-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 28px;
  background: var(--deep-teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.spinner {
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid rgb(255 255 255 / 40%);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.status-message {
  min-height: 18px;
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}


.card-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e4e9e9;
  text-align: center;
  font-size: 12px;
}

  .login-card {
    padding: 30px 24px 25px;
  }

  .card-footer a {
  font-weight: 700;
  text-decoration: none;
}

  h1 {
    font-size: 29px;
  }

  .form-options {
    align-items: center;
    font-size: 12px;
  }

  .security-note {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.site-footer {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  background: var(--dark-teal);
  color: #e9f0f0;
  font-size: 12px;
}
  
#first-footer-link, #second-footer-link, #third-footer-link{
  padding: 4px 0px;
}


  .aria-hidden {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}