@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;650;700;750;800&display=swap');

:root {
  color-scheme: dark;

  --dispatch-blue: #2143BE;
  --dispatch-blue-light: #4566E1;

  --background: #080a10;
  --surface: #10131c;
  --surface-border: rgba(255, 255, 255, 0.08);

  --text: #ffffff;
  --text-muted: #9ba3b7;

  --danger: #ff5f6d;

  font-family:
  "Montserrat",
  ui-sans-serif,
  system-ui,
  -apple-system,
  BlinkMacSystemFont,
  "Segoe UI",
  sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(33, 67, 190, 0.22),
      transparent 34rem
    ),
    linear-gradient(
      135deg,
      #080a10 0%,
      #0c1020 48%,
      #080a10 100%
    );
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

#app {
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.login-card {
  width: min(100%, 430px);
  padding: 42px;
  border: 1px solid var(--surface-border);
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.018)
    ),
    var(--surface);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(33, 67, 190, 0.08);

  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.brand-logo {
  display: block;
  width: min(100%, 250px);
  height: auto;
  max-height: 90px;
  object-fit: contain;
}

.login-heading {
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 8px;

  color: var(--dispatch-blue-light);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;

  font-size: clamp(1.8rem, 5vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.subtitle {
  margin: 10px 0 0;

  color: var(--text-muted);

  font-size: 0.95rem;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.field label {
  color: #dfe3ed;

  font-size: 0.82rem;
  font-weight: 650;
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;

  outline: none;

  background: rgba(0, 0, 0, 0.24);
  color: var(--text);

  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.field input::placeholder {
  color: #667086;
}

.field input:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.field input:focus {
  border-color: var(--dispatch-blue-light);

  background: rgba(0, 0, 0, 0.32);

  box-shadow:
    0 0 0 3px rgba(69, 102, 225, 0.16);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;

  transform: translateY(-50%);

  padding: 5px 7px;

  border: 0;
  border-radius: 6px;

  background: transparent;
  color: var(--text-muted);

  font-size: 0.75rem;
  font-weight: 650;
}

.password-toggle:hover {
  color: var(--text);
}

.login-error {
  padding: 11px 13px;

  border: 1px solid rgba(255, 95, 109, 0.25);
  border-radius: 9px;

  background: rgba(255, 95, 109, 0.08);
  color: #ff9aa3;

  font-size: 0.82rem;
  line-height: 1.4;
}

.login-button {
  position: relative;

  width: 100%;
  height: 50px;

  margin-top: 2px;

  border: 0;
  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      var(--dispatch-blue),
      var(--dispatch-blue-light)
    );

  color: #ffffff;

  font-weight: 750;
  letter-spacing: 0.01em;

  box-shadow:
    0 10px 30px rgba(33, 67, 190, 0.28);

  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-1px);

  box-shadow:
    0 14px 36px rgba(33, 67, 190, 0.38);
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.login-footer {
  display: flex;
  justify-content: center;
  gap: 8px;

  margin-top: 30px;

  color: #626b80;

  font-size: 0.7rem;
}

@media (max-width: 520px) {
  .login-shell {
    padding: 20px 14px;
  }

  .login-card {
    padding: 30px 24px;
    border-radius: 16px;
  }

  .brand {
    margin-bottom: 28px;
  }

  .brand-logo {
    width: 210px;
  }
}

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