/* NippoNext UI layer. Loaded after the migrated theme to keep the visual
   system deterministic while preserving the backoffice integration styles. */

.page-template-page-sign-in .lfo-nav,
.page-template-page-register .lfo-nav,
.page-template-page-forgot-pw .lfo-nav,
.page-template-page-forgot-pw-clickback .lfo-nav { display: none; }
.page-template-page-sign-in .lfo-header__signin { display: none; }
.page-template-page-register .lfo-header__register { display: none; }

.lfo-header__guest .lfo-header__signin,
.lfo-header__guest .lfo-header__register {
  min-width: 136px;
  min-height: 44px;
  padding-inline: 22px;
}

.lfo-user-menu {
  z-index: 30;
}
.lfo-user-menu__button {
  min-width: 154px;
  min-height: 44px;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(110,193,228,.22);
  border-radius: 10px;
  color: #f8fbff;
  background: linear-gradient(135deg,#152238,#101a2b);
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
  transition: border-color .2s ease,background-color .2s ease,box-shadow .2s ease;
}
.lfo-user-menu__button:hover,
.lfo-user-menu.is-open .lfo-user-menu__button {
  border-color: rgba(110,193,228,.52);
  background: #17263d;
  box-shadow: 0 12px 30px rgba(0,0,0,.26);
}
.lfo-user-menu__button:focus-visible {
  outline: 2px solid #6ec1e4;
  outline-offset: 3px;
}
.lfo-user-menu__caret {
  width: 15px;
  height: 15px;
  stroke: #6ec1e4;
}
.lfo-user-menu__dropdown {
  top: calc(100% + 10px);
  z-index: 31;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: #101827;
  box-shadow: 0 22px 54px rgba(0,0,0,.38);
}
.lfo-user-menu__dropdown a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: #b9c5d8;
  font-size: 14px;
  font-weight: 550;
  transition: color .18s ease,background-color .18s ease;
}
.lfo-user-menu__dropdown a:hover,
.lfo-user-menu__dropdown a:focus-visible {
  color: #fff;
  background: #19263a;
}
.lfo-user-menu__dropdown a:focus-visible {
  outline: 2px solid #6ec1e4;
  outline-offset: -2px;
}
.lfo-user-menu__dropdown a:last-child {
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-radius: 0 0 8px 8px;
  color: #ffafb5;
}

