.login-shell {
  --login-background: var(--background);
  --login-foreground: var(--foreground);
  --login-card: var(--card);
  --login-border: var(--border);
  --login-input: var(--input);
  --login-selected: var(--selected);
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: hsl(var(--login-background));
  color: hsl(var(--login-foreground));
  font-size: 16px;
  line-height: 1.5;
}

.login-card {
  width: 100%;
  max-width: 480px;
  padding: 28px;
  border: 1px solid hsl(var(--login-border) / 0.7);
  border-radius: 16px;
  background: hsl(var(--login-card));
  box-shadow: 0 8px 40px -16px hsl(var(--login-foreground) / 0.12);
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.login-animation {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.login-animation svg {
  display: block;
  width: 100%;
  height: 100%;
}

.login-wordmark {
  text-align: center;
}

.login-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.04em;
}

.login-subtitle {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

.login-form > * + * {
  margin-top: 20px;
}

.login-form > input[type="hidden"] + * {
  margin-top: 0;
}

.login-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.login-field {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 8px 14px;
  border: 1px solid hsl(var(--login-input));
  border-radius: 8px;
  background: hsl(var(--login-background));
  color: inherit;
  font-size: 16px;
  transition:
    border-color 150ms,
    background-color 150ms;
}

.dark .login-field {
  background: hsl(var(--login-background) / 0.4);
}

.login-field:focus-visible {
  border-color: hsl(var(--login-selected));
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--login-selected) / 0.25);
}

.login-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-code-row .login-label {
  margin-bottom: 0;
}

.login-code {
  width: 152px;
  max-width: 44%;
  padding-inline: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-align: center;
}

.login-code::placeholder {
  color: hsl(var(--login-foreground) / 0.4);
}

.login-submit-row {
  padding-top: 8px;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: hsl(var(--login-selected));
  color: hsl(var(--selected-foreground));
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms;
}

.login-submit:hover {
  background: hsl(var(--login-selected) / 0.9);
}

.login-submit:focus-visible {
  outline: 2px solid hsl(var(--login-selected));
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .login-card {
    padding: 40px;
  }

  .login-title {
    font-size: 36px;
    line-height: 40px;
  }
}
