/* Shared background for login + register */
body.login {
  background: url('https://booking.imalaparapente.be/wp-content/uploads/2024/11/banner-3.jpg')
              center / cover no-repeat fixed;
}

/* Password hint (registration) */
body.login .hint-custom-reg {
  margin: 0px 0 12px !important;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
  background: #f6f7f7;
  border-left: 4px solid #2271b1;
  border-radius: 4px;
}

.login form .input {
	font-size: 20px;
}

/* Space between registration confirmation text and password hint */
body.login #reg_passmail {
  margin-top: 18px;
	  color: #555;
  font-size: 13px;
}

body.login .hint-custom-reg strong {
  font-weight: 600;
  color: #1d2327;
}


/* Optional dark overlay for readability */
body.login::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Card styling */
body.login #login {
  position: relative;
  padding-top: 24px;
}
body.login #loginform,
body.login #registerform,
body.login #lostpasswordform {
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* Custom logo */
.login h1 a {
  background-image: url('https://booking.imalaparapente.be/wp-content/uploads/2024/11/logo-dark.png');
  background-size: contain;
  background-position: center;
  width: 100%;
  height: 84px;
}

/* Remove WP logo focus outline */
.login h1 a:focus {
  box-shadow: none;
}

/* Registration: remove the bottom nav (removes the "Login" link there) */
body.login.imala-register #nav {
  display: none !important;
}

/* Header link appended to "Création de votre compte IMALA" */
/*
body.login .imala-auth-header-link {
  display: inline-block;
  margin-left: 10px;
  padding: 6px 10px;
  text-decoration: none;
  border-radius: 6px;
  background: #2271b1;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
}
*/
body.login .imala-auth-header-link:hover {
  filter: brightness(0.95);
}

body.login .imala-auth-header-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.35);
}

#login {
  width: 360px; 
}


/* Intro text above login form */
body.login .imala-login-intro {
  margin: 12px 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #1d2327;
  text-align: center;
}

body.login .imala-login-intro a {
  color: #2271b1;
  font-weight: 600;
  text-decoration: none;
}

body.login .imala-login-intro a:hover {
  text-decoration: underline;
}


/* Login page: hide "Register" link, keep Lost Password */
body.login.imala-login #nav .wp-login-register {
  display: none !important;
}

/* Remove the separator " | " left behind */
body.login.imala-login #nav {
  font-size: 0;
}
body.login.imala-login #nav .wp-login-lost-password {
  font-size: 13px;
}

/* Center + style Lost Password link on login page */
body.login.imala-login #nav {
  text-align: center;
  margin-top: 18px;
}

/* Lost password style */
body.login.imala-login #nav .wp-login-lost-password {
  display: inline-block;
  color: #ffffff;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

body.login.imala-login #nav .wp-login-lost-password:hover {
  text-decoration: underline;
}

body.login.imala-login #nav .wp-login-lost-password:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
/* Ensure overlay stays behind the login UI */
body.login { position: relative; }
body.login::before { z-index: 0; }
body.login #login { position: relative; z-index: 1; }

/* Strength meter: ensure it’s visible even if a parent applies opacity tricks */
body.login #pass-strength-result {
  opacity: 1 !important;
  visibility: visible !important;

  margin: 10px 0 6px;
  padding: 8px 12px;
  width: 100%;
  display: block;
  border-radius: 6px;
  background: #ffffff;
  color: #1d2327;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  box-sizing: border-box;
}

/* Hide it when empty */
body.login #pass-strength-result:empty {
  display: none !important;
}

/* WP strength classes */
body.login #pass-strength-result.short,
body.login #pass-strength-result.bad {
  background: #fdecea;
  color: #b32d2e;
}

body.login #pass-strength-result.good {
  background: #fff8e5;
  color: #8a6d3b;
}

body.login #pass-strength-result.strong {
  background: #edf7ed;
  color: #1e7e34;
}


.input-human-check select {
    width: 100%;
    padding: 6px;
}

.human-error {
    color: #b00020;
    font-size: 14px;
    margin-top: 5px;
}
