/* =============================================================
   login.css — Login, glemt password og reset-password sider
   -------------------------------------------------------------
   - Fuldskærm baggrundsbillede (login-bg.jpg)
   - Centreret "glassmorphism"-kort med login-form
   - Ikoner foran input-felter (email + låse-symbol)
   - Responsive: mobil, iPad og desktop — billedet fylder altid
     hele baggrunden uanset skærmstørrelse
   ============================================================= */

* {
  box-sizing:border-box;
}

html, body {
  margin:0;
  padding:0;
  height:100%;
}

body {
  font-family:-apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background-image:
    linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.25)),
    url("../img/backgrounds/login-bg-mobile.jpg");
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  background-attachment:fixed;
  color:#0f172a;
}

/* iPad (portrait + landscape omkring 768-1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  body {
    background-image:
      linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.25)),
      url("../img/backgrounds/login-bg-tablet.jpg");
  }
}

/* Desktop (≥1200px) */
@media (min-width: 1200px) {
  body {
    background-image:
      linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.25)),
      url("../img/backgrounds/login-bg-desktop.jpg");
  }
}

/* Glassmorphism card */
.card {
  width:min(100%, 340px);
  background:rgba(255,255,255,.28);
  backdrop-filter:blur(14px) saturate(130%);
  -webkit-backdrop-filter:blur(14px) saturate(130%);
  border:1px solid rgba(255,255,255,.38);
  border-radius:12px;
  padding:24px 20px 20px;
  box-shadow:0 20px 40px rgba(15,23,42,.22);
}

h1 {
  margin:0 0 4px;
  font-size:34px;
  font-weight:800;
  letter-spacing:-.02em;
  color:#0f172a;
}

.card > p {
  margin:0 0 20px;
  color:#334155;
  font-size:15px;
}

form label {
  display:block;
  margin:14px 0 8px;
  font-size:15px;
  font-weight:700;
  color:#0f172a;
}

/* Input wrapper med ikon */
.input-wrap {
  position:relative;
}

.input-wrap .input-icon {
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  pointer-events:none;
  color:#64748b;
  display:flex;
  align-items:center;
  justify-content:center;
}

