@font-face {
  font-family: "Inter";
  src: url("/login-assets/assets/inter-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/login-assets/assets/inter-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/login-assets/assets/inter-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Material Symbols Outlined";
  src: url("/login-assets/assets/material-symbols-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

:root {
  color-scheme: light;
  --navy: #1b2a44;
  --navy-deep: #101b30;
  --blue: #2755a6;
  --blue-bright: #1f7bff;
  --blue-soft: #eef5ff;
  --text: #151c23;
  --muted: #5d6672;
  --outline: #c3c6d3;
  --danger: #b42318;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--blue-soft);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.material-symbol {
  display: inline-block;
  direction: ltr;
  font-family: "Material Symbols Outlined";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(440px, 2fr);
  min-height: 100vh;
}

.hero {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 64px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy) 66%, var(--navy-deep) 100%);
  color: var(--white);
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand {
  color: #d9e2ff;
}

.hero-copy {
  width: min(680px, 100%);
  margin-block: auto;
}

.hero h1 {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero p {
  max-width: 600px;
  margin: 0;
  padding-left: 24px;
  border-left: 2px solid #afc6ff;
  color: #d9e2ff;
  font-size: 18px;
  line-height: 1.55;
}

.access-panel {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--white);
  box-shadow: -10px 0 30px rgba(27, 42, 68, 0.08);
}

.mobile-brand {
  display: none;
  justify-content: center;
  color: var(--blue);
}

.form-wrap {
  width: min(100%, 520px);
  margin: auto;
  padding: 64px;
}

.form-wrap header {
  margin-bottom: 64px;
}

.form-wrap h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.form-wrap header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

#login-form {
  display: grid;
  gap: 24px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.input-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: #737783;
  font-size: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 11px 48px;
  border: 1px solid var(--outline);
  border-radius: 4px;
  outline: 0;
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.input-wrap input::placeholder {
  color: #858d98;
}

.input-wrap input:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(31, 123, 255, 0.14);
}

.input-wrap input[aria-invalid="true"] {
  border-color: var(--danger);
}

.icon-button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #737783;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--blue);
}

.icon-button:focus-visible,
.submit-button:focus-visible {
  outline: 3px solid rgba(31, 123, 255, 0.32);
  outline-offset: 2px;
}

.form-error {
  min-height: 20px;
  margin: -8px 0 -4px;
  color: var(--danger);
  font-size: 14px;
  line-height: 1.4;
}

.submit-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 140ms ease;
}

.submit-button:hover:not(:disabled) {
  background: #003d8b;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.access-footer {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  border-top: 1px solid rgba(195, 198, 211, 0.35);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-footer .material-symbol {
  font-size: 16px;
}

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

  .hero {
    display: none;
  }

  .access-panel {
    min-height: 100vh;
  }

  .mobile-brand {
    display: flex;
    padding: 48px 24px 24px;
  }

  .form-wrap {
    padding: 32px 24px 48px;
  }

  .form-wrap header {
    margin-bottom: 48px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .mobile-brand {
    padding-top: 32px;
  }

  .form-wrap {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
