@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ============================================================
   VAARDIGHEDENAPP — LOGIN PAGE
   Split-screen: links gekleurd panel, rechts formulier
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:         #F5C842;
  --yellow-light:   #FDE97A;
  --yellow-dark:    #D9A800;
  --coral:          #F07060;
  --coral-dark:     #C94030;
  --navy:           #1A2340;
  --text-primary:   #1A2340;
  --text-secondary: #5A5A72;
  --text-hint:      #9898A8;
  --border:         rgba(26,35,64,0.09);
  --off-white:      #FDF8EE;
  --bg:             #F5F2EA;
  --sand-mid:       #EEEBE3;
  --font: 'Nunito', sans-serif;
}

/* ── Reset WordPress login body ── */
body.login {
  background: var(--bg) !important;
  font-family: var(--font) !important;
  padding: 0 !important;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* Hide WP's default #login wrapper — we rebuild the layout */
body.login > #login {
  display: none !important;
}

/* ── Split wrapper ── */
.va-login-wrap {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ============================================================
   LEFT PANEL
============================================================ */
.va-login-left {
  width: 48%;
  background: var(--yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}

/* Subtle background circles */
.va-login-left::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  top: -120px;
  right: -120px;
  pointer-events: none;
}
.va-login-left::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

/* Brand / logo */
.va-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.va-login-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  font-family: var(--font);
  flex-shrink: 0;
}

.va-login-logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.5px;
  font-family: var(--font);
}

/* Illustration */
.va-login-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 32px 0;
}

.va-login-blob {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.va-login-brain {
  width: 150px;
  height: 150px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  box-shadow: 0 8px 32px rgba(26,35,64,0.12);
}

/* Stat cards floating around blob */
.va-login-stat {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 4px 20px rgba(26,35,64,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 80px;
}

.va-login-stat-1 { top: 16px; right: -24px; }
.va-login-stat-2 { bottom: 24px; left: -32px; }

.va-login-stat .stat-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--coral);
  font-family: var(--font);
  line-height: 1;
}

.va-login-stat .stat-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: var(--font);
  text-align: center;
  line-height: 1.3;
}

/* Tagline bottom */
.va-login-tagline {
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

.va-login-tagline p {
  font-size: 15px;
  font-weight: 600;
  color: rgba(26,35,64,0.65);
  font-family: var(--font);
  line-height: 1.5;
}

/* ============================================================
   RIGHT PANEL
============================================================ */
.va-login-right {
  width: 52%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  overflow-y: auto;
}

.va-login-form-wrap {
  width: 100%;
  max-width: 400px;
}

.va-login-form-header {
  margin-bottom: 32px;
}

.va-login-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  font-family: var(--font);
  margin-bottom: 8px;
  line-height: 1.1;
}

.va-login-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font);
  line-height: 1.5;
}

/* ── WordPress form elements restyled ── */

/* Hide WP's h1 logo link inside our right panel — we show our own header */
.va-login-right #login h1 {
  display: none !important;
}

/* The #login div WP injects */
.va-login-right #login {
  display: block !important;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

/* Form */
.va-login-right #loginform,
.va-login-right #lostpasswordform,
.va-login-right #registerform {
  background: white !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(26,35,64,0.08) !important;
  padding: 32px !important;
  margin: 0 0 16px !important;
}

/* Labels */
.va-login-right .login label {
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  display: block !important;
  margin-bottom: 6px !important;
}

/* Inputs */
.va-login-right .login input[type="text"],
.va-login-right .login input[type="password"],
.va-login-right .login input[type="email"] {
  font-family: var(--font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  background: var(--off-white) !important;
  border: 2px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 11px 16px !important;
  width: 100% !important;
  height: auto !important;
  box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s !important;
}

.va-login-right .login input[type="text"]:focus,
.va-login-right .login input[type="password"]:focus,
.va-login-right .login input[type="email"]:focus {
  border-color: var(--coral) !important;
  box-shadow: 0 0 0 3px rgba(240,112,96,0.12) !important;
  outline: none !important;
  background: white !important;
}

/* Remember me */
.va-login-right .login .forgetmenot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.va-login-right .login .forgetmenot label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  margin-bottom: 0 !important;
  cursor: pointer;
}

.va-login-right .login input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: var(--coral) !important;
  cursor: pointer;
}

/* Submit button */
.va-login-right .login input[type="submit"],
.va-login-right #wp-submit {
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: var(--coral) !important;
  border: none !important;
  border-radius: 12px !important;
  color: white !important;
  padding: 13px 24px !important;
  width: 100% !important;
  height: auto !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background .15s !important;
  margin-top: 8px !important;
}

.va-login-right .login input[type="submit"]:hover,
.va-login-right #wp-submit:hover {
  background: var(--coral-dark) !important;
}

/* Form fields spacing */
.va-login-right .login .user-pass-wrap,
.va-login-right .login p {
  margin-bottom: 16px !important;
}

.va-login-right .login .wp-pwd {
  position: relative;
}

/* Links below form */
.va-login-right #nav,
.va-login-right #backtoblog {
  text-align: center !important;
  padding: 8px 0 !important;
}

.va-login-right #nav a,
.va-login-right #backtoblog a {
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--coral) !important;
  text-decoration: none !important;
}

.va-login-right #nav a:hover,
.va-login-right #backtoblog a:hover {
  color: var(--coral-dark) !important;
  text-decoration: underline !important;
}

/* Error / success messages */
.va-login-right #login_error,
.va-login-right .message,
.va-login-right .success {
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  border-left: none !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
}

.va-login-right #login_error {
  background: #FFF0EE !important;
  border: 1.5px solid #F5A098 !important;
  color: var(--coral-dark) !important;
}

.va-login-right .message {
  background: #D8EFF8 !important;
  border: 1.5px solid #8CCDE8 !important;
  color: #2275A0 !important;
}

.va-login-right .success {
  background: #E8FAF2 !important;
  border: 1.5px solid #A0E0C2 !important;
  color: #1A6B3F !important;
}

/* Privacy policy link */
.va-login-right .login .privacy-policy-page-link {
  font-family: var(--font) !important;
  font-size: 12px !important;
  text-align: center !important;
  color: var(--text-hint) !important;
}

/* ============================================================
   RESPONSIVE — mobiel: stapel boven elkaar
============================================================ */
@media (max-width: 768px) {
  .va-login-wrap {
    flex-direction: column;
  }

  .va-login-left {
    width: 100%;
    min-height: auto;
    padding: 32px 24px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }

  .va-login-left::before,
  .va-login-left::after { display: none; }

  .va-login-illustration,
  .va-login-tagline { display: none; }

  .va-login-brand { align-self: auto; }

  .va-login-right {
    width: 100%;
    padding: 32px 20px 48px;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .va-login-form-wrap {
    max-width: 100%;
  }

  .va-login-title { font-size: 26px; }
}

@media (max-width: 480px) {
  .va-login-right #loginform,
  .va-login-right #lostpasswordform {
    padding: 24px !important;
  }
}
