/* =========================================
   AUTH / LOGIN PAGE
========================================= */

.auth-page {
  background: #f4f6f9;
  min-height: 100vh;
}

.auth-login-section {
  min-height: 100vh;
  padding: 0;
}

.auth-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f4f6f9;
  border-right: 1px solid #dbe3ee;
  overflow: hidden;
}

/* Auth forgot */

.auth-forgot-password {
  margin-top: 10px;
  text-align: right;
}

.auth-forgot-password a {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot-password a:hover {
  text-decoration: underline;
}

/* LEFT SIDE */
.auth-login-brand {
  background: #183f82;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.auth-login-brand-inner {
  max-width: 520px;
  text-align: center;
}

.auth-brand-logo {
  display: inline-block;
  font-size: clamp(2.7rem, 5vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 24px;
}

.auth-brand-logo::after {
  content: "O";
  color: #f2a24c;
}

.auth-brand-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* RIGHT SIDE */
.auth-login-form-side {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.auth-login-form-wrap {
  width: 100%;
  max-width: 500px;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6d7890;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 36px;
  transition: all 0.25s ease;
}

.auth-back-link:hover {
  color: #1f4a8a;
}

.auth-back-arrow {
  font-size: 1rem;
  line-height: 1;
}

.auth-form-header {
  margin-bottom: 30px;
}

.auth-form-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: #17233c;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.auth-form-header p {
  font-size: 1.08rem;
  color: #6d7890;
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.auth-form-group label {
  display: inline-block;
  margin-bottom: 10px;
  color: #17233c;
  font-size: 1rem;
  font-weight: 700;
}

.auth-field-hint {
  margin: -4px 0 10px 0;
  font-size: 0.9rem;
  color: #6d7890;
  line-height: 1.45;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6f7d95;
  font-size: 1rem;
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border: 1px solid #d9e1ec;
  background: #ffffff;
  padding: 0 16px 0 46px;
  font-size: 1rem;
  color: #17233c;
  outline: none;
  transition: all 0.25s ease;
}

.auth-input-wrap input::placeholder {
  color: #90a0b8;
}

.auth-input-wrap input:focus {
  border-color: #1f4a8a;
  box-shadow: 0 0 0 4px rgba(31, 74, 138, 0.08);
}

.auth-input-wrap select {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border: 1px solid #d9e1ec;
  background: #ffffff;
  padding: 0 16px;
  font-size: 1rem;
  color: #17233c;
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.auth-input-wrap select:focus {
  border-color: #1f4a8a;
  box-shadow: 0 0 0 4px rgba(31, 74, 138, 0.08);
}

/* Onboarding wizard */
.onboarding-shell {
  align-items: flex-start;
}

.onboarding-wrap {
  max-width: 520px;
}

.onboarding-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.onboarding-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  background: #e8edf5;
  color: #6d7890;
}

.onboarding-dot.is-done {
  background: #1f4a8a;
  color: #fff;
}

.onboarding-dot.is-active {
  background: #f2a24c;
  color: #17233c;
  box-shadow: 0 0 0 4px rgba(242, 162, 76, 0.25);
}

.onboarding-line {
  width: 28px;
  height: 2px;
  background: #dbe3ee;
  margin: 0 4px;
}

.onboarding-errors {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
  color: #9f1239;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

.onboarding-summary {
  color: #6d7890;
  line-height: 1.6;
  margin-bottom: 8px;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.onboarding-back {
  margin-bottom: 0;
}

.auth-notice-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.auth-notice-success::before {
  content: "✓";
  flex-shrink: 0;
  color: #059669;
  font-weight: 800;
}

/* E-mail (en form) validatie-feedback */
.auth-form-group.is-invalid .auth-input-wrap input {
  border-color: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

.auth-form-group.is-invalid .auth-input-wrap input:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.auth-field-feedback {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.auth-field-feedback::before {
  content: "⚠";
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.4;
  opacity: 0.9;
}

.auth-field-feedback.is-visible {
  display: flex;
}

.auth-form-group.is-valid .auth-input-wrap input {
  border-color: #059669;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.auth-form-group.is-valid .auth-input-wrap input:focus {
  border-color: #047857;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.14);
}

.auth-field-feedback.auth-field-feedback--success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #a7f3d0;
  color: #065f46;
}

.auth-field-feedback.auth-field-feedback--success::before {
  content: "✓";
  color: #059669;
}

.auth-submit-btn {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 14px;
  background: #1f4a8a;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(31, 74, 138, 0.18);
  transition: all 0.25s ease;
}

.auth-submit-btn:hover {
  background: #183b70;
  transform: translateY(-2px);
}

.auth-form-footer {
  margin-top: 28px;
  text-align: center;
  color: #17233c;
  font-size: 1rem;
}

.auth-form-footer a {
  color: #1f4a8a;
  font-weight: 700;
  text-decoration: none;
}

.auth-form-footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .auth-login-shell {
    grid-template-columns: 1fr;
  }

  .auth-login-brand {
    min-height: 280px;
    padding: 50px 30px;
  }

  .auth-login-form-side {
    padding: 50px 28px;
  }

  .auth-login-form-wrap {
    max-width: 560px;
  }
}

@media (max-width: 767px) {
  .auth-login-brand {
    min-height: 220px;
    padding: 40px 24px;
  }

  .auth-brand-logo {
    font-size: 2.7rem;
    margin-bottom: 18px;
  }

  .auth-brand-text {
    font-size: 1rem;
    line-height: 1.65;
  }

  .auth-login-form-side {
    padding: 36px 20px;
  }

  .auth-back-link {
    margin-bottom: 24px;
  }

  .auth-form-header {
    margin-bottom: 24px;
  }

  .auth-form-header h1 {
    font-size: 2rem;
  }

  .auth-form-header p {
    font-size: 1rem;
  }

  .auth-input-wrap input,
  .auth-submit-btn {
    height: 52px;
  }
}

@media (max-width: 480px) {
  .auth-login-shell {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .auth-login-brand {
    min-height: 190px;
  }

  .auth-brand-logo {
    font-size: 2.3rem;
  }

  .auth-form-header h1 {
    font-size: 1.8rem;
  }

  .auth-form-footer {
    font-size: 0.95rem;
  }
}