/* Login page for app.skolekretskart.no. A handful of tokens copied from
   ../landing/styles.css rather than shared directly with it -- dist-app and
   dist-landing are separate deployments (see ../ACCESS.md). */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-soft: #475467;
  --border: #e7e9ee;

  --accent: #1d4ed8;
  --accent-hover: #1b45bd;

  --radius: 14px;
  --radius-sm: 10px;

  --shadow-md: 0 6px 16px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

/* The payment step (Stripe's embedded Checkout) wants more room than a
   plain email/password form does. */
.login-card--wide {
  max-width: 480px;
}

.login-card h1 {
  margin: 0 0 24px;
  font-size: 20px;
}

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

.login-card label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.login-card input {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.login-card button {
  margin-top: 8px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.login-card button:hover {
  background: var(--accent-hover);
}

.login-card .error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
}

.login-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-soft);
}

/* A link styled like .login-card button, for pages with no form -- 404.html. */
.login-card .btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.login-card .btn:hover {
  background: var(--accent-hover);
}

/* The escape hatch out of the embedded-Checkout step -- deliberately
   understated next to .btn, since paying is the primary action here. */
.login-card .cancel-link {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
}

.login-card .cancel-link:hover {
  color: var(--accent);
}
