:root {
  color-scheme: light;
  --auth-ink: #172a35;
  --auth-muted: #60717b;
  --auth-teal: #0c5861;
  --auth-teal-dark: #103a46;
  --auth-coral: #d65b47;
  --auth-line: #d7e0e2;
  --auth-surface: #ffffff;
  --auth-page: #edf2f2;
}

html,
body {
  min-height: 100%;
  height: auto;
  margin: 0;
  background: var(--auth-page);
  color: var(--auth-ink);
  font-family: "Source Sans Pro", "Segoe UI", sans-serif;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  min-height: 100vh;
  background: var(--auth-page);
  font-family: "Source Sans Pro", "Segoe UI", sans-serif;
}

.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 48px 56px 32px;
  overflow: hidden;
  color: #ffffff;
  background-color: var(--auth-teal-dark);
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.auth-brand {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 4px;
}

.auth-brand img {
  display: block;
  width: 184px;
  height: 40px;
  object-fit: contain;
}

.auth-brand-copy {
  max-width: 540px;
  margin: auto 0;
  padding: 72px 0;
}

.auth-eyebrow {
  margin: 0 0 14px;
  color: #9dc9c6;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.auth-brand-copy h1 {
  max-width: 560px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.12;
}

.auth-brand-copy > p:last-child {
  max-width: 360px;
  margin: 0;
  color: #c5d5d7;
  font-size: 17px;
  line-height: 1.55;
}

.auth-brand-foot {
  margin: 0;
  color: #9bb2b5;
  font-size: 13px;
}

.auth-main-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 8px 32px;
}

.auth-login-card {
  width: 100%;
  max-width: 460px;
  padding: 18px 30px;
  background: var(--auth-surface);
  border: 1px solid #e0e7e8;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 42, 53, 0.08);
  animation: auth-enter 360ms ease-out both;
}

.auth-heading {
  margin-bottom: 10px;
}

.auth-heading .auth-eyebrow {
  margin-bottom: 8px;
  color: var(--auth-teal);
}

.auth-heading h2 {
  margin: 0 0 8px;
  color: var(--auth-ink);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
}

.auth-heading > p:last-child {
  margin: 0;
  color: var(--auth-muted);
  font-size: 16px;
}

.auth-form {
  display: grid;
  gap: 9px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field label {
  color: #2e414a;
  font-size: 14px;
  font-weight: 600;
}

.auth-shell .auth-field .auth-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 11px 13px;
  color: var(--auth-ink);
  background: #fbfcfc;
  border: 1px solid var(--auth-line);
  border-radius: 5px;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-shell .auth-field .auth-input:focus {
  background: #ffffff;
  border-color: var(--auth-teal);
  box-shadow: 0 0 0 3px rgba(12, 88, 97, 0.13);
}

.auth-captcha {
  display: flex;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  overflow-x: auto;
}

.auth-local-note {
  margin: -4px 0 0;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.auth-notice {
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.45;
}

.auth-notice-success {
  margin-bottom: 20px;
  color: #155e49;
  background: #e8f4ef;
  border-left: 3px solid #27856b;
}

.auth-notice-warning {
  color: #714d15;
  background: #fff5df;
  border-left: 3px solid #d59b37;
}

.auth-errors .box-body {
  padding: 0;
}

.auth-errors .alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #efc6c2;
  border-radius: 5px;
  color: #8b302a;
  background: #fff0ee;
  font-size: 14px;
}

.auth-errors ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  margin: 2px 0 0;
  padding: 0 17px;
  color: #ffffff;
  background: var(--auth-teal);
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}

.auth-submit:hover:not(:disabled) {
  background: #084850;
  transform: translateY(-1px);
}

.auth-submit span:last-child {
  color: #f0ad82;
  font-size: 22px;
}

.auth-submit:disabled {
  color: #eef0f1;
  background: #69777d;
  cursor: not-allowed;
}

.auth-forgot-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--auth-teal);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot-link:hover {
  color: var(--auth-coral);
  text-decoration: underline;
}

.auth-shell :focus-visible {
  outline: 3px solid rgba(214, 91, 71, 0.72);
  outline-offset: 3px;
}

@keyframes auth-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .auth-shell {
    grid-template-columns: minmax(250px, 0.78fr) minmax(380px, 1.22fr);
  }

  .auth-brand-panel {
    padding: 36px 32px 26px;
  }

  .auth-brand-copy h1 {
    font-size: 34px;
  }

  .auth-login-card {
    padding: 30px 28px;
  }
}

@media (max-width: 680px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: 0;
    gap: 20px;
    padding: 22px 24px;
  }

  .auth-brand img {
    width: 150px;
    height: 33px;
  }

  .auth-brand-copy {
    margin: 0;
    padding: 4px 0 0;
  }

  .auth-brand-copy h1 {
    margin-bottom: 8px;
    font-size: 25px;
  }

  .auth-brand-copy > p:last-child {
    font-size: 15px;
  }

  .auth-brand-foot {
    display: none;
  }

  .auth-main-panel {
    align-items: start;
    padding: 20px 16px 32px;
  }

  .auth-login-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-login-card {
    animation: none;
  }
}