/* Login Pagina Stijlen */
:root {
  --bg-overlay: rgba(255, 255, 255, 0.1);
  --text-color: #fff;
  --border-color: rgba(255, 255, 255, 0.2);
  --button-bg: #e60000;
  --button-hover: #c20000;
  --input-bg: #fff;
  --input-text: #000;
}

[data-theme="light"] {
  --bg-overlay: rgba(255, 255, 255, 0.9);
  --text-color: #333;
  --border-color: rgba(0, 0, 0, 0.2);
  --button-bg: #e60000;
  --button-hover: #c20000;
  --input-bg: #fff;
  --input-text: #000;
}

/* Algemene body stijlen */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  transition: all 0.3s ease;
}

/* Centrerende container met de achtergrondafbeelding */
.background {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('https://assets.cholly.eu/login_background.png'); /* PAS DIT PAD AAN */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
}

/* Login venster */
.login-box {
  position: relative;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(6px);
  padding: 40px;
  border-radius: 10px;
  border: 3px solid rgb(0 0 0 / 81%);
  text-align: center;
  max-width: 400px;
  width: 90%;
  z-index: 1;
  transition: all 0.3s ease;
}

/* Logo als achtergrond in de login-box */
.login-box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background-image: url('../Images/3baf585b-78b7-44b1-89ae-0937fb8f8123.png'); /* PAS DIT PAD AAN */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;
}

/* Titel */
.login-box h2 {
  margin-bottom: 30px;
  color: var(--text-color);
  font-style: italic;
  z-index: 2;
  position: relative;
}

/* Inputvelden */
.login-box input {
  width: 100%;
  padding: 12px 10px;
  margin: 10px 0;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  position: relative;
  z-index: 2;
  background-color: var(--input-bg);
  color: var(--input-text);
  box-sizing: border-box;
}

/* Knoppen */
.login-buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.login-buttons button {
  width: 48%;
  padding: 10px;
  border: none;
  background-color: var(--button-bg);
  color: white;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-buttons button:hover {
  background-color: var(--button-hover);
}

/* Dark mode toggle */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-overlay);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--text-color);
  font-size: 14px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  z-index: 10;
}

.theme-toggle:hover {
  transform: scale(1.05);
}

/* Error message styling */
.error {
  color: #ff4444;
  background-color: rgba(255, 68, 68, 0.1);
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
  border: 1px solid rgba(255, 68, 68, 0.3);
}