/* The sign-in page is the seam between the marketing site and the app, so it
   is styled to look like the site rather than like a separate utility screen:
   same tokens (css/tokens.css), same Inter, same hairline-and-soft-shadow card
   treatment the marketing demo panel uses, same canopy-green button.
   It used to be a white card on a near-black field with a charcoal button. */

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  font-family: var(--mk-sans);
  color: var(--mk-ink);
  /* A quieter version of the homepage hero's daytime sky, so arriving here
     from the site feels continuous. */
  background: linear-gradient(180deg, #e7f0f6 0%, #f6f9fa 45%, var(--mk-paper) 100%);
}

.login-wrap {
  width: 100%;
  max-width: 380px;
}

.login-card {
  background: var(--mk-paper);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  padding: 30px 28px 32px;
  box-shadow: var(--mk-shadow-pop);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--mk-ink);
  font-weight: 660;
  font-size: 16.5px;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.login-brand svg {
  display: block;
  flex-shrink: 0;
}

.login-card h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 680;
  letter-spacing: -0.025em;
  color: var(--mk-ink);
}

.login-sub {
  margin: 5px 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mk-ink-2);
}

.login-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--mk-radius-xs);
  background: var(--mk-danger-soft);
  border: 1px solid var(--mk-danger-border);
  color: var(--mk-danger);
  font-size: 13.5px;
  line-height: 1.45;
}

.login-success {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--mk-radius-xs);
  background: var(--mk-accent-soft);
  border: 1px solid var(--mk-accent-border);
  color: var(--mk-accent);
  font-size: 13.5px;
  line-height: 1.45;
}

.login-field {
  margin-bottom: 14px;
}

.login-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--mk-ink);
}

.login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--mk-line-strong);
  border-radius: var(--mk-radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--mk-ink);
  background: var(--mk-paper);
}

.login-field input:focus {
  outline: none;
  border-color: var(--mk-accent);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
}

.login-submit {
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: var(--mk-radius-sm);
  background: var(--mk-accent);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 620;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.login-submit:hover {
  background: var(--mk-accent-hover);
}

.login-submit:focus-visible {
  outline: 2px solid var(--mk-accent);
  outline-offset: 2px;
}

.login-foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--mk-ink-3);
}

.login-foot a {
  color: var(--mk-accent);
  text-decoration: none;
  font-weight: 550;
}

.login-foot a:hover {
  text-decoration: underline;
}
