:root {
  --login-ink: #171721;
  --login-muted: #6f7280;
  --login-line: #dedfe6;
  --login-paper: #ffffff;
  --login-soft: #f4f4f8;
  --login-accent: #5937f3;
}

body.login-page {
  min-height: 100vh;
  background: var(--login-soft);
  color: var(--login-ink);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
  background: var(--login-paper);
}

.login-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px clamp(40px, 6vw, 96px) 28px;
}

.login-brand {
  display: inline-flex;
  width: fit-content;
}

.login-brand img {
  display: block;
  width: 286px;
  max-width: 100%;
  height: auto;
}

.login-form-wrap {
  width: min(100%, 480px);
  margin: auto 0;
  padding: 64px 0;
}

.login-form-heading .eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--login-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-form-heading h1 {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.login-form-heading p {
  margin: 22px 0 0;
  color: var(--login-muted);
  font-size: 17px;
  line-height: 1.65;
}

.login-error {
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid #efc8bf;
  border-radius: 12px;
  background: #fff1ee;
  color: #913d31;
}

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.login-form label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 750;
}

.login-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 17px;
  border: 1px solid var(--login-line);
  border-radius: 12px;
  background: #fff;
  color: var(--login-ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form input:focus {
  border-color: var(--login-accent);
  box-shadow: 0 0 0 4px rgba(89, 55, 243, 0.12);
}

.login-submit {
  width: 100%;
  min-height: 56px;
  justify-content: center;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  background: var(--login-ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.login-submit:hover {
  transform: translateY(-1px);
}

.login-help {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--login-line);
}

.login-help span {
  font-size: 14px;
  font-weight: 800;
}

.login-help p {
  margin: 7px 0 0;
  color: var(--login-muted);
  font-size: 14px;
  line-height: 1.55;
}

.login-footer-note {
  margin: 0;
  color: var(--login-muted);
  font-size: 12px;
}

.login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-image: var(--login-image);
  background-position: center;
  background-size: cover;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 32, 0.02), rgba(20, 18, 32, 0.16));
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-panel {
    min-height: 100vh;
    padding: 26px clamp(24px, 7vw, 64px);
  }

  .login-form-wrap {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .login-visual {
    display: none;
  }
}

@media (max-width: 560px) {
  .login-panel {
    padding: 22px 20px;
  }

  .login-brand img {
    width: 225px;
  }

  .login-form-wrap {
    padding: 48px 0 40px;
  }

  .login-form-heading h1 {
    font-size: 42px;
  }
}

/* Opret profil */
.register-submit {
  background: var(--login-accent);
}

.login-help a,
.register-help a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--login-accent);
  font-size: 14px;
  font-weight: 800;
}

.register-access-note {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--login-line);
  border-radius: 12px;
  background: #f8f7ff;
}

.register-access-note strong {
  font-size: 14px;
}

.register-access-note p {
  margin: 6px 0 0;
  color: var(--login-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Profiltype og underviserverificering */
.register-role-choice{border:0;margin:8px 0 4px;padding:0;display:grid;gap:10px}.register-role-choice legend{font-weight:800;margin-bottom:4px}.register-role-choice>p{margin:0 0 4px;color:var(--muted,#687386);font-size:.92rem}.register-role-option{display:flex!important;align-items:flex-start;gap:12px;padding:13px 14px;border:1px solid #dce2ea;border-radius:14px;cursor:pointer;background:#fff}.register-role-option:has(input:checked){border-color:#6d4aff;box-shadow:0 0 0 3px rgba(109,74,255,.1)}.register-role-option input{width:auto;margin-top:3px}.register-role-option span{display:grid;gap:3px}.register-role-option small{color:#687386;line-height:1.4}.register-teacher-fields{display:grid;gap:8px;padding:16px;border-radius:16px;background:#f6f3ff;border:1px solid #e3dcff}.register-teacher-fields[hidden]{display:none}.register-verification-note{margin:4px 0 0;font-size:.86rem;line-height:1.5;color:#5f5972}
