/* Login page for the Feke web app.
 *
 * The export has no Login.dc.html, so this page is built from the design
 * tokens and the readme's description of the login: a dark panel with two
 * faint radial glows, coral pill CTA, light form side. Every colour, radius
 * and font comes from design/tokens; nothing is invented beyond layout. */
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--fg-1);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
@media (max-width: 860px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login__panel { min-height: 240px; }
}

/* Dark panel: the only place in the app with gradients (readme, Depth). */
.login__panel {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--fg-on-dark);
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login__panel::before,
.login__panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.login__panel::before {
  width: 560px; height: 560px; left: -180px; top: -200px;
  background: radial-gradient(circle, rgba(255,107,87,.22), rgba(255,107,87,0) 65%);
}
.login__panel::after {
  width: 620px; height: 620px; right: -220px; bottom: -260px;
  background: radial-gradient(circle, rgba(95,143,166,.28), rgba(95,143,166,0) 65%);
}
.login__panel > * { position: relative; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--weight-heavy);
  font-size: 16px;
}
.wordmark img { width: 24px; height: 24px; object-fit: contain; }

.login__hero { margin: auto 0; padding: 48px 0; }
.login__hero img { width: 88px; height: 88px; object-fit: contain; margin-bottom: 20px; }
.login__hero h1 {
  margin: 0 0 12px;
  font-size: var(--text-display);
  line-height: var(--text-display-lh);
  letter-spacing: var(--text-display-ls);
  font-weight: var(--weight-heavy);
  max-width: 11ch;
}
.login__hero p {
  margin: 0;
  max-width: 34ch;
  font-size: var(--text-lead);
  line-height: var(--text-lead-lh);
  color: var(--slate-soft);
}
.login__foot {
  font-size: var(--text-meta);
  color: var(--slate-soft);
}
.login__foot code {
  font-family: var(--font-mono);
  color: var(--fg-on-dark);
}

/* Form side */
.login__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.card h2 {
  margin: 0 0 4px;
  font-size: var(--text-h1);
  letter-spacing: var(--text-h1-ls);
  font-weight: var(--weight-heavy);
}
.card > p {
  margin: 0 0 24px;
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  color: var(--fg-3);
}

.field { display: block; margin-bottom: 16px; }
.field span {
  display: block;
  font-size: 12px;
  font-weight: var(--weight-bold);
  color: var(--fg-3);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  font-family: var(--font-ui);
  font-size: 15px;
  background: #fff;
  color: var(--fg-1);
  outline: none;
}
.field input:focus { border-color: var(--focus); }
.form--error .field input { border-color: var(--coral); }

.error {
  display: none;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--coral-bg);
  border: 1px solid var(--coral-border);
  color: var(--coral-fg);
  font-size: 13px;
}
.form--error .error { display: block; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition: background var(--dur-fast);
}
.button:hover { background: var(--coral-hover); }
.button[disabled] { opacity: .45; cursor: default; }

.card__note {
  margin: 20px 0 0;
  font-size: var(--text-meta);
  line-height: 1.5;
  color: var(--fg-4);
  text-align: center;
}
