body.login-page {
  height: auto;
  min-height: 100dvh;
  padding: 24px clamp(20px, 4vw, 32px) 20px;
  overflow-x: hidden;
}

.login-page-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 30px;
}
.login-page-logo .logo-img {
  width: 44px;
}

.stage {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 440px);
  gap: 20px;
  align-items: center;
  align-content: center;
  justify-content: center;
}

.back-home {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  text-decoration: none;
  --ib-size: 36px;
  --ib-fz: 17px;                 
  --ib-bg: var(--glass);         
  --ib-color: var(--black);     
  --ib-border: 1px solid var(--rim);           
}
.back-home-text {
  font-size: 15px;
  line-height: 1.3;
}
.back-home:active .btn-icon {
  scale: var(--press);
}

.login-intro,
.register-intro {
  min-width: 0;
  background: var(--black);
  color: var(--white);
  border-radius: 25px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.login-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.login-col .popup-card {
  margin-top: 0;
  max-width: 440px;
  padding: 26px 20px 20px;
  align-items: center;
  background: var(--glass);
}
.login-title {
  align-self: flex-start;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 10px;
}

.popup-field {
  position: relative;
  width: 100%;
  margin-top: 14px;
}
.popup-field-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--black);
  pointer-events: none;
}
.popup-input {
  width: 100%;
  padding: 14px 14px 14px 50px;
  font-size: 15px;
  border: var(--border);
  border-radius: var(--radius-pill);
  outline: none;
  background: none;
  color: var(--black);
}
.popup-input::placeholder {
  color: var(--muted);
}
.popup-input:-webkit-autofill,
.popup-input:-webkit-autofill:hover,
.popup-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--black);
  transition: background-color 9999s ease-in-out 0s;
}

.popup-toast {
  width: 100%;
  margin-top: 14px;
  padding: 10px 0px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  border-radius: 25px;
  background: none;
  color: var(--red);
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  border: 1px solid #ec5e47;
}
.popup-toast i {
  flex-shrink: 0;
  font-size: 17px;
  line-height: 1.3;
}
.popup-toast .kd-spinner {
  font-size: 17px;
}
.popup-toast:empty {
  display: none;
}

.login-msg {
  width: 100%;
  margin: 12px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  color: var(--black);
}
.login-msg i {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.3;
}
.login-msg .kd-spinner {
  font-size: 16px;
}
.login-msg:empty {
  display: none;
}

@media (min-width: 1101px) and (min-height: 960px) {
  .stage {
    padding-bottom: 60px;
  }
}

@media (max-width: 1100px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }
  .back-home {
    order: -2;
  }
  .login-col {
    order: -1;
    padding: 0;
  }
  .login-col .popup-card {
    max-width: none;
  }
  .login-intro,
  .register-intro {
    padding: 28px 22px;
  }
}

.login-intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
}

.intro-head {
  max-width: 30em;
}

.intro-title {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.5px;
  text-wrap: balance;
}

.intro-sub {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.74);
  text-wrap: pretty;
}

.fan {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  max-width: 600px;
  margin: 0 auto;
}

.photo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 50cqw;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%) rotate(var(--r));
  z-index: var(--z);
  border: 2px solid #fff;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  background: var(--mesh-b);
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
}
.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.specimen {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  line-height: 1.3;
}
.photo.has-img .specimen {
  visibility: hidden;
}
.specimen span {
  font-size: 11cqw;
}

.sp-hand {
  background: var(--mesh-a);
}
.sp-hand span {
  font-family: "Segoe Script", "Bradley Hand", "Brush Script MT", cursive;
  font-size: 9cqw;
}
.sp-wed {
  background: var(--mesh-b);
}
.sp-wed span {
  font-family: "Snell Roundhand", "Apple Chancery", "Palatino Linotype", Georgia, serif;
  font-style: italic;
}
.sp-brand {
  background: var(--mesh-c);
}
.sp-brand span {
  font-family: "MiSans VF", sans-serif;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.intro-cta {
  align-self: center;
  padding: 14px 28px;
  background: var(--white);
  color: var(--black);
}
.intro-cta:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.login-btn-row {
  margin-top: 14px;
}
.login-or {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  font-size: 14px;
  color: var(--black);
  opacity: 0.7;
}
.login-or::before,
.login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.login-note {
  width: 100%;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  color: var(--black);
  opacity: 0.8;
}
.login-contact {
  width: 100%;
  margin-top: 6px;
}
.login-contact .login-or {
  margin: 8px 0 12px;
}
.login-contact-btns {
  display: flex;
  gap: 8px;
}
.login-contact-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 0;
  background: var(--black);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  transition: scale var(--ease);
}
.login-contact-btn i {
  font-size: 18px;
  line-height: 1.3;
  flex-shrink: 0;
}
.login-contact-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.login-contact-btn:active {
  scale: var(--press);
}
@media (any-hover: hover) {
  html:not([data-input="touch"]) .login-contact-btn:hover {
    scale: var(--press);
  }
}
.login-or[hidden],
.google-btn-wrap[hidden] {
  display: none;
}
.google-btn-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-pill);
}
.google-btn-face {
  background: var(--white);
  color: var(--black);
  border: 1px solid #777;
  user-select: none;
}
.google-g {
  display: flex;
  align-items: center;
  height: 1.3em;
}
.google-g svg {
  width: 1em;
  height: 1em;
}
.google-btn-hit {
  position: absolute;
  top: 0;
  left: 0;
  height: 40px;
  opacity: 0.01;
  transform-origin: 0 0;
  cursor: pointer;
}
@media (any-hover: hover) {
  html:not([data-input="touch"]) .google-btn-wrap:hover .google-btn-face {
    scale: var(--press);
  }
}

