/* =========================================================
   WPR Login Form — v2.4.0
   All fields use .wpr-auth-field__control as the ONE outer
   wrapper. Plain inputs and password inputs are structurally
   identical — same class, same border, same radius.
   Elementor controls all target .wpr-auth-field__control.
   ========================================================= */

/* ── Shell ── */
.wpr-auth-shell {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
}
.wpr-auth-shell::before { content: none; }

.wpr-auth-shell__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ── Card ── */
.wpr-auth-card {
  width: 100%;
  max-width: 430px;
  padding: 30px 28px 24px;
  border-radius: 26px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #fff;
}

/* ── Tabs ── */
.wpr-auth-card__tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}
.wpr-auth-card__tabs button {
  flex: 1;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wpr-auth-card__tabs button.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ── Panels ── */
.wpr-auth-card__panel { display: none; }
.wpr-auth-card__panel.is-active { display: block; }

/* ── Header ── */
.wpr-auth-card__header { text-align: center; margin-bottom: 18px; }
.wpr-auth-card__title {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.wpr-auth-card__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.92;
}

/* ── Form grid ── */
.wpr-auth-form { display: grid; gap: 14px; }

/* ── Field ── */
.wpr-auth-field { display: grid; gap: 7px; }
.wpr-auth-field > label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.9;
  color: #fff;
}

/* =============================================================
   THE SINGLE FIELD CONTROL WRAPPER
   Every input — plain text, password, phone — uses this class.
   All Elementor controls target this selector.
   ============================================================= */
.wpr-auth-field__control {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.wpr-auth-field__control:focus-within {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

/* ── Input inside control ── */
.wpr-auth-field__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 46px;
  padding: 0 14px;
  margin: 0;
  border: 0 !important;
  outline: none;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.01em;
  font-family: inherit;
}
.wpr-auth-field__input:focus,
.wpr-auth-field__input:focus-visible {
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
}
.wpr-auth-field__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
/* Autofill */
.wpr-auth-shell .wpr-auth-field__input:-webkit-autofill,
.wpr-auth-shell .wpr-auth-field__input:-webkit-autofill:hover,
.wpr-auth-shell .wpr-auth-field__input:-webkit-autofill:focus,
.wpr-auth-shell .wpr-auth-field__input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(56, 46, 39, 0.85) inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
}

/* ── Phone prefix ── */
.wpr-auth-field__prefix {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
  white-space: nowrap;
}
/* Input next to prefix gets no left padding */
.wpr-auth-field__prefix + .wpr-auth-field__input {
  padding-left: 12px;
}

/* ── Eye toggle ──
   NO background on hover — ever.
   ── */
.wpr-auth-field__toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent !important;
  width: 42px;
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.60);
  transition: color 0.15s ease;
  box-shadow: none !important;
  outline: none;
}
.wpr-auth-field__toggle:hover,
.wpr-auth-field__toggle:focus,
.wpr-auth-field__toggle:active,
.wpr-auth-field__toggle:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.95);
}
.wpr-auth-field__toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}
.wpr-auth-field__toggle-icon--hide { display: none; }
.wpr-auth-field__toggle.is-password-visible .wpr-auth-field__toggle-icon--show { display: none; }
.wpr-auth-field__toggle.is-password-visible .wpr-auth-field__toggle-icon--hide { display: inline-flex; }

/* ── Row (remember + forgot) ── */
.wpr-auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.5;
}
.wpr-auth-form__check { display: inline-flex; align-items: center; gap: 8px; }
.wpr-auth-form__check input { accent-color: #fff; }
.wpr-auth-form__link,
.wpr-auth-form__linklike {
  color: #fff;
  opacity: 0.95;
  text-decoration: none;
}
.wpr-auth-form__linklike {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent !important;
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none !important;
  outline: none;
}
.wpr-auth-form__linklike:hover,
.wpr-auth-form__linklike:focus,
.wpr-auth-form__linklike:active,
.wpr-auth-form__linklike:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
}

/* ── Submit button ── */
.wpr-auth-form__submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.wpr-auth-form__submit:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

/* ── Divider ── */
.wpr-auth-form__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}
.wpr-auth-form__divider::before,
.wpr-auth-form__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}
.wpr-auth-form__divider span { white-space: nowrap; }

/* ================================================================
   GOOGLE BUTTON
   Always a real <button> element — never a div.
   Text must ALWAYS be visible — including on hover.
   Style controls in Elementor target .wpr-google-btn.
   ================================================================ */
.wpr-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #dadce0;
  border-radius: 13px;
  background: #ffffff;
  color: #3c4043 !important;   /* !important: prevents Elementor theme or inherited styles killing the text */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  text-decoration: none;
  white-space: nowrap;
}
.wpr-google-btn:hover {
  background: #f8f9fa !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.20);
  border-color: #c6c9ce;
  color: #3c4043 !important;   /* stays dark on hover — no text disappearing */
}
.wpr-google-btn:active {
  background: #f1f3f4 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
  color: #3c4043 !important;
}
.wpr-google-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}
.wpr-google-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}
.wpr-google-btn__label {
  white-space: nowrap;
  color: inherit;   /* inherits from .wpr-google-btn, never overridden */
  font: inherit;
}

/* Admin notice: Google Client ID not yet configured */
.wpr-google-no-client {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 220, 100, 0.9);
  text-align: center;
}

/* ── Bottom switch ── */
.wpr-auth-form__bottom-switch {
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* ── Footer security box (Dashicons shield) ── */
.wpr-auth-footer-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
}
.wpr-auth-footer-box__icon {
  flex: 0 0 auto;
  color: #111;
  font-size: 18px;
  line-height: 1;
  margin-top: 1px;
}
.wpr-auth-footer-box__icon .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 1;
}
.wpr-auth-footer-box__text {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

/* ── Notices ── */
.wpr-auth-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.wpr-auth-notice--success {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.28);
}
.wpr-auth-notice--error {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

/* ── Honeypot ── */
.wpr-auth-form__honeypot {
  position: absolute;
  left: -99999px;
  top: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .wpr-auth-card { padding: 22px 18px 18px; border-radius: 22px; }
  .wpr-auth-card__title { font-size: 28px; }
  .wpr-auth-card__tabs { gap: 8px; padding: 5px; }
  .wpr-auth-card__tabs button { min-height: 40px; font-size: 14px; }
  .wpr-auth-footer-box { padding: 13px 14px; }
}