.lfo-auth2 {
  min-height: 100svh;
  padding: 144px 0 80px;
  background:
    radial-gradient(circle at 88% 18%, rgba(36,135,218,.15), transparent 30rem),
    radial-gradient(circle at 5% 92%, rgba(72,61,216,.08), transparent 28rem),
    #090d16;
}
.lfo-auth2 .lfo-ch__container {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
}
.lfo-auth2 .lfo-reveal { opacity: 1; transform: none; }
.lfo-auth2__card {
  display: grid;
  grid-template-columns: minmax(340px,.82fr) minmax(480px,1.18fr);
  gap: 0;
  align-items: stretch;
  max-width: 1160px;
  min-height: 610px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 32px 90px rgba(0,0,0,.38);
  backdrop-filter: none;
}
.lfo-auth2__brand-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 58px 52px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(110,193,228,.22), transparent 15rem),
    linear-gradient(155deg,#112b4c 0%,#0b1729 52%,#0a111e 100%);
}
.lfo-auth2__brand-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.22) 1px,transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(135deg,#000,transparent 74%);
}
.lfo-auth2__brand-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(110,193,228,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(36,135,218,.035),0 0 0 80px rgba(36,135,218,.025);
}
.lfo-auth2__brand-mark,
.lfo-auth2__kicker {
  color: #6ec1e4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lfo-auth2__brand-mark { display: flex; align-items: center; gap: 10px; }
.lfo-auth2__brand-mark::before {
  content: "";
  width: 22px;
  height: 2px;
  background: #6ec1e4;
}
.lfo-auth2__title {
  max-width: 430px;
  margin: 22px 0;
  color: #fff;
  font-size: clamp(38px,4vw,54px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.lfo-auth2__lead {
  max-width: 440px;
  margin: 0 0 32px;
  color: #b6c2d5;
  font-size: 16px;
  line-height: 1.7;
}
.lfo-auth2__points { gap: 14px; margin-bottom: 38px; }
.lfo-auth2__points li { color: #edf4ff; font-size: 14px; font-weight: 500; }
.lfo-auth2__points svg { stroke: #6ec1e4; }
.lfo-auth2__security {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: #8ea0ba;
  font-size: 12px;
}
.lfo-auth2__security span {
  width: 8px;
  height: 8px;
  border: 2px solid #5ad6a0;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(90,214,160,.1);
}
.lfo-auth2__form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 54px 64px;
  background: #111827;
}
.lfo-auth2__form-heading { margin-bottom: 30px; }
.lfo-auth2__form-heading h2 {
  margin: 10px 0;
  color: #f8fbff;
  font-size: clamp(30px,3vw,40px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.lfo-auth2__form-heading p {
  margin: 0;
  color: #96a5bc;
  font-size: 14px;
  line-height: 1.55;
}
.lfo-auth2__form { display: grid; gap: 18px; }
.lfo-auth2__form label > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: #dce5f3;
  font-size: 13px;
  font-weight: 600;
}
.lfo-auth2__form input,
.lfo-auth2__form select,
.lfo-ct__form input,
.lfo-ct__form select,
.lfo-ct__form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #29364a;
  border-radius: 9px;
  color: #f7f9ff;
  background: #0b1220;
  outline: none;
  caret-color: #6ec1e4;
  transition: border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.lfo-auth2__form input:hover,
.lfo-auth2__form select:hover { border-color: #3c4c65; }
.lfo-auth2__form input:focus,
.lfo-auth2__form select:focus,
.lfo-ct__form input:focus,
.lfo-ct__form select:focus,
.lfo-ct__form textarea:focus {
  border-color: #4ca3e8;
  background: #0d1626;
  box-shadow: 0 0 0 3px rgba(36,135,218,.17);
}
.lfo-auth2__form input::placeholder,
.lfo-ct__form input::placeholder,
.lfo-ct__form textarea::placeholder { color: #71809a; opacity: 1; }
.lfo-auth2__password { position: relative; display: block; }
.lfo-auth2__password input { padding-right: 68px; }
.lfo-auth2__password button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 50px;
  min-height: 40px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: #6ec1e4;
  background: rgba(110,193,228,.07);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.lfo-auth2__password button:hover { background: rgba(110,193,228,.08); }
.lfo-auth2__password button:focus-visible,
.lfo-auth2__forgot:focus-visible,
.lfo-auth2__alt a:focus-visible {
  outline: 2px solid #6ec1e4;
  outline-offset: 3px;
  border-radius: 4px;
}
.lfo-auth2__form label > .lfo-auth2__phone {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr);
  gap: 0;
  min-height: 52px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #29364a;
  border-radius: 9px;
  background: #0b1220;
  transition: border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.lfo-auth2__form label > .lfo-auth2__phone:hover {
  border-color: #3c4c65;
}
.lfo-auth2__form label > .lfo-auth2__phone:focus-within {
  border-color: #4ca3e8;
  background: #0d1626;
  box-shadow: 0 0 0 3px rgba(36,135,218,.17);
}
.lfo-auth2__form label > .lfo-auth2__phone input {
  min-width: 0;
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.lfo-auth2__form label > .lfo-auth2__phone input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.lfo-auth2__form label > .lfo-auth2__phone input:first-child {
  border-right: 1px solid #29364a;
  color: #9bacbf;
  text-align: center;
}
.lfo-auth2__form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -4px;
  color: #718099;
  font-size: 12px;
}
.lfo-auth2__form-meta > span { display: flex; align-items: center; gap: 7px; }
.lfo-auth2__form-meta > span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ad6a0;
}
.lfo-auth2__forgot { margin: 0; color: #6ec1e4; font-size: 13px; font-weight: 600; }
.lfo-auth2__submit {
  min-height: 54px;
  margin-top: 2px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg,#2487da,#3473bc);
  box-shadow: 0 14px 28px rgba(36,135,218,.18);
  cursor: pointer;
}
.lfo-auth2__submit:hover {
  color: #fff;
  background: linear-gradient(135deg,#3197e9,#3e7fc9);
  box-shadow: 0 16px 34px rgba(36,135,218,.25);
}
.lfo-auth2__submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lfo-auth2__submit:disabled { cursor: wait; opacity: .72; box-shadow: none; }
.lfo-auth2__submit.is-loading svg { animation: lfo-nx-arrow 1s ease-in-out infinite; }
@keyframes lfo-nx-arrow {
  0%,100% { transform: translateX(0); opacity: .6; }
  50% { transform: translateX(4px); opacity: 1; }
}
.lfo-auth2__alt {
  margin: 24px 0 0;
  color: #8391a8;
  font-size: 13px;
  text-align: center;
}
.lfo-auth2__alt a { color: #6ec1e4; }
.lfo-ct__message {
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
}
.lfo-ct__message--error {
  color: #ffafb5;
  border-color: rgba(255,114,125,.24);
  background: rgba(255,114,125,.09);
}
.lfo-ct__message--success {
  color: #8be8bd;
  border-color: rgba(90,214,160,.24);
  background: rgba(90,214,160,.09);
}
.lfo-auth2__card--single {
  display: block;
  max-width: 580px;
  min-height: 0;
  padding: 48px 52px;
  border-radius: 16px;
}
.lfo-auth2__card--single .lfo-auth2__title {
  max-width: none;
  color: #f8fbff;
  font-size: clamp(32px,4vw,42px);
}

@media (max-width: 900px) {
  .lfo-auth2 { padding-top: 118px; }
  .lfo-auth2__card { grid-template-columns: 1fr; max-width: 680px; }
  .lfo-auth2__brand-panel { min-height: 330px; padding: 42px; }
  .lfo-auth2__brand-panel .lfo-auth2__points { display: grid; grid-template-columns: 1fr 1fr; }
  .lfo-auth2__security { margin-top: 0; }
  .lfo-auth2__form-panel { padding: 46px 42px; }
}
@media (max-width: 600px) {
  .lfo-auth2 { padding: 98px 0 48px; }
  .lfo-auth2 .lfo-ch__container { width: min(100% - 24px,680px); }
  .lfo-auth2__card { border-radius: 12px; }
  .lfo-auth2__brand-panel { min-height: 0; padding: 34px 26px; }
  .lfo-auth2__brand-panel .lfo-auth2__lead { margin-bottom: 0; }
  .lfo-auth2__brand-panel .lfo-auth2__points,
  .lfo-auth2__brand-panel .lfo-auth2__security { display: none; }
  .lfo-auth2__title { font-size: 36px; }
  .lfo-auth2__form-panel { padding: 34px 24px; }
  .lfo-auth2__row { grid-template-columns: 1fr; gap: 18px; }
  .lfo-auth2__form-meta { align-items: flex-start; }
  .lfo-auth2__card--single { padding: 34px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .lfo-auth2 *,
  .lfo-auth2 *::before,
  .lfo-auth2 *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
