/*
 * Sign-in / register popup. Linked from views/partials/header.hbs, so it applies on every
 * page that has the popup. Rules are scoped to its id, so other .main-register-wrap popups
 * (report, mark review) keep their own look. Markup and ids are untouched: auth.js and
 * registration.js drive them.
 */
#get-registration-modal {
  --hp-ink: var(--secondary, #0e0d1b);
  --hp-blue: var(--primary, #1996cf);
  --hp-deep: var(--primary-dark, #00628f);
  --hp-mid: var(--primary-light, #027eb7);
  --hp-grad: linear-gradient(115deg, var(--hp-deep), var(--hp-mid) 60%, var(--hp-blue));
  --hp-paper: #f6f8fc;
  --hp-line: #e5e7f2;
  --hp-muted: #5a5f7d;
  --hp-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --hp-sans: 'Manrope', 'Roboto', Arial, sans-serif;
}
#get-registration-modal { background: rgb(0 50 80 / 62%); backdrop-filter: blur(6px); }
#get-registration-modal .main-register-holder { max-width: 460px; margin: 110px auto 40px; }
#get-registration-modal .main-register {
  margin-bottom: 0;
  padding: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgb(0 30 50 / 75%);
}
#get-registration-modal .main-register_title {
  position: static;
  display: block;
  height: auto;
  padding: 26px 74px 26px 30px;
  background: var(--hp-grad);
  color: #fff;
  font: 700 12px/1.4 var(--hp-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
#get-registration-modal .main-register_title span { display: block; margin: 6px 0 0; }
#get-registration-modal .main-register_title strong {
  color: #fff;
  font: 400 26px/1.15 var(--hp-serif);
  letter-spacing: -0.01em;
  text-transform: none;
}
#get-registration-modal .close-reg {
  top: 33px;
  right: 22px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}
#get-registration-modal .close-reg:hover { border-color: #fff; background: rgb(255 255 255 / 18%); }

/* tabs: pill switch */
#get-registration-modal .tabs-menu {
  display: flex;
  float: none;
  gap: 4px;
  width: auto;
  margin: 24px 30px 0;
  padding: 4px;
  border-radius: 14px;
  background: var(--hp-paper);
}
#get-registration-modal .tabs-menu::before { display: none; }
#get-registration-modal .tabs-menu li {
  flex: 1;
  float: none;
  border: 0;
  border-radius: 10px;
  background: none;
  transition: background 0.2s, box-shadow 0.2s;
}
#get-registration-modal .tabs-menu li.current { background: #fff; box-shadow: 0 6px 16px -10px rgb(0 98 143 / 60%); }
#get-registration-modal .tabs-menu li a { padding: 11px 8px; color: var(--hp-muted); font: 700 13px var(--hp-sans); text-align: center; }
#get-registration-modal .tabs-menu li.current a,
#get-registration-modal .tabs-menu li a:hover { color: var(--hp-deep); }
#get-registration-modal .tabs-menu li a i { margin-right: 8px; color: inherit; }

/* fields */
#get-registration-modal .tabs-container { margin: 0; padding: 22px 30px 30px; }
#get-registration-modal .tab-content { padding: 0; }
#get-registration-modal .custom-form { position: relative; }
#get-registration-modal .custom-form label.form-label { padding-bottom: 6px; color: var(--hp-ink); font: 600 13px var(--hp-sans); text-align: left; }
#get-registration-modal .custom-form input.form-control,
#get-registration-modal .custom-form #forget-email {
  height: 50px;
  margin-bottom: 16px;
  padding: 0 16px;
  border: 1px solid var(--hp-line);
  border-radius: 12px;
  background: var(--hp-paper);
  color: var(--hp-ink);
  font: 500 14px var(--hp-sans);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
