/* RättsKlart – auth-sidor (registrera + logga in) */

:root {
  --navy:        #001f3f;
  --green:       #2d4a3e;
  --green-dark:  #1f3329;
  --green-tint:  #e6ede8;
  --warm-white:  #fafaf8;
  --gray-bg:     #f4f4f1;
  --gray-border: #d6d6d0;
  --gray-text:   #5a5a55;
  --ink:         #1a1a1a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--gray-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.auth-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--gray-border);
  padding: 18px 0;
  flex-shrink: 0;
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.logo-mark {
  width: 44px; height: 44px; background: var(--navy);
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-family: var(--serif);
  font-weight: 700; font-size: 17px; color: white; flex-shrink: 0;
}
.logo-text {
  font-family: var(--serif); font-size: 22px;
  font-weight: 700; color: var(--navy);
  line-height: 1.1; letter-spacing: -0.01em;
}
.logo-text .accent { color: var(--green); }
.logo-tag {
  display: block; font-family: var(--sans);
  font-size: 10px; color: var(--green);
  margin-top: 2px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
}
.header-back {
  color: var(--gray-text); font-size: 14px; text-decoration: none;
  transition: color 0.15s;
}
.header-back:hover { color: var(--green); }

/* ── MAIN ── */
main {
  flex: 1; display: flex;
  align-items: center; justify-content: center;
  padding: 48px 24px;
}

/* ── AUTH-KORT ── */
.auth-card {
  background: white; border: 1px solid var(--gray-border);
  border-radius: 8px; width: 100%; max-width: 460px;
  padding: 48px 44px 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 12px 32px rgba(0,31,63,0.06);
}
.auth-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; color: var(--green);
  margin-bottom: 12px; text-transform: uppercase;
}
.auth-title {
  font-family: var(--serif); font-size: 36px;
  font-weight: 600; color: var(--navy);
  line-height: 1.1; margin-bottom: 8px; letter-spacing: -0.01em;
}
.auth-sub {
  font-size: 15px; color: var(--gray-text);
  margin-bottom: 32px; line-height: 1.5;
}

/* ── FELMEDDLANDE ── */
.fel {
  display: none; background: #fef2f2;
  border: 1px solid #fecaca; border-radius: 4px;
  padding: 12px 14px; font-size: 14px;
  color: #b53a3a; margin-bottom: 20px; line-height: 1.5;
}

/* ── FORMULÄR ── */
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 13px;
  font-weight: 600; color: var(--ink); margin-bottom: 6px;
}
.field input[type="email"],
.field input[type="password"] {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--gray-border); border-radius: 4px;
  font-family: var(--sans); font-size: 14.5px;
  color: var(--ink); background: var(--warm-white);
  transition: all 0.15s ease; outline: none;
}
.field input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,31,63,0.06);
  background: white;
}
.field-hint {
  font-size: 12.5px; color: var(--gray-text); margin-top: 6px;
}
.field-link {
  display: block; text-align: right;
  font-size: 12.5px; color: var(--gray-text);
  text-decoration: none; margin-top: 6px;
}
.field-link:hover { color: var(--navy); }

/* ── CHECKBOX ── */
.checkbox-row {
  display: flex; align-items: flex-start;
  gap: 10px; margin: 24px 0 28px;
}
.checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--navy);
  margin-top: 3px; flex-shrink: 0; cursor: pointer;
}
.checkbox-row label {
  font-size: 13.5px; color: var(--gray-text);
  line-height: 1.55; cursor: pointer;
}
.checkbox-row a {
  color: var(--green); text-decoration: underline;
  text-underline-offset: 2px; font-weight: 500;
}
.checkbox-row a:hover { text-decoration: none; }

/* ── KNAPP ── */
.btn-submit {
  width: 100%; background: var(--navy); color: white;
  border: none; padding: 14px; border-radius: 2px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  font-family: var(--sans); transition: background 0.15s ease;
}
.btn-submit:hover { background: var(--green); }
.btn-submit:disabled { background: var(--gray-text); cursor: not-allowed; }

/* ── TOGGLE ── */
.toggle-row {
  text-align: center; margin-top: 24px;
  font-size: 14px; color: var(--gray-text);
}
.toggle-row a {
  color: var(--navy); font-weight: 600;
  text-decoration: none; margin-left: 4px;
}
.toggle-row a:hover { color: var(--green); text-decoration: underline; }

/* ── DISCLAIMER ── */
.disclaimer {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--gray-bg);
  font-size: 12.5px; color: var(--gray-text);
  line-height: 1.55; text-align: center;
}
.disclaimer a {
  color: var(--gray-text); font-weight: 500;
  text-decoration: underline; text-underline-offset: 2px;
}
.disclaimer a:hover { color: var(--navy); }

/* ── INTEGRITETSRAD ── */
.privacy-strip {
  display: flex; justify-content: center;
  gap: 24px; flex-wrap: wrap;
  padding: 20px 0 32px;
  font-size: 12.5px; color: var(--gray-text);
}
.privacy-strip > div { display: flex; align-items: center; gap: 6px; }
.privacy-strip .icon { color: var(--green); font-weight: 700; }

/* ── MINIMAL FOOTER ── */
.auth-footer {
  background: var(--navy); color: #c5cfd0;
  padding: 24px 0; font-size: 13px; flex-shrink: 0;
}
.auth-footer .footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.auth-footer a { color: #c5cfd0; text-decoration: none; }
.auth-footer a:hover { color: white; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── MOBIL ── */
@media (max-width: 520px) {
  .auth-card { padding: 36px 24px 28px; }
  .auth-title { font-size: 28px; }
  main { padding: 32px 16px; }
  .privacy-strip { gap: 14px; flex-direction: column; align-items: center; }
}
