/* ══════════════════════════════════════
   Caribbean Clinicians — Branded Login
   Overrides wp-login.php default styles
══════════════════════════════════════ */

/* ── Page Background ── */
body.login {
  background: linear-gradient(135deg, #1A5F6E 0%, #0f5e62 100%);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
}

/* ── Logo / Brand Area ── */
#login h1 a {
  background-image: none !important;
  text-indent: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  width: auto;
  height: auto;
  line-height: 1.3;
  margin-bottom: 0;
  padding-bottom: 0;
}

#login h1 {
  margin-bottom: 0.25rem;
  text-align: center;
}

/* Tagline below logo */
#login h1::after {
  content: 'Culturally grounded care, one click away.';
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.5rem;
  letter-spacing: 0;
}

/* ── Form Container ── */
#loginform,
#lostpasswordform,
#resetpassform {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 2rem 2rem 1.75rem;
  margin-top: 1.25rem;
}

/* ── Labels ── */
#loginform label,
#lostpasswordform label,
#resetpassform label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2C2C2C;
  letter-spacing: 0.01em;
}

/* ── Input Fields ── */
#loginform input[type="text"],
#loginform input[type="password"],
#lostpasswordform input[type="text"],
#resetpassform input[type="password"],
#loginform input[type="email"],
#lostpasswordform input[type="email"] {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  border: 1px solid rgba(42, 165, 184, 0.25);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  background: #fff;
  color: #2C2C2C;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: none;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#lostpasswordform input[type="text"]:focus,
#resetpassform input[type="password"]:focus,
#loginform input[type="email"]:focus,
#lostpasswordform input[type="email"]:focus {
  border-color: #2AA5B8;
  box-shadow: 0 0 0 3px rgba(42, 165, 184, 0.12);
  outline: none;
}

/* ── Remember Me checkbox ── */
#loginform .forgetmenot label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
}

#loginform input[type="checkbox"] {
  accent-color: #2AA5B8;
}

/* ── Submit Button ── */
#wp-submit,
.wp-core-ui .button-primary {
  background: #E07B1F !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  padding: 0.7rem 1.5rem !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(224, 123, 31, 0.3) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  cursor: pointer;
  width: 100%;
  height: auto !important;
  line-height: 1.4 !important;
}

#wp-submit:hover,
.wp-core-ui .button-primary:hover {
  background: #c96a15 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(224, 123, 31, 0.35) !important;
}

#wp-submit:focus,
.wp-core-ui .button-primary:focus {
  background: #c96a15 !important;
  box-shadow: 0 0 0 3px rgba(224, 123, 31, 0.25) !important;
  outline: none !important;
}

#wp-submit:active,
.wp-core-ui .button-primary:active {
  transform: translateY(0);
}

/* ── Navigation Links (Lost password, Back to site) ── */
#login #nav,
#login #backtoblog {
  text-align: center;
  padding: 0;
}

#login #nav a,
#login #backtoblog a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

#login #nav a:hover,
#login #backtoblog a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── Error / Success Messages ── */
#login .message,
#login .success {
  border-left: 4px solid #2AA5B8;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  background: rgba(42, 165, 184, 0.08);
  color: #2C2C2C;
  margin-bottom: 1rem;
}

#login_error {
  border-left: 4px solid #E07B1F;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  background: rgba(224, 123, 31, 0.08);
  color: #2C2C2C;
  margin-bottom: 1rem;
}

#login_error a {
  color: #E07B1F;
}

/* ── Custom Signup Link (injected via login_footer) ── */
#cc-login-signup-link {
  text-align: center;
  margin-top: 1.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

#cc-login-signup-link a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s, color 0.2s;
}

#cc-login-signup-link a:hover {
  border-bottom-color: #fff;
}

/* ── Password Strength Meter ── */
#pass-strength-result {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}

/* ── Hide default WP branding ── */
.login .privacy-policy-page-link {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  #login {
    padding: 1.5rem 1rem;
    width: 100% !important;
    max-width: 100%;
  }

  #loginform,
  #lostpasswordform,
  #resetpassform {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 10px;
  }

  #login h1 a {
    font-size: 1.4rem;
  }

  #login h1::after {
    font-size: 0.78rem;
  }
}

@media (min-width: 481px) {
  #login {
    width: 360px !important;
    padding-top: 6vh;
  }
}