.register-intro {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  --qr: 250px;
}
.reg-qr-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 1 var(--qr);
}
.reg-qr {
  width: 100%;
  max-width: var(--qr);
  margin: 0 auto;
  padding: 10px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.reg-qr img {
  display: block;
  width: 100%;
  height: auto;
}
.reg-qr-dl {
  align-self: center;
  margin-top: 12px;
  padding: 8px 18px;
  background: var(--white);
  color: var(--black);
}
.reg-info {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 220px;
  min-width: 0;
}
.reg-info li {
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  font-size: 15px;
  color: var(--white);
}
.reg-info li i {
  font-size: 18px;
  line-height: 1.3;
  flex-shrink: 0;
}
.reg-info li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reg-input {
  padding-left: 62px;
}
.req {
  color: var(--red);
  font-weight: 500;
  line-height: 1.3;
}
.popup-field .req {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
}

.reg-file {
  width: 100%;
  margin-top: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--muted);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}
.reg-file i {
  font-size: 18px;
  line-height: 1.3;
  flex-shrink: 0;
  color: var(--black);
}
.reg-file span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reg-file .req {
  margin-right: -8px;
  flex-shrink: 0;
}
.reg-file.has-file {
  color: var(--black);
  border-style: solid;
}
.reg-file.has-file .req {
  display: none;
}

.reg-agree {
  width: 100%;
  margin-top: 14px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--black);
  cursor: pointer;
  user-select: none;
}
.reg-agree-link {
  color: var(--red);
  text-decoration: none;
}
.reg-agree-link:hover {
  text-decoration: underline;
}
.reg-agree-circle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 14px;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.reg-agree-circle i {
  line-height: 1;
}
.reg-agree input:checked + .reg-agree-circle {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.reg-agree input:focus-visible + .reg-agree-circle {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.register-actions {
  margin-top: 14px;
}
.register-actions .popup-btn:disabled {
  cursor: default;
}

#success-panel.popup-panel {
  padding: 15px;
}
.success-popup {
  align-items: center;
  padding: 25px 20px 22px;
  margin-top: 0;
  max-width: 450px;
}
.success-icon {
  --ib-size: 36px;
  --ib-bg: var(--green);
  --ib-color: var(--white);
  --ib-border: none;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  pointer-events: none;
}
.success-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
}
.success-msg {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  color: var(--black);
}

@media (min-width: 700px) {
  .register-intro {
    display: grid;
    grid-template-columns: var(--qr) minmax(0, 1fr);
    align-items: stretch;
    justify-content: center;
    column-gap: 28px;
    row-gap: 12px;
  }
  .reg-qr-col {
    display: contents;
  }
  .reg-qr {
    grid-column: 1;
    grid-row: 1;
  }
  .reg-info {
    grid-column: 2;
    grid-row: 1;
    justify-content: space-between;
  }
  .reg-info li {
    flex: 1;
  }
  .reg-qr-dl {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  body.login-page {
    padding: 20px;
  }
  .login-page-logo,
  .stage {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (min-width: 1101px) {
  .stage {
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
    align-items: stretch;
  }
  .login-col {
    justify-content: stretch;
  }
  .login-col .popup-card {
    flex: 1;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }
  .login-contact {
    margin-top: auto;
    padding-top: 20px;
  }
}

.order-intro {
  position: relative;
  min-width: 0;
  min-height: 280px;
  overflow: hidden;
  background: var(--black);
  border-radius: 25px;
  box-shadow: var(--shadow-card);
}
.order-demo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--black);
}
@media (max-width: 1100px) {
  .order-intro {
    order: -1;
  }
}

.order-link-input {
  padding-right: 56px;
}
.order-upload-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  margin-top: calc(var(--ib-size) / -2);
  --ib-size: 34px;
  --ib-fz: 18px;
  --ib-bg: var(--black);
  --ib-color: var(--white);
  --ib-border: none;
}

.order-files {
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.order-files:empty {
  display: none;
}
.order-files li {
  max-width: 100%;
  padding: 5px 5px 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: var(--border);
  border-radius: var(--radius-pill);
  background: var(--glass-bold);
  font-size: 13px;
  line-height: 1.3;
  color: var(--black);
}
.order-files li > i {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.3;
}
.order-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-file-remove {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--bgicon);
  color: var(--black);
  font-size: 14px;
  cursor: pointer;
  transition: scale var(--ease);
}
.order-file-remove i {
  line-height: 1;
}
.order-file-remove:active {
  scale: var(--press);
}

.kd-select-btn {
  width: 100%;
  padding: 14px 14px 14px 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: var(--border);
  border-radius: var(--radius-pill);
  background: none;
  color: var(--black);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.kd-select-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.kd-select-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kd-select-price {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.kd-select-caret {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.3;
  transition: rotate var(--ease);
}
.kd-select.open .kd-select-caret {
  rotate: 180deg;
}
.kd-select-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 25px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.kd-select-list[hidden] {
  display: none;
}
.kd-select-list li {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  line-height: 1.3;
  color: var(--black);
  cursor: pointer;
  outline: none;
}
.kd-select-list li:hover,
.kd-select-list li:focus-visible {
  background: var(--bg);
}
.kd-select-list li[aria-selected="true"] {
  background: var(--black);
  color: var(--white);
}

.order-hint {
  width: 100%;
  margin: 14px 0 0;
  padding: 0 4px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--black);
  opacity: 0.8;
}
.order-hint i {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.2;
}

.order-note-field .popup-field-icon {
  top: 24px;
}
.order-note {
  display: block;
  min-height: 110px;
  padding: 14px 14px 14px 50px;
  border-radius: 25px;
  font-family: inherit;
  line-height: 1.4;
  resize: vertical;
}
.order-note::placeholder {
  color: var(--muted);
}
