/* -------------------------------------------------
   UNIVERSAL REGISTRATION (URegister v1.0.4 Stable)
   Unified modern layout + perfect eye alignment
   ------------------------------------------------- */
:root {
  --blue: #0073aa;
  --blue-dark: #005b8c;
  --wine: #7a003c;
  --black: #000000;
  --radius: 12px;
  --shadow: 0 6px 14px rgba(0,0,0,0.08);
  --transition: all 0.25s ease;
  --input-bg: #fafafa;
}

/* === FORM CONTAINER === */
.ureg-form {
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  background: #ffffff !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 36px;
  font-family: "Segoe UI", system-ui, sans-serif !important;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.ureg-form * {
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif !important;
}

.ureg-title {
  text-align: center;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 28px;
  color: var(--blue);
}

/* === INPUT FIELDS === */
.ureg-field {
  margin-bottom: 18px;
  width: 100%;
  position: relative;
}

.ureg-field label {
  display: block;
  font-size: 14px;
  color: var(--black);
  font-weight: 600;
  margin-bottom: 6px;
}

.ureg-field input[type="text"],
.ureg-field input[type="email"],
.ureg-field input[type="password"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid #dcdcdc !important;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
  transition: var(--transition);
  color: #000;
  height: 46px;
}

.ureg-field input:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(0,115,170,0.15);
  outline: none;
}

/* === PASSWORD FIELDS === */
.ureg-password-wrap {
  position: relative;
  margin-bottom: 18px;
}

.ureg-password-wrap label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
}

.ureg-password-wrap input[type="password"],
.ureg-password-wrap input[type="text"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid #dcdcdc !important;
  border-radius: var(--radius);
  padding: 12px 44px 12px 14px;
  font-size: 15px;
  height: 48px;
  line-height: 1.4;
  box-sizing: border-box;
  transition: var(--transition);
}

.ureg-password-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,115,170,0.15);
  outline: none;
}

/* === FINAL FIXED PASSWORD EYE ICONS === */
.ureg-password-wrap {
  position: relative;
  display: block;
}

/* Main Password Eye (Blue) */
.ureg-password-wrap .toggle-pass-main {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-45%); /* stable downward tweak */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  width: 34px;
  height: 34px;
  color: var(--blue) !important;
  cursor: pointer;
  opacity: 0.85;
  line-height: 1;
  background: transparent;
  pointer-events: auto;
  transition: color 0.25s ease, transform 0.25s ease;
}

.ureg-password-wrap .toggle-pass-main:hover {
  opacity: 1;
  color: var(--blue-dark);
  transform: translateY(-45%) scale(1.08);
}

/* Confirm Password Eye (Wine) */
.ureg-password-wrap .toggle-pass-confirm {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-45%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  width: 34px;
  height: 34px;
  color: var(--wine) !important;
  cursor: pointer;
  opacity: 0.85;
  line-height: 1;
  background: transparent;
  pointer-events: auto;
  transition: color 0.25s ease, transform 0.25s ease;
}

.ureg-password-wrap .toggle-pass-confirm:hover {
  opacity: 1;
  color: #a0004f;
  transform: translateY(-45%) scale(1.08);
}

/* Keep icons fixed on mobile too */
@media (max-width: 480px) {
  .ureg-password-wrap .toggle-pass-main,
  .ureg-password-wrap .toggle-pass-confirm {
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 17px;
  }
}




/* === CAPTCHA AREA === */
.ureg-captcha-wrap {
  margin-top: 10px;
  margin-bottom: 22px;
}

.ureg-captcha-wrap label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
  margin-bottom: 6px;
}

.ureg-captcha-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--input-bg);
  border: 1px solid #dcdcdc;
  border-radius: var(--radius);
  padding: 10px 12px;
  height: 48px;
  box-sizing: border-box;
}

.ureg-captcha-input span.captcha-question {
  font-weight: 600;
  font-size: 15px;
  color: var(--black);
  flex-shrink: 0;
}

.ureg-captcha-input input[type="text"] {
  flex: 1;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 15px;
  height: 100%;
  box-sizing: border-box;
}

.ureg-captcha-input input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,115,170,0.15);
}

.captcha-timer-note {
  text-align: right;
  font-size: 13px;
  color: #555;
  margin-top: 6px;
  opacity: 0.85;
}

.captcha-timer-note span {
  font-weight: 700;
  color: var(--blue);
}

/* === REGISTER BUTTON (enforced blue) === */
.ureg-form .ureg-btn,
.ureg-form button.ureg-btn,
.ureg-btn[type="submit"] {
  width: 100%;
  height: 48px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  background: var(--blue) !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
  display: inline-block;
  text-align: center;
  line-height: 1.2;
}

.ureg-form .ureg-btn:hover,
.ureg-form button.ureg-btn:hover,
.ureg-btn[type="submit"]:hover {
  background: var(--blue-dark) !important;
  transform: scale(1.02);
  color: #ffffff !important;
}

.ureg-form .ureg-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/* === FEEDBACK MESSAGES === */
.inline-feedback {
  display: block;
  font-size: 13px;
  margin-top: 4px;
  height: 16px;
}
.inline-feedback.ok { color: #28a745; }
.inline-feedback.taken { color: #dc3545; }

/* === LOGIN LINK SECTION === */
.ureg-login-link {
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
  color: #555;
}

.ureg-login-link a {
  color: var(--wine);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.ureg-login-link a:hover {
  color: var(--blue);
}

/* === SHAKE ANIMATION === */
@keyframes uregShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-8px); }
}
.ureg-shake { animation: uregShake 0.45s; }

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .ureg-form { padding: 22px 24px; }
  .ureg-captcha-input {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }
  .ureg-captcha-input input[type="text"] {
    width: 100%;
  }
  .captcha-timer-note {
    text-align: left;
  }
}


/* Universal Registration Info Message Styling */
.ureg-info-msg {
  display: block;
  font-weight: 400;         /* makes it bold but smooth */
  font-size: 13px;          /* adjust to match theme font size */
  color: var(--black);      /* uses your theme’s black */
  margin-top: 6px;          /* adds small spacing above */
  line-height: 1.4;
   color: var(--wine);       /* wine accent tone */
}