.input-wrap input {
  width:100%;
  height:52px;
  border:1px solid rgba(255,255,255,.65);
  border-radius:10px;
  background:rgba(255,255,255,.72);
  padding:0 44px 0 44px;
  font-size:16px;
  color:#0f172a;
  outline:none;
  transition:background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.input-wrap input::placeholder {
  color:#94a3b8;
}

.input-wrap input:focus {
  background:#ffffff;
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(147,197,253,.4);
}

/* Plain input uden input-wrap (fx reset-password-siden) */
form > input[type="text"],
form > input[type="email"],
form > input[type="password"] {
  width:100%;
  height:52px;
  border:1px solid rgba(255,255,255,.65);
  border-radius:10px;
  background:rgba(255,255,255,.72);
  padding:0 16px;
  font-size:16px;
  color:#0f172a;
  outline:none;
  transition:background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

form > input[type="text"]:focus,
form > input[type="email"]:focus,
form > input[type="password"]:focus {
  background:#ffffff;
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(147,197,253,.4);
}

/* Eye toggle for password */
.eye-toggle {
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  background:transparent;
  border:0;
  cursor:pointer;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#64748b;
  padding:0;
}

.eye-toggle:hover {
  color:#0f172a;
}

.remember-row {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:16px;
}

.remember-row input[type="checkbox"] {
  width:20px;
  height:20px;
  margin:0;
  accent-color:#2563eb;
  cursor:pointer;
}

.remember-row label {
  margin:0;
  font-size:15px;
  font-weight:600;
  color:#0f172a;
  cursor:pointer;
}

button[type="submit"] {
  width:100%;
  height:52px;
  border:0;
  border-radius:10px;
  background:#2563eb;
  color:#ffffff;
  font-size:16px;
  font-weight:700;
  margin-top:20px;
  cursor:pointer;
  transition:background .15s ease, transform .1s ease;
  box-shadow:0 10px 20px rgba(37,99,235,.25);
}

button[type="submit"]:hover {
  background:#1d4ed8;
}

button[type="submit"]:active {
  transform:translateY(1px);
}

.auth-links {
  margin-top:14px;
  display:flex;
  justify-content:flex-end;
}

.text-link {
  color:#2563eb;
  font-weight:700;
  text-decoration:none;
  font-size:15px;
}

.text-link:hover {
  text-decoration:underline;
}

/* Flash-beskeder (error / notice) inde i login-kortet */
.error {
  background:#fef2f2;
  border:1px solid #fca5a5;
  color:#7f1d1d;
  border-radius:10px;
  padding:12px 14px;
  margin-bottom:14px;
  font-size:14px;
  font-weight:600;
}

.notice {
  background:#ecfdf5;
  border:1px solid #86efac;
  color:#14532d;
  border-radius:10px;
  padding:12px 14px;
  margin-bottom:14px;
  font-size:14px;
  font-weight:600;
}

.helper-text {
  margin-top:16px;
  color:#475569;
  font-size:13px;
  line-height:1.5;
}

/* Brand-footer nederst på skærmen */
.login-footer {
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  padding:16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  text-align:center;
  color:#ffffff;
  font-size:14px;
  text-shadow:0 2px 8px rgba(0,0,0,.45);
  pointer-events:none;
}

.login-footer strong {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  font-size:16px;
}

.login-footer .truck-icon {
  display:inline-flex;
  width:22px;
  height:22px;
  align-items:center;
  justify-content:center;
}

.login-footer-sub {
  margin-top:4px;
  font-size:13px;
  opacity:.92;
}

/* Permanent privatlivspolitik-link i login-footer. Altid synligt, så
   politikken kan tilgås uafhængigt af cookie-banneret (GDPR: let
   tilgængelig). Diskret, men klikbart. */
.login-footer-link {
  display:inline-block;
  margin-top:10px;
  font-size:12px;
  color:inherit;
  opacity:.75;
  text-decoration:underline;
  /* Footeren har pointer-events:none, så den ikke blokerer for noget
     bagved. Linket skal dog stadig kunne klikkes — så vi slår klik til
     igen kun på selve linket. */
  pointer-events:auto;
}

/* Række med flere footer-links (Hvad er Logbogen? · Privatlivspolitik) */
.login-footer-links {
  margin-top:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}

.login-footer-links .login-footer-link {
  margin-top:0;
}

.login-footer-sep {
  font-size:12px;
  opacity:.55;
  pointer-events:none;
}

.login-footer-link:hover {
  opacity:1;
}

/* Tagline card nederst (inside the card) */
.brand-tagline {
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(15,23,42,.12);
  color:#334155;
  font-size:14px;
  line-height:1.55;
}

.brand-tagline strong {
  color:#0f172a;
  font-weight:700;
}

/* Mobile tweaks */
@media (max-width: 560px) {
  body {
    padding:18px;
    padding-bottom:90px;
    align-items:flex-start;
    padding-top:6vh;
  }

  .card {
    padding:20px 18px 18px;
    border-radius:12px;
    width:min(100%, 320px);
  }

  h1 {
    font-size:30px;
  }

  .login-footer {
    font-size:13px;
  }
}

/* Larger screens — card centered and not too huge */
@media (min-width: 900px) {
  .card {
    width:360px;
    padding:26px 22px 22px;
  }
}

/* ============================================================
   COOKIE-/PRIVATLIVS-BANNER
   ------------------------------------------------------------
   Oplysnings-banner (anerkend, intet til/fra-valg) da sitet kun
   bruger nødvendige cookies. Fast i bunden, blød indtoning. */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  padding: 16px;
  background: rgba(31, 41, 55, 0.98);
  color: #f9fafb;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.25);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-banner__text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #d1d5db;
}

.cookie-banner__text a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cookie-banner__btn:hover {
  background: #1d4ed8;
}

/* Mobil: stabl tekst og knap */
@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-banner__btn {
    width: 100%;
  }
}
