/* ============================================================
   LOGIN.CSS v1.2 — Universeel voor Login & Registreren
   Frosted Glass | Fade-in Background | Mobile-first
   ============================================================ */

/* ====== Donkere achtergrond + Fade-in ====== */
body.theme-dark {
  background: url("../assets/bg-login.jpg") no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;

  background-color: rgba(0, 0, 0, 0.75);
  background-blend-mode: overlay;

  animation: fadeInBackground 1.2s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInBackground {
  from {
    opacity: 0;
    transform: scale(1.01);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ====== MAIN LAYOUT ====== */
main.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  min-height: calc(100vh - 120px);
  padding: 24px 16px;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile fix */
@media (max-width: 480px) {
  main.container {
    display: block;
    padding: 18px 12px;
  }
}

/* ====== Frosted-glass AUTH CARD ====== */
.login-card,
section.card {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 165, 0, 0.25);
  border-radius: 14px;

  padding: 26px 24px;
  width: 90vw;         /* mobiel ~90% van viewport */
  max-width: none;
  margin: 0 auto 24px auto;
  box-sizing: border-box;

  animation: fadeInCard 1s ease-out forwards;
  opacity: 0;
}

@media (min-width: 768px) {
  section.card,
  .login-style-card {
    width: 60vw;       /* desktop ~60% van viewport */
    max-width: none;
  }
}


@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== Logo boven de card ====== */
.login-header {
  text-align: center;
  margin-bottom: 1.4rem;
}

.login-header img {
  max-width: 160px;
  width: 60%;
  height: auto;
}

@media (max-width: 480px) {
  .login-header img {
    max-width: 120px;
  }
}

/* ====== Titel ====== */
.welcome-text h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffa64d;
  text-align: center;
  margin-bottom: 1rem;
}

/* ====== Input Fields ====== */
/* ====== Form spacing ====== */
form label {
  display: block;
  margin-top: 18px;
  margin-bottom: 6px; /* ruimte tussen label & input */
  font-weight: 600;
}

.input {
  width: 100%;
  max-width: 100%;
  padding: 12px 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(255, 165, 0, 0.25);

  color: #fff;
  font-size: 1rem;

  box-sizing: border-box;
  display: block;

  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.input + .muted {
  margin-top: 4px; /* fout of subtitel text */
}

.input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 165, 0, 0.45);
}

/* ====== Buttons (Primary + Ghost) ====== */
.btn-primary {
  width: 100%;
  background-color: #ff7f00;
  color: #141414;

  border: none;
  border-radius: 8px;
  padding: 12px;
  margin-top: 18px;

  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;

  transition: background-color 0.25s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background-color: #ffa64d;
  transform: translateY(-1px);
}

.btn-ghost {
  width: 100%;
  margin-top: 12px;

  background: transparent;
  border: 1px solid rgba(255, 165, 0, 0.3);
  color: #ffbd6b;

  border-radius: 8px;
  padding: 10px;

  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.btn-ghost:hover {
  background-color: rgba(255, 165, 0, 0.15);
  border-color: rgba(255, 165, 0, 0.45);
}

/* ====== Checkbox styling ====== */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.95rem;
  color: #e6e6e6;
}
.checkbox input {
  margin-top: 3px;
}

/* ====== Subtekst ====== */
p.muted {
  color: #e6e6e6;
  text-align: center;
  margin-top: 12px;
  font-size: 0.95rem;
}

p.muted a {
  color: #ffae52;
  text-decoration: none;
}
p.muted a:hover {
  text-decoration: underline;
}

/* ====== Success Modal ====== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;

  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease;
  backdrop-filter: blur(6px);
}
.modal.show {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: rgba(0,0,0,0.6);
  padding: 32px;
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 28px rgba(255,150,0,0.15);
}

.modal-logo {
  max-width: 120px;
  margin-bottom: 16px;
}