/* Sign-in and password pages of the platform (templates/layoutauth.html).
   The look of the site's /login.html (site/public/login.html); the rules are a
   self-contained copy from site/public/assets/css/site.css, so the page does not
   depend on the site's stylesheet. Tokens and fonts: tokens.css. */
@import url('/assets/css/tokens.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }
input { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-700);
  outline-offset: 2px;
}

h1 {
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ── Card ── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px; background: var(--bg); }
.login-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 48px; width: 100%; max-width: 440px; }
.login-logo { margin-bottom: 32px; text-align: center; }
.login-logo img { display: block; margin: 0 auto; max-width: 180px; height: 48px; }
.login-sub { color: var(--ink-2); font-size: 15px; margin-bottom: 28px; text-align: center; }
.login-note { font-size: 12px; color: var(--ink-2); margin-top: 12px; text-align: center; }
.login-foot { text-align: center; margin-top: 24px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 480px) { .login-card { padding: 32px 20px; } }

/* ── Messages ── */
.login-alert { border-left: 4px solid; border-radius: var(--radius); padding: 10px 14px; font-size: 14px; margin-bottom: 20px; }
.login-alert--error { color: var(--error); background: var(--error-bg); border-color: var(--error); }
.login-alert--info { color: var(--info); background: var(--info-bg); border-color: var(--info); }

/* ── Form ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-input {
  width: 100%;
  padding: 11px 16px;
  background: var(--white);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
}
.form-input:focus {
  outline: 2px solid var(--accent-700);
  outline-offset: 1px;
  border-color: var(--accent-700);
  box-shadow: 0 0 0 3px rgba(0,191,165,0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn--primary { background: var(--accent-500); color: var(--ink); border-color: var(--accent-500); }
.btn--primary:hover { background: var(--accent-400); border-color: var(--accent-400); text-decoration: none; box-shadow: 0 4px 12px rgba(0,191,165,0.40); }
.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--accent-500); }
.btn--block { width: 100%; }

/* ── Forgot password (no JavaScript) ── */
.forgot { margin-top: 16px; font-size: 14px; }
.forgot > summary { cursor: pointer; color: var(--accent-600); text-align: right; list-style: none; }
.forgot > summary::-webkit-details-marker { display: none; }
.forgot > summary:hover { text-decoration: underline; }
.forgot[open] > summary { margin-bottom: 12px; }
.forgot p { color: var(--ink-2); margin-bottom: 12px; }
