:root {
  --kbk-blue: #0078B8;
  --kbk-blue-dark: #005f8a;
  --kbk-bg-glass: rgba(255, 255, 255, 0.10);
  --kbk-border-glass: rgba(255, 255, 255, 0.45);
}

/* Wrapper omkring login-indholdet */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px); /* lidt luft til header/footer */
  padding: 40px 20px;
  background: transparent;
}

/* Container til de to bokse */
.login-container {
  display: flex;
  flex-direction: row;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 950px;
  width: 100%;
  justify-content: center;
  align-items: stretch;
}

/* FÆLLES stil til begge bokse – glas look */
.login-info,
.login-box {
  position: relative;
  flex: 1 1 340px;
  max-width: 430px;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.06)
  );
  border: 1px solid var(--kbk-border-glass);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #f5f5f5;
  overflow: hidden;
}

/* Farvet top-kant på begge bokse */
.login-info::before,
.login-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #00a5ff, #38bdf8, #0ea5e9);
}

/* Lidt hover-liv – meget subtilt */
.login-info:hover,
.login-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Overskrifter */
.login-info h2,
.login-box h2 {
  font-size: 26px;
  margin-bottom: 10px;
  text-align: left;
  letter-spacing: 0.04em;
}

/* Venstre tekstboks */
.login-info p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #e5e7eb;
}

.login-info img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
  object-fit: cover;
}

/* Login-boksen (højre) */
.login-box {
  color: #f9fafb;
}

/* Labels og inputs */
.login-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #e5e7eb;
}

/* Kun tekst/password felter */
.login-box input:not([type="checkbox"]) {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 15px;
  background: rgba(15, 23, 42, 0.7);
  color: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-box input:not([type="checkbox"]):focus {
  border-color: var(--kbk-blue);
  outline: none;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
  background: rgba(15, 23, 42, 0.9);
}

/* Checkbox + label */
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  color: #e5e7eb;
}

.remember-me input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--kbk-blue);
  border-radius: 4px;
  cursor: pointer;
  background-color: transparent;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.remember-me input[type="checkbox"]:checked {
  background-color: var(--kbk-blue);
  border-color: var(--kbk-blue);
  transform: scale(1.02);
}

.remember-me input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.remember-me input[type="checkbox"]:checked::after {
  opacity: 1;
}

/* ===============================
   Password wrapper + eye icon
=============================== */

/* --- Password wrapper + eye: altid synlig --- */
.password-wrapper{
  position: relative;
  width: 100%;
  margin-bottom: 18px;
}

.password-wrapper input{
  width: 100%;
  padding-right: 52px;
  margin-bottom: 0;
  display: block;
}

/* Eye overlay */
#togglePassword{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;

  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;

    color: var(--kbk-blue); /* ← gør øjet blå */
  opacity: 1;
  transition: color .2s ease, transform .2s ease, opacity .2s ease;
}


#togglePassword svg{
  width: 20px;
  height: 20px;
}

/* hover/focus */
#togglePassword:hover{
  color: #0078B8;
  transform: translateY(-50%) scale(1.08);
}

#togglePassword:focus-visible{
  outline: 2px solid rgba(0,120,184,0.6);
  outline-offset: 2px;
}

#togglePassword.visible{
  color: #0078B8;
}

#togglePassword:hover {
  color: #38bdf8;
  transform: translateY(-50%) scale(1.1);
}

#togglePassword.visible {
  color: #0ea5e9;
}



/* Knap med lille gradient */
#submitBtn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #f9fafb;
  background-image: linear-gradient(135deg, #0284c7, #0ea5e9, #38bdf8);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.9);
}

#submitBtn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.95);
}

#submitBtn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.9);
}

/* Spinner i knap */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(248, 250, 252, 0.7);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fejl/success beskeder */
.error-message,
.success-message {
  display: none;
  text-align: center;
  padding: 10px 12px;
  margin-top: 12px;
  border-radius: 10px;
  font-size: 13px;
}

.error-message {
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.55);
}

.success-message {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.55);
}

.error-message.show,
.success-message.show {
  display: block;
}

/* Shake på fejl */
.login-box.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-8px); }
  50%  { transform: translateX(8px); }
  75%  { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}

/* Video-baggrund + overlay */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) blur(3px);
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.14), transparent 55%),
              rgba(15, 23, 42, 0.72);
}

/* RESPONSIVT */
@media (max-width: 768px) {
  .login-wrapper {
    padding: 24px 12px;
    min-height: calc(100vh - 100px);
    align-items: flex-start;
  }

  .login-container {
    flex-direction: column;
    gap: 18px;
    max-width: 500px;
  }

  .login-info,
  .login-box {
    max-width: 100%;
    padding: 22px 20px;
    border-radius: 16px;
  }

  .login-info h2,
  .login-box h2 {
    font-size: 22px;
  }

  .login-info p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .login-wrapper {
    padding: 16px 10px;
  }

  .login-info,
  .login-box {
    padding: 18px 16px;
  }

  .login-info h2,
  .login-box h2 {
    font-size: 20px;
  }
}

/* Ikoner i overskrifter */
.login-info h2 i,
.login-box h2 i {
  margin-right: 8px;
  font-size: 0.9em;
  color: #38bdf8;
}

/* Badge øverst i login-boks */
.login-badge {
  position: absolute;
  top: 10px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.login-badge i {
  font-size: 0.9em;
  color: #38bdf8;
}

.login-help-text {
  margin-top: 8px;
  font-size: 12px;
  text-align: center;
  color: #cbd5f5;
}

.login-help-text a {
  color: #38bdf8;
  text-decoration: none;
  border-bottom: 1px dotted rgba(56, 189, 248, 0.7);
}

.login-help-text a:hover {
  text-decoration: underline;
}

/* Start-tilstand */
.login-info,
.login-box {
  opacity: 0;
  transform: translateY(18px);
  animation: loginFloatIn 0.7s ease forwards;
}

/* Stagger – højre boks lidt senere */
.login-box {
  animation-delay: 0.12s;
}

@keyframes loginFloatIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- LÅS input-styling så det ikke bliver hvidt ved typing/focus/autofill --- */
.login-box input:not([type="checkbox"]){
  background: rgba(15, 23, 42, 0.7) !important;
  color: #f9fafb !important;
}

/* når du klikker i feltet */
.login-box input:not([type="checkbox"]):focus{
  background: rgba(15, 23, 42, 0.9) !important;
  color: #f9fafb !important;
}

/* Chrome autofill (kan ellers gøre feltet helt hvidt/gult) */
.login-box input:-webkit-autofill,
.login-box input:-webkit-autofill:hover,
.login-box input:-webkit-autofill:focus{
  -webkit-text-fill-color: #f9fafb !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(15,23,42,0.9) inset !important;
  box-shadow: 0 0 0 1000px rgba(15,23,42,0.9) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

.login-info,
.login-box {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.login-info,
.login-box {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
}