:root {
  --blue: #21468B;
  --red: #AE1C28;
  --white: #ffffff;
  --soft-white: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  display: flex;
  height: 100vh;
}

.left, .right {
  width: 50%;
  height: 100%;
}

.left {
  background: var(--soft-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  width: 100%;
  max-width: 360px;
  padding: 20px;
}

.login-box h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--blue);
}

.login-box p {
  margin-bottom: 20px;
  color: #555;
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input[type="email"], input[type="password"], input[type="text"] {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

input:focus {
  border-color: var(--blue);
  outline: none;
}

.divider {
  text-align: center;
  margin: 10px 0;
  color: #aaa;
  position: relative;
}

.divider::before, .divider::after {
  content: '';
  height: 1px;
  background: #ccc;
  position: absolute;
  top: 50%;
  width: 45%;
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.divider span {
  background: var(--soft-white);
  padding: 0 8px;
  position: relative;
}

.forgot-link {
  text-align: right;
  font-size: 0.9rem;
}

.forgot-link a {
  text-decoration: none;
  color: var(--blue);
}

.forgot-link a:hover {
  color: var(--red);
}

.login-box button[type="submit"] {
  background: var(--blue);
  color: var(--white);
  padding: 12px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.login-box button[type="submit"]:hover {
  background: #19356a;
}

.bottom-text {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
}

.bottom-text a {
  color: var(--red);
  text-decoration: none;
}

.bottom-text a:hover {
  text-decoration: underline;
}

.error {
  background: #ffe6e6;
  color: var(--red);
  padding: 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 15px;
  border: 1px solid #f5b4b4;
}

.right {
  position: relative;
  background: url('../img/hero.jpg') center/cover no-repeat;
  color: white;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  overflow: hidden;
}

.right::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  background-color: rgba(33, 70, 139, 0.35); /* lichtblauw tint */
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  z-index: 0;
}

.right > * {
  position: relative;
  z-index: 1;
}

.right .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.right .actions a {
  padding: 10px 20px;
  border-radius: 25px;
  border: 1px solid var(--white);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}

.right .actions a:hover {
  background: var(--white);
  color: var(--blue);
}

.right .text-content {
  max-width: 400px;
  margin-top: auto;
}

.right .text-content h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--white);
}

.right .text-content p {
  font-size: 0.95rem;
  color: #ddd;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .left, .right {
    width: 100%;
    border-radius: 0;
  }

  .right {
    padding: 40px 20px;
  }

  .right .actions {
    justify-content: center;
  }

  .right .text-content {
    margin: 40px auto 0;
    text-align: center;
  }
}
