:root {
  color-scheme: light;
  --auth-ink: #18204f;
  --auth-muted: #70789d;
  --auth-pink: #ff4f8b;
  --auth-pink-strong: #f43f79;
  --auth-pink-soft: #fff3f7;
  --auth-violet: #8b5cf6;
  --auth-violet-strong: #7445e7;
  --auth-border: #f4cdd9;
  --auth-violet-border: #ddd7f7;
  --auth-white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  background: #ffffff;
}

body.auth-page {
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  color: var(--auth-ink);
  background: #ffffff !important;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.auth-stage {
  position: relative;
  width: min(100%, 1440px);
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  margin: 0 auto;
  padding: clamp(42px, 6vh, 64px) 24px 20px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 237, 244, .64), transparent 25%),
    #ffffff;
}

.auth-stage--login {
  background:
    radial-gradient(circle at 50% 16%, rgba(245, 241, 255, .76), transparent 27%),
    #ffffff;
}

.auth-card {
  position: relative;
  z-index: 3;
  width: min(620px, calc(100vw - 48px));
  border-radius: 30px;
  background: rgba(255, 255, 255, .98);
  box-shadow:
    0 24px 74px rgba(238, 96, 144, .13),
    0 0 0 1.5px rgba(255, 151, 185, .35);
}

.auth-card--register {
  min-height: 0;
  padding: 50px 44px 20px;
}

.auth-card--login {
  min-height: 0;
  padding: 62px 46px 22px;
  box-shadow:
    0 24px 74px rgba(117, 81, 226, .12),
    0 0 0 1.5px rgba(157, 133, 236, .28);
}

.auth-emblem {
  position: absolute;
  left: 50%;
  top: 0;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .98);
  box-shadow:
    0 16px 35px rgba(231, 112, 153, .17),
    0 0 0 1px rgba(247, 188, 208, .42);
}

.auth-emblem--sakura {
  font-size: 38px;
  filter: saturate(1.08);
}

.auth-emblem--torii {
  box-shadow:
    0 16px 35px rgba(109, 76, 216, .14),
    0 0 0 1px rgba(205, 195, 245, .5);
}

.auth-emblem--torii svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: #9670ef;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-emblem--torii span {
  position: absolute;
  right: 5px;
  bottom: 7px;
  font-size: 19px;
}

.auth-heading {
  text-align: center;
  margin-bottom: 16px;
}

.auth-heading h1 {
  color: var(--auth-ink);
  font-size: clamp(31px, 3.2vw, 39px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 800;
}

.auth-heading p {
  margin-top: 7px;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 500;
}

.auth-form {
  display: grid;
  gap: 7px;
}

.auth-field {
  min-width: 0;
}

.auth-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: #171d48;
  font-size: 12px;
  font-weight: 700;
}

.auth-field label span {
  color: #ff73a2;
  font-size: 15px;
}

.auth-input-wrap {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border: 1.5px solid #f3d0dc;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 2px 0 rgba(255, 225, 235, .25) inset;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-input-wrap--violet {
  border-color: var(--auth-violet-border);
  box-shadow: 0 2px 0 rgba(234, 229, 255, .24) inset;
}

.auth-input-wrap:focus-within {
  border-color: #ff78a7;
  box-shadow: 0 0 0 4px rgba(255, 92, 145, .11);
  transform: translateY(-1px);
}

.auth-input-wrap--violet:focus-within {
  border-color: #9d7af1;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .1);
}

.auth-input-icon {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  fill: #ff70a0;
  stroke: #ff70a0;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-input-wrap--violet .auth-input-icon {
  fill: #a580f3;
  stroke: #a580f3;
}

.auth-input-icon path + path,
.auth-input-icon rect + path {
  fill: none;
}

.auth-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #242a57;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}

.auth-input-wrap input::placeholder {
  color: #949ab8;
  opacity: 1;
}

.password-toggle {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #7e85aa;
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--auth-pink);
  background: #fff2f7;
  outline: none;
}

.auth-login-page .password-toggle:hover,
.auth-login-page .password-toggle:focus-visible {
  color: var(--auth-violet);
  background: #f5f1ff;
}

