[data-myang-language-hidden="true"] {
  display: none !important;
}

[data-myang-language-menu="true"] {
  min-width: 156px !important;
  padding: 6px !important;
  border: 1px solid rgba(75, 124, 178, 0.16) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 48px rgba(31, 89, 147, 0.14) !important;
  backdrop-filter: blur(18px);
}

.dark [data-myang-language-menu="true"] {
  border-color: rgba(126, 189, 255, 0.16) !important;
  background: rgba(9, 24, 46, 0.96) !important;
  box-shadow: 0 18px 48px rgba(0, 6, 18, 0.42) !important;
}

html[data-myang-page="auth"] body {
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  color: #09182e;
  background:
    linear-gradient(rgba(54, 120, 190, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 120, 190, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(32, 224, 220, 0.14), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(55, 117, 255, 0.16), transparent 36%),
    #f8fbff !important;
  background-size: 42px 42px, 42px 42px, auto, auto, auto !important;
}

html[data-myang-page="auth"] #root {
  min-height: 100svh;
}

html[data-myang-page="auth"] .myang-auth-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr) !important;
  gap: 18px;
  min-height: 100svh;
  padding: 18px;
  overflow: visible;
}

html[data-myang-page="auth"] .myang-auth-shell > a.absolute {
  top: 34px !important;
  left: 38px !important;
  z-index: 20 !important;
  min-height: 42px;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(75, 124, 178, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 32px rgba(31, 89, 147, 0.09);
  backdrop-filter: blur(18px);
}

html[data-myang-page="auth"] .myang-auth-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  grid-column: 1;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  padding: 92px clamp(42px, 6vw, 90px) 58px;
  border: 1px solid rgba(31, 117, 210, 0.14);
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 20%, rgba(22, 214, 231, 0.17), transparent 30%),
    radial-gradient(circle at 84% 22%, rgba(19, 93, 255, 0.19), transparent 34%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 76px rgba(24, 93, 170, 0.14);
  backdrop-filter: blur(20px);
}

html[data-myang-page="auth"] .myang-auth-visual::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 470px;
  height: 470px;
  border: 1px dashed rgba(45, 121, 197, 0.18);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

