/* ============================================================
   LOGIN — side-specifik styling
   Afhænger af /css/base.css (loades først)

   Login har sin egen palette med blå/koral. Vi overskriver
   base-variablerne lokalt, men lader base's komponenter
   (knapper, modal, toast, loader) være urørt.
   ============================================================ */

/* ===== LOGIN-SPECIFIK PALETTE ===== */
:root{
  --ink: #14141f;
  --ink-soft: #5b5b6b;
  --bg: #faf9f7;
  --panel: #ffffff;
  --line: #e7e5e1;
  --clay: #e5503f;
  --primary: #4338ca;
  --primary-deep: #342da0;
  --primary-tint: #eeecfb;
  --coral: #ff6b5b;
  --coral-deep: #e5503f;
  --danger-bg: #ffe9e6;
  --radius: 10px;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== BODY-OVERRIDE (login har sin egen baggrund + font) ===== */
body{
  background: var(--bg);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a{ color: inherit; }

/* ===== NAV ===== */
.nav{ border-bottom: 1px solid var(--line); }
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.logo{
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo-mark{
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.back-link{
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.back-link:hover{ color: var(--ink); }

/* ===== MAIN + CARD ===== */
.main{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-card{
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 30px 70px -35px rgba(20,20,31,0.25);
}
.login-head{ text-align: center; margin-bottom: 28px; }
.login-head h1{
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.login-head p{
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

/* ===== FIELDS ===== */
.field{ margin-bottom: 18px; }
.field label{
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field input{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--ink);
}
.field input:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.field-error{
  font-size: 11.5px;
  color: var(--coral-deep);
  margin-top: 6px;
  display: none;
}
.field.has-error input{ border-color: var(--coral); }
.field.has-error .field-error{ display: block; }

/* ===== ROW ===== */
.row-between{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.checkbox-row{
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-soft);
}
.checkbox-row input{ width: auto; }
.forgot-link{
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.forgot-link:hover{ text-decoration: underline; }

/* ===== SUBMIT-KNAP (login-specifik) ===== */
.btn-submit{
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 13px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-submit:hover{ background: var(--primary-deep); }
.btn-submit:disabled{
  background: var(--line);
  color: var(--ink-soft);
  cursor: not-allowed;
}

/* ===== DOMAIN NOTE ===== */
.domain-note{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--primary-tint);
  border-radius: 10px;
  padding: 13px 14px;
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.domain-note strong{ color: var(--ink); }

/* ===== SIGNUP ROW ===== */
.signup-row{
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 24px;
}
.signup-row a{
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.signup-row a:hover{ text-decoration: underline; }

.community-picker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.community-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.community-choice-btn:hover {
  border-color: var(--moss, #2f5d4f);
  background: #f7faf8;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px -4px rgba(47, 93, 79, 0.25);
}

.community-choice-btn strong {
  font-size: 15px;
  color: var(--ink, #1c2320);
  font-weight: 700;
}

.community-choice-btn span {
  font-size: 12.5px;
  color: var(--ink-soft, #4a544e);
}

.community-choice-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.switch-community-row {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #dcd8cd);
  font-size: 12.5px;
  color: var(--ink-soft, #4a544e);
  text-align: center;
}

.switch-community-row a {
  color: var(--moss, #2f5d4f);
  font-weight: 600;
  text-decoration: none;
}

.switch-community-row a:hover {
  text-decoration: underline;
}

/* ===== LOGIN FOOTER ===== */
.login-footer {
  text-align: center;
  padding: 32px 20px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 40px;
}

.login-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.15s ease;
}

.login-footer a:hover {
  color: var(--moss);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px){
  .login-card{ padding: 28px 22px; }
}