:root {
  --darknavy: #060e2a;
  --navy: #0c2054;
  --blue: #1d51d3;
  --blue-hover: #1743b0;
  --white: #ffffff;
  --text: #060e2a;
  --muted: #667085;
  --error-bg: #fdecec;
  --error-text: #a12020;
  --column-width: 440px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--darknavy);
  color: var(--text);
}

#app {
  min-height: 100%;
}

.login {
  display: flex;
  min-height: 100vh;
}

.login__brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px 16px;
  background:
    radial-gradient(circle at 30% 40%, rgba(29, 81, 211, 0.35), transparent 60%),
    var(--darknavy);
  color: var(--white);
}

.login__logo {
  width: min(360px, 60%);
  height: auto;
}

.login__wordmark {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.login__panel {
  width: var(--column-width);
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 48px 40px;
  background: var(--white);
  box-shadow: -8px 0 32px rgba(6, 14, 42, 0.35);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--blue-hover);
}

.button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.button--secondary {
  width: auto;
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.button--secondary:hover {
  background: var(--blue);
  color: var(--white);
}

.alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: 4px;
  background: var(--error-bg);
  color: var(--error-text);
  font-size: 14px;
}

.shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: var(--darknavy);
  color: var(--white);
}

.shell__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.shell__brand img {
  width: 40px;
  height: auto;
}

.shell__user {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.shell__user form {
  margin: 0;
}

.shell__user .button--secondary {
  min-height: 36px;
  color: var(--white);
  border-color: var(--white);
}

@media (max-width: 760px) {
  .login {
    flex-direction: column;
  }

  .login__brand {
    flex: none;
    padding: 40px 16px;
  }

  .login__logo {
    width: 160px;
  }

  .login__wordmark {
    font-size: 28px;
  }

  .login__panel {
    width: 100%;
    flex: 1;
    justify-content: flex-start;
    padding: 32px 16px;
    box-shadow: none;
  }
}