html[data-myang-page="auth"] .myang-auth-orbit {
  position: absolute;
  top: 8%;
  right: -12%;
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  border: 1px solid rgba(45, 121, 197, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

html[data-myang-page="auth"] .myang-auth-orbit::after {
  content: "";
  position: absolute;
  inset: 54px;
  border: 1px dashed rgba(45, 121, 197, 0.16);
  border-radius: inherit;
}

html[data-myang-page="auth"] .myang-auth-visual-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

html[data-myang-page="auth"] .myang-auth-mark {
  display: grid;
  width: 104px;
  height: 104px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(37, 118, 224, 0.14);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 58px rgba(37, 112, 189, 0.18);
}

html[data-myang-page="auth"] .myang-auth-mark img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

html[data-myang-page="auth"] .myang-auth-eyebrow {
  color: #1685d7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

html[data-myang-page="auth"] .myang-auth-title {
  max-width: 680px;
  margin: 14px 0 18px;
  color: #09182e;
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

html[data-myang-page="auth"] .myang-auth-description {
  max-width: 590px;
  margin: 0;
  color: #60718a;
  font-size: 16px;
  line-height: 1.8;
}

html[data-myang-page="auth"] .myang-auth-features {
  display: flex;
  gap: 9px;
  margin-top: 28px;
  flex-wrap: wrap;
}

html[data-myang-page="auth"] .myang-auth-features span {
  padding: 8px 11px;
  border: 1px solid rgba(19, 93, 255, 0.13);
  border-radius: 999px;
  color: #416883;
  background: rgba(255, 255, 255, 0.67);
  font-size: 12px;
  font-weight: 740;
}

html[data-myang-page="auth"] .myang-auth-form-region {
  position: relative;
  z-index: 4;
  display: flex !important;
  grid-column: 2;
  width: 100% !important;
  max-width: none !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0;
  min-height: calc(100svh - 36px);
  padding: 76px 34px 38px !important;
}

html[data-myang-page="auth"] .myang-auth-card {
  width: min(100%, 490px) !important;
  margin: 0 !important;
  padding: 32px !important;
  border: 1px solid rgba(75, 124, 178, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 26px 70px rgba(24, 93, 170, 0.14);
  backdrop-filter: blur(20px);
}

html[data-myang-page="auth"] .myang-auth-card h2 {
  color: #09182e;
  font-size: 34px !important;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

html[data-myang-page="auth"] .myang-auth-form-note {
  margin: 8px 0 0;
  color: #60718a;
  font-size: 14px;
  line-height: 1.65;
}

html[data-myang-page="auth"] .myang-auth-card form {
  gap: 15px !important;
}

/* The required legal checkbox already records consent. NewAPI also renders a
   second terms sentence below the form; hide that duplicate on sign-up so the
   primary action retains comfortable bottom clearance on shorter screens. */
html[data-myang-auth-route="sign-up"] .myang-auth-card > p:last-child {
  display: none !important;
}

html[data-myang-auth-route="sign-up"] .myang-auth-card p:has(> a[href="/user-agreement"]):has(> a[href="/privacy-policy"]) {
  display: none !important;
}

html[data-myang-page="auth"] .myang-invite-field {
  display: grid;
  gap: 8px;
}

html[data-myang-page="auth"] .myang-invite-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #244666;
  font-size: 13px;
  font-weight: 720;
}

html[data-myang-page="auth"] .myang-required {
  padding: 2px 7px;
  border-radius: 999px;
  color: #0752ef;
  background: rgba(19, 93, 255, 0.09);
  font-size: 11px;
  font-weight: 760;
}

html[data-myang-page="auth"] .myang-invite-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(75, 124, 178, 0.19);
  border-radius: 13px;
  outline: 0;
  color: #09182e;
  background: rgba(248, 251, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

html[data-myang-page="auth"] .myang-invite-field input:focus {
  border-color: rgba(19, 93, 255, 0.56);
  box-shadow: 0 0 0 3px rgba(19, 93, 255, 0.13);
}

html[data-myang-page="auth"] .myang-invite-help {
  margin: -1px 0 0;
  color: #6d8196;
  font-size: 12px;
  line-height: 1.55;
}

html[data-myang-page="auth"] .myang-auth-card [data-slot="form-item"] {
  gap: 8px !important;
}

html[data-myang-page="auth"] .myang-auth-card [data-slot="form-label"] {
  color: #244666;
  font-size: 13px;
  font-weight: 720;
}

html[data-myang-page="auth"] .myang-auth-card input[data-slot="form-control"] {
  height: 46px !important;
  padding: 0 14px !important;
  border-color: rgba(75, 124, 178, 0.19) !important;
  border-radius: 13px !important;
  color: #09182e !important;
  background: rgba(248, 251, 255, 0.88) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-myang-page="auth"] .myang-auth-card input[data-slot="form-control"]:focus {
  border-color: rgba(19, 93, 255, 0.56) !important;
  box-shadow: 0 0 0 3px rgba(19, 93, 255, 0.13) !important;
}

html[data-myang-page="auth"] .myang-auth-card form > button,
html[data-myang-page="auth"] .myang-auth-card button[type="submit"] {
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: white !important;
  background: linear-gradient(115deg, #0647df, #1685fa 64%, #12bfda) !important;
  box-shadow: 0 16px 32px rgba(19, 93, 255, 0.24) !important;
  font-weight: 780 !important;
}

html[data-myang-page="auth"] .myang-auth-card a {
  color: #176fcb !important;
  font-weight: 680;
}

html[data-myang-page="auth"] .myang-auth-controls {
  position: absolute;
  top: 34px;
  right: 38px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
}

html[data-myang-page="auth"] .myang-auth-language {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(75, 124, 178, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 28px rgba(31, 89, 147, 0.08);
  backdrop-filter: blur(16px);
}

html[data-myang-page="auth"] .myang-auth-language button,
html[data-myang-page="auth"] .myang-auth-theme {
  min-width: 38px;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  color: #526d86;
  background: transparent;
  font-size: 12px;
  font-weight: 760;
}

html[data-myang-page="auth"] .myang-auth-language button[aria-pressed="true"] {
  color: #0752ef;
  background: rgba(222, 244, 255, 0.9);
}

html[data-myang-page="auth"] .myang-auth-theme {
  border: 1px solid rgba(75, 124, 178, 0.16);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 28px rgba(31, 89, 147, 0.08);
  font-size: 16px;
  backdrop-filter: blur(16px);
}

.dark[data-myang-page="auth"] body {
  color: #edf7ff;
  background:
    linear-gradient(rgba(111, 181, 238, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 181, 238, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(10, 195, 209, 0.11), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(39, 94, 224, 0.17), transparent 36%),
    #06101f !important;
  background-size: 42px 42px, 42px 42px, auto, auto, auto !important;
}

.dark[data-myang-page="auth"] .myang-auth-shell > a.absolute,
.dark[data-myang-page="auth"] .myang-auth-card,
.dark[data-myang-page="auth"] .myang-auth-language,
.dark[data-myang-page="auth"] .myang-auth-theme {
  border-color: rgba(126, 189, 255, 0.16);
  background: rgba(9, 24, 46, 0.84);
  box-shadow: 0 18px 48px rgba(0, 6, 18, 0.28);
}

.dark[data-myang-page="auth"] .myang-auth-visual {
  border-color: rgba(126, 189, 255, 0.16);
  background:
    radial-gradient(circle at 16% 20%, rgba(22, 214, 231, 0.1), transparent 30%),
    radial-gradient(circle at 84% 22%, rgba(19, 93, 255, 0.16), transparent 34%),
    rgba(8, 25, 47, 0.88);
  box-shadow: 0 28px 76px rgba(0, 6, 18, 0.38);
}

.dark[data-myang-page="auth"] .myang-auth-mark {
  border-color: rgba(87, 173, 243, 0.2);
  background: rgba(13, 40, 72, 0.84);
  box-shadow: 0 24px 58px rgba(0, 6, 18, 0.32);
}

.dark[data-myang-page="auth"] .myang-auth-title,
.dark[data-myang-page="auth"] .myang-auth-card h2 {
  color: #edf7ff;
}

.dark[data-myang-page="auth"] .myang-auth-description,
.dark[data-myang-page="auth"] .myang-auth-form-note {
  color: #9bb0c7;
}

.dark[data-myang-page="auth"] .myang-auth-features span {
  color: #a7c0d5;
  border-color: rgba(126, 189, 255, 0.15);
  background: rgba(13, 40, 72, 0.74);
}

.dark[data-myang-page="auth"] .myang-auth-card [data-slot="form-label"] {
  color: #c5d8e8;
}

.dark[data-myang-page="auth"] .myang-invite-field label {
  color: #c5d8e8;
}

.dark[data-myang-page="auth"] .myang-required {
  color: #75c7ff;
  background: rgba(17, 52, 91, 0.82);
}

.dark[data-myang-page="auth"] .myang-invite-field input {
  color: #edf7ff;
  border-color: rgba(126, 189, 255, 0.18);
  background: rgba(12, 35, 65, 0.8);
  box-shadow: inset 0 1px 0 rgba(196, 229, 255, 0.05);
}

.dark[data-myang-page="auth"] .myang-invite-help {
  color: #8fa9c0;
}

.dark[data-myang-page="auth"] .myang-auth-card input[data-slot="form-control"] {
  color: #edf7ff !important;
  border-color: rgba(126, 189, 255, 0.18) !important;
  background: rgba(12, 35, 65, 0.8) !important;
  box-shadow: inset 0 1px 0 rgba(196, 229, 255, 0.05);
}

.dark[data-myang-page="auth"] .myang-auth-card a {
  color: #75c7ff !important;
}

.dark[data-myang-page="auth"] .myang-auth-language button,
.dark[data-myang-page="auth"] .myang-auth-theme {
  color: #a7bed2;
}

.dark[data-myang-page="auth"] .myang-auth-language button[aria-pressed="true"] {
  color: #75c7ff;
  background: rgba(17, 52, 91, 0.82);
}

@media (min-width: 941px) and (max-height: 900px) {
  html[data-myang-page="auth"] .myang-auth-form-region {
    align-items: flex-start !important;
    padding-top: 70px !important;
    padding-bottom: 28px !important;
  }

  html[data-myang-page="auth"] .myang-auth-card {
    padding: 28px !important;
  }

  html[data-myang-page="auth"] .myang-auth-card h2 {
    font-size: 30px !important;
  }

  html[data-myang-page="auth"] .myang-auth-card form {
    gap: 13px !important;
  }

  html[data-myang-page="auth"] .myang-auth-card input[data-slot="form-control"],
  html[data-myang-page="auth"] .myang-invite-field input {
    height: 44px !important;
  }
}

@media (max-width: 940px) {
  html[data-myang-page="auth"] body {
    overflow: auto;
  }

  html[data-myang-page="auth"] .myang-auth-shell {
    display: block !important;
    min-height: 100svh;
    padding: 12px;
  }

  html[data-myang-page="auth"] .myang-auth-visual {
    display: none;
  }

  html[data-myang-page="auth"] .myang-auth-form-region {
    min-height: 100svh;
    padding: 94px 8px 24px !important;
  }

  html[data-myang-page="auth"] .myang-auth-card {
    padding: 28px 22px !important;
    border-radius: 23px;
  }

  html[data-myang-page="auth"] .myang-auth-shell > a.absolute {
    top: 20px !important;
    left: 20px !important;
  }

  html[data-myang-page="auth"] .myang-auth-controls {
    top: 20px;
    right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-myang-page="auth"] *,
  html[data-myang-page="auth"] *::before,
  html[data-myang-page="auth"] *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