#get-registration-modal .custom-form input::placeholder { color: var(--hp-muted); }
#get-registration-modal .custom-form input.form-control:focus,
#get-registration-modal .custom-form #forget-email:focus {
  border-color: var(--hp-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(25 150 207 / 18%);
}
#get-registration-modal .custom-form input.password,
#get-registration-modal .custom-form input.phone { padding-right: 46px; }
/* fixed offset, not 50%: the error label sits inside this box and changes its height */
#get-registration-modal .welcome-box .password-toggle-button { top: 18px; right: 16px; color: var(--hp-deep); }
#get-registration-modal .custom-form .errorValidation { color: #c0392b !important; font: 500 12.5px/1.4 var(--hp-sans); text-align: left; }

#get-registration-modal .note-box { margin: 2px 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--hp-paper); color: var(--hp-muted); }
#get-registration-modal .note-box ul { padding-left: 16px; }
#get-registration-modal .note-box li { margin-bottom: 4px; }
#get-registration-modal .note-box li:last-child { margin-bottom: 0; }
#get-registration-modal .note-box li.check { color: #14865b; }
#get-registration-modal .note-box p { margin: 0; padding: 0; color: var(--hp-muted); font: 500 12.5px/1.5 var(--hp-sans); text-align: left; }
#get-registration-modal .note-box p.check { color: #14865b; }

#get-registration-modal .custom-form .btn {
  display: flex;
  float: none;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin: 4px 0 0;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--hp-grad);
  box-shadow: none;
  color: #fff;
  font: 700 14px var(--hp-sans);
  transition: opacity 0.2s;
}
#get-registration-modal .custom-form .btn:hover { opacity: 0.9; }
#get-registration-modal .custom-form .btn i,
#get-registration-modal .custom-form .btn:hover i { position: static; width: auto; height: auto; margin: 0; box-shadow: none; color: #fff; line-height: 1; }

/* forgot password: its own screen in the popup, swapped in by the .forgot-view class */
#get-registration-modal .lost_password { float: none; margin-top: 16px; text-align: center; }
#get-registration-modal .lost_password .show-lpt { float: none; color: var(--hp-deep); font: 600 13px var(--hp-sans); }
#get-registration-modal .lost_password .show-lpt:hover,
#get-registration-modal .back-to-login:hover { text-decoration: underline; }
#get-registration-modal .lost-password-tootip {
  position: static;
  display: none;
  width: auto;
  padding: 0;
  background: none;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
}
#get-registration-modal .forgot-view .tabs-menu,
#get-registration-modal .forgot-view #user-login-form,
#get-registration-modal .forgot-view .show-lpt { display: none; }
#get-registration-modal .forgot-view .lost-password-tootip { display: block; }
#get-registration-modal .forgot-view .lost_password { margin-top: 0; }
#get-registration-modal .forgot-view .tabs-container { padding-top: 28px; }
#get-registration-modal .lost-password-tootip h4 { margin: 0 0 6px; padding: 0; color: var(--hp-ink); font: 400 22px/1.2 var(--hp-serif); text-align: left; }
#get-registration-modal .lost-password-tootip p { margin: 0 0 20px; padding: 0; color: var(--hp-muted); font: 500 13px/1.5 var(--hp-sans); text-align: left; }
#get-registration-modal .lost-password-tootip .btn { margin-top: 4px; }
#get-registration-modal .back-to-login { display: inline-block; float: none; margin-top: 18px; color: var(--hp-deep); font: 600 13px var(--hp-sans); }
#get-registration-modal .back-to-login i { margin-right: 6px; }

@media (max-width: 600px) {
  #get-registration-modal .main-register-holder { max-width: calc(100% - 24px); margin: 24px auto; }
  #get-registration-modal .main-register_title { padding: 20px 66px 20px 20px; }
  #get-registration-modal .main-register_title strong { font-size: 22px; }
  #get-registration-modal .close-reg { top: 25px; right: 16px; }
  #get-registration-modal .tabs-menu { margin: 18px 20px 0; }
  #get-registration-modal .tabs-container { padding: 18px 20px 24px; }
}