.password-toggle svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-error {
  min-height: 12px;
  padding: 2px 4px 0;
  color: #e11d48;
  font-size: 10px;
  line-height: 1.1;
}

.auth-input-wrap.is-invalid {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, .09);
}

.auth-consent-row {
  margin-top: -1px;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #555d82;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.auth-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-checkbox-box {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  margin-top: 1px;
  border: 2px solid #ff8db4;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #ffffff;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.auth-checkbox-box svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .18s ease, transform .18s ease;
}

.auth-checkbox input:checked + .auth-checkbox-box {
  border-color: var(--auth-pink);
  background: linear-gradient(135deg, #ff72a2, #f43f7b);
  box-shadow: 0 6px 16px rgba(244, 63, 123, .22);
}

.auth-checkbox--violet input:checked + .auth-checkbox-box {
  border-color: var(--auth-violet);
  background: linear-gradient(135deg, #9f7aea, #7c4ce0);
  box-shadow: 0 6px 16px rgba(124, 76, 224, .2);
}

.auth-checkbox input:checked + .auth-checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.auth-checkbox input:focus-visible + .auth-checkbox-box {
  box-shadow: 0 0 0 4px rgba(255, 79, 139, .13);
}

.auth-checkbox a,
.auth-login-options a,
.auth-switch a {
  color: var(--auth-pink);
  font-weight: 700;
  text-decoration: none;
}

.auth-login-page .auth-login-options a,
.auth-login-page .auth-switch a {
  color: var(--auth-violet);
}

.auth-checkbox a:hover,
.auth-login-options a:hover,
.auth-switch a:hover {
  text-decoration: underline;
}

.auth-login-options {
  margin: 1px 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
}

.auth-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.auth-submit svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-submit--pink {
  background: linear-gradient(135deg, #ff6fa1 0%, #ff4f8b 48%, #f43f79 100%);
  box-shadow: 0 15px 28px rgba(244, 63, 121, .25);
}

.auth-submit--violet {
  background: linear-gradient(135deg, #8c65ed 0%, #8b5cf6 48%, #a75ce8 100%);
  box-shadow: 0 15px 28px rgba(124, 76, 224, .24);
}

.auth-submit:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}

.auth-status {
  min-height: 15px;
  text-align: center;
  color: #596184;
  font-size: 12px;
  font-weight: 600;
}

.auth-status.is-error {
  color: #e11d48;
}

.auth-status.is-success {
  color: #16a34a;
}

.auth-divider {
  position: relative;
  margin: 11px 0 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #858bab;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #e7e0f8);
}

.auth-divider::after {
  background: linear-gradient(90deg, #e7e0f8, transparent);
}

.auth-divider--flower {
  color: #ff6e9f;
  font-size: 20px;
}

.auth-divider--flower::before,
.auth-divider--flower::after {
  background: linear-gradient(90deg, transparent, #f3d0dc);
}

.auth-divider--flower::after {
  background: linear-gradient(90deg, #f3d0dc, transparent);
}

.auth-switch {
  text-align: center;
  color: #555d82;
  font-size: 14px;
  font-weight: 500;
}

.auth-socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.auth-socials button {
  min-height: 48px;
  border: 1px solid #e5e1f2;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #252b59;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(63, 44, 130, .05);
}

.auth-socials button:hover {
  transform: translateY(-1px);
  border-color: #cfc4f3;
}

.social-google {
  color: #4285f4;
  font-size: 19px;
  font-weight: 800;
}

.social-facebook {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #1877f2;
  font-size: 15px;
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.social-apple {
  color: #000000;
  font-size: 19px;
}

.auth-mascot {
  position: absolute;
  z-index: 5;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 18px 25px rgba(84, 45, 62, .07));
}

.auth-mascot--rabbit {
  width: 320px;
  left: calc(50% + 265px);
  bottom: 2px;
}

.auth-mascot--cat {
  width: 275px;
  right: calc(50% + 245px);
  bottom: 8px;
}

.auth-flower-cluster {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: end;
  gap: 2px;
  filter: drop-shadow(0 10px 12px rgba(255, 133, 174, .16));
  pointer-events: none;
}

.auth-flower-cluster span {
  font-size: 48px;
  transform: rotate(var(--flower-rotation, 0deg));
}

.auth-flower-cluster span:nth-child(2) {
  font-size: 64px;
  --flower-rotation: -12deg;
}

.auth-flower-cluster span:nth-child(3) {
  font-size: 52px;
  --flower-rotation: 13deg;
}

.auth-flower-cluster span:nth-child(4) {
  grid-column: 2;
  margin-top: -28px;
  font-size: 39px;
}

.auth-flower-cluster--left {
  left: calc(50% - 610px);
  bottom: 58px;
}

.auth-petal {
  position: absolute;
  z-index: 1;
  width: 23px;
  height: 14px;
  border-radius: 90% 12% 90% 20%;
  background: linear-gradient(135deg, #ffc3d6, #ff8fb5);
  opacity: .65;
  transform: rotate(var(--petal-rotate, 0deg));
  box-shadow: 0 5px 12px rgba(255, 117, 161, .12);
}

.petal-1 { left: 13%; top: 30%; --petal-rotate: 24deg; }
.petal-2 { left: 17%; top: 55%; --petal-rotate: 47deg; }
.petal-3 { right: 16%; top: 18%; --petal-rotate: -28deg; }
.petal-4 { right: 18%; top: 40%; --petal-rotate: 18deg; }
.petal-5 { left: 14%; bottom: 18%; --petal-rotate: -20deg; }
.petal-6 { right: 12%; bottom: 24%; --petal-rotate: 36deg; }

@media (min-width: 931px) and (max-height: 760px) {
  body.auth-page,
  .auth-stage {
    min-height: 580px;
  }

  .auth-stage {
    padding: 26px 20px 12px;
  }

  .auth-card {
    width: min(580px, calc(100vw - 44px));
    border-radius: 25px;
  }

  .auth-card--register {
    padding: 40px 36px 13px;
  }

  .auth-card--login {
    padding: 47px 38px 15px;
  }

  .auth-emblem {
    width: 72px;
    height: 72px;
  }

  .auth-emblem--sakura {
    font-size: 31px;
  }

  .auth-emblem--torii svg {
    width: 44px;
    height: 44px;
  }

  .auth-heading {
    margin-bottom: 10px;
  }

  .auth-heading h1 {
    font-size: 29px;
  }

  .auth-heading p {
    margin-top: 4px;
    font-size: 13px;
  }

  .auth-form {
    gap: 4px;
  }

  .auth-field label {
    margin-bottom: 3px;
    font-size: 12px;
  }

  .auth-input-wrap {
    min-height: 46px;
  }

  .auth-input-wrap input {
    font-size: 13px;
  }

  .auth-error {
    min-height: 9px;
    padding-top: 1px;
    font-size: 9px;
  }

  .auth-submit {
    min-height: 50px;
    font-size: 17px;
  }

  .auth-divider {
    margin: 7px 0 6px;
  }

  .auth-mascot--rabbit {
    width: 270px;
    left: calc(50% + 245px);
  }

  .auth-mascot--cat {
    width: 235px;
    right: calc(50% + 225px);
  }
}

@media (max-width: 1180px) {
  .auth-mascot--rabbit {
    width: 290px;
    left: calc(50% + 240px);
    bottom: 2px;
  }

  .auth-mascot--cat {
    width: 250px;
    right: calc(50% + 220px);
    bottom: 6px;
  }

  .auth-flower-cluster--left {
    left: 28px;
  }
}

@media (max-width: 930px) {
  body.auth-page {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .auth-stage {
    padding-top: 70px;
    padding-bottom: 300px;
    overflow: visible;
  }

  .auth-card {
    width: min(680px, calc(100vw - 32px));
  }

  .auth-card--register,
  .auth-card--login {
    min-height: auto;
  }

  .auth-mascot--rabbit {
    width: 330px;
    left: 50%;
    bottom: 8px;
    transform: translateX(-10%);
  }

  .auth-mascot--cat {
    width: 285px;
    right: auto;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
  }

  .auth-flower-cluster--left {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-stage {
    padding: 56px 12px 270px;
  }

  .auth-card {
    width: 100%;
    border-radius: 27px;
  }

  .auth-card--register,
  .auth-card--login {
    padding: 72px 20px 28px;
  }

  .auth-emblem {
    width: 96px;
    height: 96px;
  }

  .auth-emblem--sakura {
    font-size: 40px;
  }

  .auth-emblem--torii svg {
    width: 58px;
    height: 58px;
  }

  .auth-heading h1 {
    font-size: 31px;
  }

  .auth-heading p {
    font-size: 12px;
  }

  .auth-form {
    gap: 11px;
  }

  .auth-input-wrap {
    min-height: 48px;
    padding: 0 13px;
    border-radius: 14px;
  }

  .auth-input-wrap input {
    font-size: 14px;
  }

  .auth-submit {
    min-height: 62px;
    font-size: 19px;
  }

  .auth-checkbox {
    font-size: 12px;
  }

  .auth-checkbox-box {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
  }

  .auth-login-options {
    align-items: flex-start;
    font-size: 12px;
  }

  .auth-socials {
    grid-template-columns: 1fr;
  }

  .auth-mascot--rabbit {
    width: 290px;
    transform: translateX(-18%);
  }

  .auth-mascot--cat {
    width: 260px;
  }

  .auth-switch {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Level field added without changing the current login/register design. */
.auth-input-wrap select {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 44px 0 48px;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  color: #2f3158;
  background:
    linear-gradient(45deg, transparent 50%, #8a91ad 50%)
      calc(100% - 22px) 22px / 6px 6px no-repeat,
    linear-gradient(135deg, #8a91ad 50%, transparent 50%)
      calc(100% - 16px) 22px / 6px 6px no-repeat,
    transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.auth-input-wrap select:focus {
  outline: none;
}

.auth-input-wrap:focus-within select {
  color: #25284e;
}


/* =========================================================
   PASSWORD EYE STATE
   ========================================================= */
.password-toggle .password-eye {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle .password-eye--visible { display: none; }
.password-toggle .password-eye--hidden { display: block; }
.password-toggle.is-password-visible .password-eye--visible { display: block; }
.password-toggle.is-password-visible .password-eye--hidden { display: none; }

/* =========================================================
   REGISTER LEVEL 3D DROPDOWN
   ========================================================= */
.auth-level-input-wrap {
  position: relative;
  padding-right: 10px;
  overflow: visible;
}
.auth-level-progress-icon {
  fill: none !important;
  stroke: #ff70a0 !important;
  stroke-width: 1.8;
}
.auth-level-trigger {
  min-width: 0;
  min-height: 48px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  color: #242a57;
  font: 700 14px/1 Poppins, "Noto Sans JP", sans-serif;
  text-align: left;
  cursor: pointer;
}
.auth-level-chevron {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: #858ca9;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.auth-level-input-wrap.is-open .auth-level-chevron { transform: rotate(180deg); }
.auth-level-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -1px;
  right: -1px;
  z-index: 500;
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid #e2dce8;
  border-radius: 17px;
  background: linear-gradient(145deg, #ffffff, #f5f2f7);
  box-shadow: 0 22px 44px rgba(75,62,100,.18), 0 8px 18px rgba(75,62,100,.10), inset 1px 1px 0 rgba(255,255,255,.98), inset -1px -1px 0 rgba(115,96,141,.08);
  opacity: 0;
  transform: perspective(850px) rotateX(-8deg) translateY(-8px) scale(.98);
  transform-origin: top center;
  transition: opacity .14s ease, transform .18s ease;
}
.auth-level-menu[hidden] { display: none !important; }
.auth-level-menu.is-visible { opacity: 1; transform: perspective(850px) rotateX(0) translateY(0) scale(1); }
.auth-level-option {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border: 1px solid #ece8f0;
  border-radius: 12px;
  background: #ffffff;
  color: #25284e;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.98), 0 5px 12px rgba(75,62,100,.06);
  font: 750 13px/1 Poppins, "Noto Sans JP", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.auth-level-option:hover,
.auth-level-option:focus-visible {
  border-color: #f0b6ca;
  background: #fff8fb;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(238,96,144,.11), inset 1px 1px 0 rgba(255,255,255,.98);
}
.auth-level-option.is-selected {
  border-color: #eea9c2;
  box-shadow: inset 0 0 0 2px rgba(255,79,139,.10), 0 7px 16px rgba(238,96,144,.09);
}
.auth-level-option.is-selected::after {
  color: #f04f89;
  content: "✓";
  font-size: 16px;
  font-weight: 900;
}
html.dark .auth-level-input-wrap,
body.dark .auth-level-input-wrap { border-color: #555d68; background: #24282e; }
html.dark .auth-level-trigger,
body.dark .auth-level-trigger { color: #ffffff; }
html.dark .auth-level-progress-icon,
body.dark .auth-level-progress-icon { stroke: #ff9abb !important; }
html.dark .auth-level-menu,
body.dark .auth-level-menu {
  border-color: #4f5762;
  background: linear-gradient(145deg, #24282e, #15181c);
  box-shadow: 0 23px 46px rgba(0,0,0,.34), inset 1px 1px 0 rgba(255,255,255,.05);
}
html.dark .auth-level-option,
body.dark .auth-level-option {
  border-color: #3b424c;
  background: #171a1f;
  color: #ffffff;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.04), 0 6px 14px rgba(0,0,0,.20);
}
html.dark .auth-level-option:hover,
html.dark .auth-level-option:focus-visible,
body.dark .auth-level-option:hover,
body.dark .auth-level-option:focus-visible {
  border-color: #626c79;
  background: #282d34;
}

/* =========================================================
   REGISTER FOOTER VISIBILITY FIX
   Bỏ thanh hoa trong HTML và kéo dòng đăng nhập lên trên.
   Chỉ tác động đến trang đăng ký.
   ========================================================= */

.auth-register-page .auth-switch {
  margin-top: 3px;
  line-height: 1.4;
}

.auth-register-page .auth-card--register {
  padding-bottom: 12px;
}

/* Không để phần cuối card bị cắt trên màn hình có chiều cao thấp. */
@media (min-width: 641px) and (max-height: 820px) {
  body.auth-register-page {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .auth-register-page .auth-stage {
    height: auto;
    min-height: 100vh;
    padding-bottom: 22px;
    overflow: visible;
  }
}

/* =========================================================
   REGISTER PENDING APPROVAL POPUP
   ========================================================= */

.auth-pending-dialog .auth-pending-icon,
.auth-success-modal.is-pending-approval
  .auth-success-icon {
  background:
    linear-gradient(
      135deg,
      #f6ad3c,
      #f28b32
    );
  border-color: #fff6df;
  box-shadow:
    0 12px 28px
      rgba(242, 139, 50, 0.28);
}

.auth-pending-dialog
  .auth-success-email {
  margin-top: 10px;
}

.auth-success-countdown[hidden] {
  display: none !important;
}
/* =========================================================
   MỞ RỘNG POPUP CHỜ PHÊ DUYỆT
   ========================================================= */

.auth-success-dialog.auth-pending-dialog {
  width: min(700px, calc(100vw - 40px));
  max-width: 700px;
  padding-left: 46px;
  padding-right: 46px;
  box-sizing: border-box;
}

/* Giữ tiêu đề trên cùng một dòng ở màn hình desktop */
.auth-success-dialog.auth-pending-dialog
  #registerSuccessTitle {
  white-space: nowrap;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.25;
}

/* Giới hạn chiều rộng đoạn mô tả để chữ dễ đọc */
.auth-success-dialog.auth-pending-dialog
  #registerSuccessMessage {
  max-width: 590px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile: cho phép xuống dòng để không tràn màn hình */
@media (max-width: 680px) {
  .auth-success-dialog.auth-pending-dialog {
    width: calc(100vw - 24px);
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
  }

  .auth-success-dialog.auth-pending-dialog
    #registerSuccessTitle {
    white-space: normal;
    font-size: 29px;
  }
}
