* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

:root {
  color-scheme: light;
}

body {
  font-family: var(--font-family-primary, 'Space Grotesk', sans-serif);
  color: #0f172a;
  min-height: 100vh;
  background: #ffffff;
}

.login-page {
  --login-brand-green: #1c4d0a;
  --login-brand-brown: #6a2f0f;
  --login-brand-cream: #f6e2ab;
  --login-panel-bg: #fdf9ee;
  --accent-interactive: var(--login-brand-green);
  min-height: 100vh;
  width: 100%;
}

.login-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-showcase {
  --login-globe-bg-core: #0e2418;
  --login-globe-bg-mid: #081810;
  --login-globe-bg-edge: #04100a;
  --login-globe-tip-bg: rgba(6, 26, 64, 0.95);
  --login-globe-tip-ink: #eaf3ff;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: radial-gradient(1200px 800px at 50% 42%, var(--login-globe-bg-core) 0%, var(--login-globe-bg-mid) 55%, var(--login-globe-bg-edge) 100%);
}

.login-globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.login-globe-canvas:active {
  cursor: grabbing;
}

.login-globe-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  pointer-events: none;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--login-globe-tip-bg);
  color: var(--login-globe-tip-ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  transform: translate(-50%, -150%);
  opacity: 0;
  transition: opacity 0.18s;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(4, 16, 50, 0.55);
  border: 1px solid rgba(120, 180, 255, 0.28);
}

.login-globe-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--login-globe-tip-bg);
  border-bottom: 0;
}

.login-globe-credit {
  position: absolute;
  left: 28px;
  top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: globeCreditIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 2.3s both;
}

.login-globe-credit-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
  text-transform: uppercase;
  color: var(--login-brand-cream, #f6e2ab);
  opacity: 0.62;
}

.login-globe-credit-logo {
  display: block;
  width: 170px;
  height: auto;
  opacity: 0.94;
  filter: drop-shadow(0 6px 24px rgba(4, 16, 10, 0.55));
}

@keyframes globeCreditIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-globe-credit {
    animation: none;
    opacity: 1;
  }
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px;
  background: var(--login-panel-bg);
}

.login-card {
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.login-header {
  margin-bottom: 36px;
  text-align: center;
}

.login-logo {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 0 auto 12px;
  object-fit: contain;
}

.login-header h1 {
  font-size: clamp(34px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #0f172a;
}

.login-header p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.65;
  color: #64748b;
}

.login-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.login-footer a {
  color: var(--login-brand-green);
  text-decoration: none;
  font-weight: 700;
}

.login-footer a:hover {
  color: var(--login-brand-brown);
  text-decoration: underline;
}

.error-message {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #9f1239;
  font-size: 13px;
  font-weight: 700;
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  animation: fadeInUp 0.55s ease both;
}

.error-message.is-visible {
  display: flex;
}

.error-message.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

@media (max-width: 1180px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .login-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-showcase {
    min-height: 42vh;
  }

  .login-globe-credit {
    left: 20px;
    top: 18px;
    gap: 8px;
  }

  .login-globe-credit-logo {
    width: 140px;
  }

  .login-panel {
    min-height: auto;
    padding: 40px 24px;
  }
}

@media (max-width: 768px) {
  .login-showcase {
    min-height: 34vh;
  }

  .login-globe-credit {
    left: 16px;
    top: 14px;
  }

  .login-globe-credit-eyebrow {
    font-size: 9px;
  }

  .login-globe-credit-logo {
    width: 112px;
  }

  .login-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .login-showcase {
    min-height: 28vh;
  }

  .login-globe-credit {
    left: 14px;
    top: 12px;
    gap: 6px;
  }

  .login-globe-credit-eyebrow {
    font-size: 8px;
    letter-spacing: 0.28em;
    margin-right: -0.28em;
  }

  .login-globe-credit-logo {
    width: 96px;
  }

  .login-panel {
    padding: 28px 18px;
  }

  .login-card {
    width: 100%;
  }

  .login-header h1 {
    font-size: 28px;
  }
}




.login-header .login-subtitle {
  margin: 16px 0 0 0;
  font-size: 15px;
  color: #475569;
  line-height: 1.55;
  font-weight: 400;
  text-align: center;
}


.login-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: formFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes formFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #334155;
}

.login-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-field input:focus-visible {
  outline: none;
  border-color: var(--accent-interactive, var(--primary-color, #001f4c));
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 24px;
  margin-top: 4px;
  background: var(--accent-interactive, var(--primary-color, #001f4c));
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.login-submit:hover {
  filter: brightness(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.login-submit:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.login-submit:focus-visible {
  outline: 2px solid var(--accent-interactive, var(--primary-color, #001f4c));
  outline-offset: 3px;
}

.login-submit:disabled {
  cursor: wait;
  filter: grayscale(0.25) brightness(1.05);
}

.login-help {
  margin: 4px 0 0 0;
  font-size: 12.5px;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .login-header .login-subtitle { font-size: 14px; }
  .login-field input,
  .login-submit { font-size: 14px; min-height: 44px; }
}
