/* =========================================================================
   iSeodang — Auth Experience Stylesheet
   회원가입 / 로그인 / 비밀번호 재설정 / 등록 선택 공용
   Palette: Brand blue #046bd2 (main) + Orange #FF7300 (accent)
   ========================================================================= */

/* ----------------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------------- */
.ia-scope {
  /* Brand — blue (from Astra --ast-global-color-0) */
  --ia-brand-50:  #eef6ff;
  --ia-brand-100: #d9eaff;
  --ia-brand-200: #b6d6ff;
  --ia-brand-300: #7fb8fb;
  --ia-brand-500: #1a7ee0;
  --ia-brand-600: #046bd2;   /* primary */
  --ia-brand-700: #045cb4;
  --ia-brand-800: #03498f;
  --ia-brand-900: #062a52;   /* deep panel */
  --ia-brand-950: #04203f;

  /* Accent — orange (from site popup / Tutor LMS) */
  --ia-accent-50:  #fff4ec;
  --ia-accent-100: #ffe3cf;
  --ia-accent-400: #ff8c2b;
  --ia-accent-500: #ff7300;  /* accent */
  --ia-accent-600: #e76700;

  /* Neutrals — slate, matched to Astra text colors */
  --ia-ink-900: #0f172a;
  --ia-ink-800: #1e293b;
  --ia-ink-700: #334155;
  --ia-ink-500: #64748b;
  --ia-ink-400: #94a3b8;
  --ia-ink-200: #e2e8f0;
  --ia-ink-100: #f1f5f9;

  /* Semantic */
  --ia-ok:   #12945a;
  --ia-ok-bg:#e7f7ee;
  --ia-warn: #b45309;
  --ia-warn-bg:#fef3c7;
  --ia-err:  #d92d20;
  --ia-err-bg:#fef2f2;

  /* Surfaces */
  --ia-bg:      #f4f8fc;
  --ia-surface: #ffffff;
  --ia-surface-2: #f8fafc;
  --ia-line:    #e4eaf2;
  --ia-line-strong: #cfd9e6;

  --ia-text:      var(--ia-ink-900);
  --ia-text-soft: var(--ia-ink-500);
  --ia-text-mid:  var(--ia-ink-700);

  /* Shape & motion */
  --ia-r-sm: 10px;
  --ia-r-md: 14px;
  --ia-r-lg: 20px;
  --ia-r-xl: 28px;
  --ia-r-pill: 999px;

  --ia-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --ia-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .05);
  --ia-shadow-lg: 0 24px 48px -12px rgba(4, 42, 82, .18), 0 8px 16px -8px rgba(15, 23, 42, .08);
  --ia-ring: 0 0 0 4px rgba(4, 107, 210, .16);
  --ia-ring-err: 0 0 0 4px rgba(217, 45, 32, .14);

  --ia-ease: cubic-bezier(.22, .61, .36, 1);
  --ia-dur: .22s;

  --ia-font: "Plus Jakarta Sans", "Pretendard", -apple-system, BlinkMacSystemFont,
             "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: light;
}

/* Dark mode — respects the visitor's OS setting */
@media (prefers-color-scheme: dark) {
  .ia-scope:not([data-ia-theme="light"]) {
    --ia-bg:        #0b1220;
    --ia-surface:   #111a2b;
    --ia-surface-2: #16223a;
    --ia-line:      #23324d;
    --ia-line-strong: #31415f;

    --ia-text:      #eaf1fb;
    --ia-text-mid:  #bccbe0;
    --ia-text-soft: #8ea3c0;

    --ia-ink-200: #23324d;
    --ia-ink-100: #16223a;

    --ia-ok-bg:  #0d2a1e;
    --ia-err-bg: #2c1416;
    --ia-warn-bg:#2c2210;

    --ia-shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .55);
    --ia-shadow-md: 0 4px 12px -2px rgba(0, 0, 0, .4);

    color-scheme: dark;
  }
}
.ia-scope[data-ia-theme="dark"] {
  --ia-bg:        #0b1220;
  --ia-surface:   #111a2b;
  --ia-surface-2: #16223a;
  --ia-line:      #23324d;
  --ia-line-strong: #31415f;
  --ia-text:      #eaf1fb;
  --ia-text-mid:  #bccbe0;
  --ia-text-soft: #8ea3c0;
  --ia-ink-200: #23324d;
  --ia-ink-100: #16223a;
  --ia-ok-bg:  #0d2a1e;
  --ia-err-bg: #2c1416;
  --ia-warn-bg:#2c2210;
  --ia-shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .55);
  --ia-shadow-md: 0 4px 12px -2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

/* ----------------------------------------------------------------
   2. Base
   ---------------------------------------------------------------- */
.ia-scope,
.ia-scope *,
.ia-scope *::before,
.ia-scope *::after { box-sizing: border-box; }

.ia-scope {
  font-family: var(--ia-font);
  color: var(--ia-text);
  background: var(--ia-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

.ia-scope :focus-visible {
  outline: 2px solid var(--ia-brand-600);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Screen-reader only */
.ia-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ----------------------------------------------------------------
   3. Split-screen shell
   ---------------------------------------------------------------- */
.ia-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}

/* --- Left: brand panel --- */
.ia-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(26, 126, 224, .55) 0%, rgba(6, 42, 82, 0) 62%),
    radial-gradient(90% 70% at 92% 100%, rgba(255, 115, 0, .38) 0%, rgba(6, 42, 82, 0) 58%),
    linear-gradient(158deg, var(--ia-brand-900) 0%, var(--ia-brand-950) 55%, #031a33 100%);
}

/* Hanok-roof motif lifted from the iSeodang logo — decorative only */
.ia-aside::before {
  content: "";
  position: absolute;
  inset: auto -12% -18% -12%;
  height: 62%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 420' preserveAspectRatio='none'%3E%3Cpath d='M0 300 C 180 296 300 250 600 60 C 900 250 1020 296 1200 300 L1200 420 L0 420 Z' fill='%23ffffff' fill-opacity='.05'/%3E%3Cpath d='M0 340 C 200 336 320 292 600 120 C 880 292 1000 336 1200 340' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.ia-aside::after {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  right: -160px; top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 115, 0, .30) 0%, rgba(255, 115, 0, 0) 68%);
  pointer-events: none;
}
.ia-aside > * { position: relative; z-index: 1; }

.ia-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
}
.ia-brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}
.ia-brand__mark svg { width: 24px; height: 24px; }
.ia-brand__dot { color: var(--ia-accent-500); }

.ia-aside__body { padding: 40px 0; max-width: 27ch; }
.ia-aside__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 22px;
  border-radius: var(--ia-r-pill);
  background: rgba(255, 115, 0, .16);
  border: 1px solid rgba(255, 140, 43, .34);
  color: #ffd9bc;
  font-size: 13px; font-weight: 600;
  letter-spacing: .01em;
}
.ia-aside__eyebrow i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ia-accent-400);
  box-shadow: 0 0 0 4px rgba(255, 140, 43, .22);
}
.ia-aside h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.14;
  letter-spacing: -.032em;
  font-weight: 800;
}
.ia-aside h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--ia-accent-400), #ffc38a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ia-aside__lede {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(226, 240, 255, .78);
  max-width: 34ch;
}

/* Value bullets */
.ia-perks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.ia-perks li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: rgba(226, 240, 255, .9);
}
.ia-perks svg {
  flex: none; width: 21px; height: 21px; margin-top: 1px;
  color: var(--ia-accent-400);
}

/* Social proof */
.ia-proof { display: flex; gap: 34px; flex-wrap: wrap; }
.ia-proof__n {
  display: block;
  font-size: 26px; font-weight: 800; letter-spacing: -.03em;
  line-height: 1.2;
}
.ia-proof__l { font-size: 13px; color: rgba(226, 240, 255, .6); }

.ia-quote {
  margin: 0 0 30px;
  padding: 20px 22px;
  border-radius: var(--ia-r-md);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}
.ia-quote p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: rgba(233, 243, 255, .93); }
.ia-quote footer { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(226, 240, 255, .62); }
.ia-quote__av {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ia-accent-500), var(--ia-brand-500));
  font-size: 12px; font-weight: 700; color: #fff;
}

/* --- Right: form column --- */
.ia-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px 56px;
  background: var(--ia-bg);
}
.ia-main__top {
  width: 100%; max-width: 460px;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 22px;
  font-size: 14px; color: var(--ia-text-soft);
}
.ia-main__inner {
  width: 100%;
  max-width: 460px;
  margin: auto 0;
}

/* Compact brand bar, mobile only */
.ia-mobilebrand {
  display: none;
  align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 26px;
  font-weight: 800; font-size: 18px; letter-spacing: -.02em;
  color: var(--ia-text);
  text-decoration: none;
}
.ia-mobilebrand__mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; color: #fff;
  background: linear-gradient(145deg, var(--ia-brand-600), var(--ia-brand-800));
}
.ia-mobilebrand__mark svg { width: 21px; height: 21px; }

/* ----------------------------------------------------------------
   4. Card & headings
   ---------------------------------------------------------------- */
.ia-card {
  background: var(--ia-surface);
  border: 1px solid var(--ia-line);
  border-radius: var(--ia-r-xl);
  box-shadow: var(--ia-shadow-lg);
  padding: 34px 34px 30px;
}
.ia-card--flush { box-shadow: none; border: 0; background: transparent; padding: 0; }

.ia-head { margin-bottom: 24px; }
.ia-head h2 {
  margin: 0 0 8px;
  font-size: 27px; font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.24;
  color: var(--ia-text);
}
.ia-head p { margin: 0; font-size: 15px; color: var(--ia-text-soft); }

/* ----------------------------------------------------------------
   5. Step progress
   ---------------------------------------------------------------- */
.ia-steps { margin-bottom: 26px; }
.ia-steps__bar {
  display: flex; gap: 6px;
  margin-bottom: 10px;
}
.ia-steps__seg {
  flex: 1; height: 5px;
  border-radius: var(--ia-r-pill);
  background: var(--ia-ink-200);
  overflow: hidden;
  position: relative;
}
.ia-steps__seg::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ia-brand-600), var(--ia-brand-500));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ia-ease);
}
.ia-steps__seg[data-state="done"]::after,
.ia-steps__seg[data-state="current"]::after { transform: scaleX(1); }
.ia-steps__seg[data-state="current"]::after {
  background: linear-gradient(90deg, var(--ia-brand-600), var(--ia-accent-500));
}
.ia-steps__meta {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px; color: var(--ia-text-soft);
}
.ia-steps__meta b { color: var(--ia-brand-600); font-weight: 700; }

/* Panels */
.ia-panel { display: none; animation: ia-slide .32s var(--ia-ease); }
.ia-panel.is-active { display: block; }
@keyframes ia-slide {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ia-panel { animation: none; }
  .ia-scope * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ----------------------------------------------------------------
   6. Fields
   ---------------------------------------------------------------- */
.ia-field { margin-bottom: 18px; }
.ia-field:last-child { margin-bottom: 0; }

.ia-label {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ia-text-mid);
  letter-spacing: -.005em;
}
.ia-label .ia-opt {
  font-weight: 500; font-size: 12.5px; color: var(--ia-text-soft);
}
.ia-label .ia-req { color: var(--ia-accent-500); margin-left: 2px; }

.ia-inputwrap { position: relative; display: flex; align-items: center; }

.ia-input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;              /* 16px prevents iOS zoom-on-focus */
  line-height: 1.4;
  color: var(--ia-text);
  background: var(--ia-surface);
  border: 1.5px solid var(--ia-line-strong);
  border-radius: var(--ia-r-md);
  transition: border-color var(--ia-dur) var(--ia-ease),
              box-shadow var(--ia-dur) var(--ia-ease),
              background-color var(--ia-dur) var(--ia-ease);
  appearance: none;
}
.ia-input::placeholder { color: var(--ia-ink-400); }
.ia-input:hover:not(:disabled) { border-color: var(--ia-brand-300); }
.ia-input:focus {
  outline: none;
  border-color: var(--ia-brand-600);
  box-shadow: var(--ia-ring);
}
.ia-input:disabled { background: var(--ia-ink-100); color: var(--ia-text-soft); cursor: not-allowed; }
.ia-input:-webkit-autofill {
  -webkit-text-fill-color: var(--ia-text);
  box-shadow: 0 0 0 1000px var(--ia-surface) inset;
}
/* Leading icon variant */
.ia-inputwrap--icon .ia-input { padding-left: 45px; }
.ia-inputwrap__icon {
  position: absolute; left: 15px;
  display: grid; place-items: center;
  width: 20px; height: 20px;
  color: var(--ia-ink-400);
  pointer-events: none;
  transition: color var(--ia-dur) var(--ia-ease);
}
.ia-inputwrap:focus-within .ia-inputwrap__icon { color: var(--ia-brand-600); }
/* Trailing affordance (toggle / status) */
.ia-inputwrap--trail .ia-input { padding-right: 46px; }
.ia-inputwrap--trail2 .ia-input { padding-right: 78px; }

.ia-eye {
  position: absolute; right: 6px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0; border-radius: var(--ia-r-sm);
  background: transparent; color: var(--ia-text-soft);
  cursor: pointer;
  transition: background var(--ia-dur), color var(--ia-dur);
}
.ia-eye:hover { background: var(--ia-ink-100); color: var(--ia-text-mid); }
.ia-eye svg { width: 19px; height: 19px; }

/* Validity mark */
.ia-mark {
  position: absolute; right: 14px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.7);
  transition: opacity var(--ia-dur) var(--ia-ease), transform var(--ia-dur) var(--ia-ease);
  pointer-events: none;
}
.ia-inputwrap--trail2 .ia-mark { right: 48px; }
.ia-mark svg { width: 20px; height: 20px; }
.ia-field.is-valid   .ia-mark--ok  { opacity: 1; transform: none; color: var(--ia-ok); }
.ia-field.is-invalid .ia-mark--err { opacity: 1; transform: none; color: var(--ia-err); }
.ia-mark--spin { color: var(--ia-brand-500); }
.ia-field.is-checking .ia-mark--spin { opacity: 1; transform: none; }
.ia-mark--spin svg { animation: ia-spin 1s linear infinite; }
@keyframes ia-spin { to { transform: rotate(360deg); } }

.ia-field.is-valid   .ia-input { border-color: rgba(18, 148, 90, .55); }
.ia-field.is-invalid .ia-input { border-color: var(--ia-err); }
.ia-field.is-invalid .ia-input:focus { box-shadow: var(--ia-ring-err); }

/* Hints & errors */
.ia-hint,
.ia-error {
  display: block;
  margin-top: 7px;
  font-size: 12.8px;
  line-height: 1.5;
}
.ia-hint  { color: var(--ia-text-soft); }
.ia-error {
  color: var(--ia-err);
  display: none;
  align-items: flex-start; gap: 6px;
}
.ia-error svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.ia-field.is-invalid .ia-error { display: flex; }
.ia-field.is-invalid .ia-hint  { display: none; }

/* Username suggestions */
.ia-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.ia-suggest .ia-pill { height: 32px; padding: 0 12px; font-size: 12.6px; }
.ia-scope [hidden] { display: none !important; }

/* Two-up row */
.ia-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .ia-row { grid-template-columns: 1fr; gap: 0; } }

/* ----------------------------------------------------------------
   7. Password strength + requirements
   ---------------------------------------------------------------- */
.ia-pw { margin-top: 12px; }
.ia-pw__bars { display: flex; gap: 5px; margin-bottom: 8px; }
.ia-pw__bar {
  flex: 1; height: 4px;
  border-radius: var(--ia-r-pill);
  background: var(--ia-ink-200);
  transition: background .3s var(--ia-ease);
}
.ia-pw__label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--ia-text-soft);
}
.ia-pw__label b { font-weight: 700; }
.ia-pw[data-score="1"] .ia-pw__bar:nth-child(-n+1) { background: var(--ia-err); }
.ia-pw[data-score="2"] .ia-pw__bar:nth-child(-n+2) { background: #f59e0b; }
.ia-pw[data-score="3"] .ia-pw__bar:nth-child(-n+3) { background: #3b9bd8; }
.ia-pw[data-score="4"] .ia-pw__bar                 { background: var(--ia-ok); }
.ia-pw[data-score="1"] .ia-pw__label b { color: var(--ia-err); }
.ia-pw[data-score="2"] .ia-pw__label b { color: var(--ia-warn); }
.ia-pw[data-score="3"] .ia-pw__label b { color: var(--ia-brand-600); }
.ia-pw[data-score="4"] .ia-pw__label b { color: var(--ia-ok); }

.ia-reqs {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px;
}
@media (max-width: 420px) { .ia-reqs { grid-template-columns: 1fr; } }
.ia-reqs li {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.6px; color: var(--ia-text-soft);
  transition: color var(--ia-dur) var(--ia-ease);
}
.ia-reqs li i {
  flex: none;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid var(--ia-line-strong);
  display: grid; place-items: center;
  transition: all var(--ia-dur) var(--ia-ease);
}
.ia-reqs li i::after {
  content: ""; width: 7px; height: 4px;
  border-left: 1.7px solid #fff; border-bottom: 1.7px solid #fff;
  transform: rotate(-45deg) scale(0); margin-top: -2px;
  transition: transform var(--ia-dur) var(--ia-ease);
}
.ia-reqs li.is-met { color: var(--ia-ok); }
.ia-reqs li.is-met i { background: var(--ia-ok); border-color: var(--ia-ok); }
.ia-reqs li.is-met i::after { transform: rotate(-45deg) scale(1); }

/* Caps-lock nudge */
.ia-caps {
  display: none;
  align-items: center; gap: 7px;
  margin-top: 8px; padding: 8px 11px;
  border-radius: var(--ia-r-sm);
  background: var(--ia-warn-bg);
  color: var(--ia-warn);
  font-size: 12.5px; font-weight: 600;
}
.ia-caps.is-on { display: flex; }
.ia-caps svg { width: 15px; height: 15px; flex: none; }

/* ----------------------------------------------------------------
   8. Checkboxes
   ---------------------------------------------------------------- */
.ia-check {
  display: flex; align-items: flex-start; gap: 11px;
  cursor: pointer;
  font-size: 13.6px; line-height: 1.55;
  color: var(--ia-text-mid);
  user-select: none;
}
.ia-check + .ia-check { margin-top: 12px; }
.ia-check input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.ia-check__box {
  flex: none;
  width: 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid var(--ia-line-strong);
  border-radius: 6px;
  background: var(--ia-surface);
  display: grid; place-items: center;
  transition: all var(--ia-dur) var(--ia-ease);
}
.ia-check__box::after {
  content: ""; width: 9px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); margin-top: -2px;
  transition: transform var(--ia-dur) var(--ia-ease);
}
.ia-check:hover .ia-check__box { border-color: var(--ia-brand-300); }
.ia-check input:checked + .ia-check__box {
  background: var(--ia-brand-600);
  border-color: var(--ia-brand-600);
}
.ia-check input:checked + .ia-check__box::after { transform: rotate(-45deg) scale(1); }
.ia-check input:focus-visible + .ia-check__box { box-shadow: var(--ia-ring); }
.ia-check a { color: var(--ia-brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ia-check a:hover { color: var(--ia-brand-700); }
.ia-field.is-invalid .ia-check__box { border-color: var(--ia-err); }

.ia-consent {
  margin-top: 20px; padding: 16px 18px;
  border-radius: var(--ia-r-md);
  background: var(--ia-surface-2);
  border: 1px solid var(--ia-line);
}

/* ----------------------------------------------------------------
   9. Buttons
   ---------------------------------------------------------------- */
.ia-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 15.5px; font-weight: 700;
  letter-spacing: -.005em;
  border-radius: var(--ia-r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s var(--ia-ease), background var(--ia-dur) var(--ia-ease),
              box-shadow var(--ia-dur) var(--ia-ease), border-color var(--ia-dur) var(--ia-ease),
              color var(--ia-dur) var(--ia-ease);
}
.ia-btn:active:not(:disabled) { transform: translateY(1px); }
.ia-btn:disabled { opacity: .55; cursor: not-allowed; }
.ia-btn--block { width: 100%; }
.ia-btn svg { width: 19px; height: 19px; flex: none; }

.ia-btn--primary {
  background: linear-gradient(180deg, var(--ia-brand-500), var(--ia-brand-600));
  color: #fff;
  box-shadow: 0 1px 2px rgba(3, 73, 143, .3), 0 8px 20px -8px rgba(4, 107, 210, .55);
}
.ia-btn--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--ia-brand-600), var(--ia-brand-700));
  box-shadow: 0 1px 2px rgba(3, 73, 143, .35), 0 12px 26px -8px rgba(4, 107, 210, .62);
}

.ia-btn--accent {
  background: linear-gradient(180deg, var(--ia-accent-400), var(--ia-accent-500));
  color: #fff;
  box-shadow: 0 1px 2px rgba(199, 88, 0, .3), 0 8px 20px -8px rgba(255, 115, 0, .55);
}
.ia-btn--accent:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--ia-accent-500), var(--ia-accent-600));
}

.ia-btn--ghost {
  background: var(--ia-surface);
  border-color: var(--ia-line-strong);
  color: var(--ia-text-mid);
}
.ia-btn--ghost:hover:not(:disabled) {
  background: var(--ia-surface-2);
  border-color: var(--ia-ink-400);
  color: var(--ia-text);
}

.ia-btn--link {
  height: auto; padding: 0; background: none; border: 0;
  color: var(--ia-brand-600); font-weight: 700; font-size: inherit;
}
.ia-btn--link:hover { color: var(--ia-brand-700); text-decoration: underline; text-underline-offset: 3px; }

/* Loading state */
.ia-btn.is-loading { color: transparent !important; pointer-events: none; }
.ia-btn.is-loading::after {
  content: ""; position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ia-spin .7s linear infinite;
}
.ia-btn--ghost.is-loading::after { border-color: var(--ia-line-strong); border-top-color: var(--ia-brand-600); }

.ia-actions { display: flex; gap: 12px; margin-top: 22px; }
.ia-actions .ia-btn--primary,
.ia-actions .ia-btn--accent { flex: 1; }
.ia-actions .ia-btn--ghost { flex: none; width: 52px; padding: 0; }

/* ----------------------------------------------------------------
   10. Social auth
   ---------------------------------------------------------------- */
.ia-social { display: grid; gap: 10px; }
.ia-social__btn {
  display: flex; align-items: center; justify-content: center;
  gap: 11px;
  width: 100%; height: 50px;
  border: 1.5px solid var(--ia-line-strong);
  border-radius: var(--ia-r-md);
  background: var(--ia-surface);
  color: var(--ia-text);
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all var(--ia-dur) var(--ia-ease);
}
.ia-social__btn:hover {
  background: var(--ia-surface-2);
  border-color: var(--ia-ink-400);
  box-shadow: var(--ia-shadow-sm);
}
.ia-social__btn svg { width: 20px; height: 20px; flex: none; }
.ia-social__btn b { font-weight: 700; }

.ia-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0;
  font-size: 12.8px; font-weight: 600;
  color: var(--ia-text-soft);
  text-transform: none;
}
.ia-divider::before,
.ia-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--ia-line);
}

/* ----------------------------------------------------------------
   11. Alerts / notices
   ---------------------------------------------------------------- */
.ia-alert {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px;
  margin-bottom: 20px;
  border-radius: var(--ia-r-md);
  font-size: 13.6px; line-height: 1.55;
  border: 1px solid transparent;
}
.ia-alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.ia-alert--err  { background: var(--ia-err-bg);  color: #a4231a; border-color: rgba(217, 45, 32, .22); }
.ia-alert--ok   { background: var(--ia-ok-bg);   color: #0c6b41; border-color: rgba(18, 148, 90, .22); }
.ia-alert--info { background: var(--ia-brand-50); color: var(--ia-brand-800); border-color: rgba(4, 107, 210, .18); }
.ia-alert--warn { background: var(--ia-warn-bg); color: var(--ia-warn); border-color: rgba(180, 83, 9, .22); }
.ia-alert strong { display: block; font-weight: 700; margin-bottom: 2px; }
@media (prefers-color-scheme: dark) {
  .ia-scope:not([data-ia-theme="light"]) .ia-alert--err  { color: #ffb4ac; }
  .ia-scope:not([data-ia-theme="light"]) .ia-alert--ok   { color: #7fe0af; }
  .ia-scope:not([data-ia-theme="light"]) .ia-alert--info { color: var(--ia-brand-200); background: rgba(4, 107, 210, .14); }
}

/* ----------------------------------------------------------------
   12. Footer links inside card
   ---------------------------------------------------------------- */
.ia-swap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ia-line);
  text-align: center;
  font-size: 14.2px;
  color: var(--ia-text-soft);
}
.ia-swap a {
  color: var(--ia-brand-600); font-weight: 700;
  text-decoration: none;
}
.ia-swap a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ia-legal {
  margin: 20px auto 0;
  max-width: 460px;
  text-align: center;
  font-size: 12.2px; line-height: 1.65;
  color: var(--ia-text-soft);
}
.ia-legal a { color: var(--ia-text-mid); text-decoration: underline; text-underline-offset: 2px; }

.ia-secure {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 18px;
  font-size: 12.4px; color: var(--ia-text-soft);
}
.ia-secure svg { width: 14px; height: 14px; color: var(--ia-ok); }

/* ----------------------------------------------------------------
   13. Success state
   ---------------------------------------------------------------- */
.ia-done { text-align: center; padding: 12px 0 4px; }
.ia-done__icon {
  width: 78px; height: 78px; margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ia-ok-bg);
  color: var(--ia-ok);
  animation: ia-pop .45s var(--ia-ease);
}
.ia-done__icon svg { width: 38px; height: 38px; }
@keyframes ia-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ia-done h2 { margin: 0 0 10px; font-size: 24px; font-weight: 800; letter-spacing: -.025em; }
.ia-done p { margin: 0 0 24px; color: var(--ia-text-soft); font-size: 15px; }
.ia-done p b { color: var(--ia-text); }

/* ----------------------------------------------------------------
   14. Language / theme pills (top-right utility)
   ---------------------------------------------------------------- */
.ia-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 13px;
  border: 1px solid var(--ia-line);
  border-radius: var(--ia-r-pill);
  background: var(--ia-surface);
  color: var(--ia-text-mid);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all var(--ia-dur) var(--ia-ease);
}
.ia-pill:hover { border-color: var(--ia-ink-400); color: var(--ia-text); }
.ia-pill svg { width: 15px; height: 15px; }

/* ----------------------------------------------------------------
   15. Choose-your-registration cards
   ---------------------------------------------------------------- */
.ia-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.ia-page__head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.ia-page__head .ia-aside__eyebrow {
  background: var(--ia-accent-50);
  border-color: var(--ia-accent-100);
  color: var(--ia-accent-600);
}
.ia-page__head h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800; letter-spacing: -.032em; line-height: 1.16;
  color: var(--ia-text);
}
.ia-page__head p { margin: 0; font-size: 17px; color: var(--ia-text-soft); }

.ia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 20px;
}
.ia-tile {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 26px 26px;
  background: var(--ia-surface);
  border: 1px solid var(--ia-line);
  border-radius: var(--ia-r-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform var(--ia-dur) var(--ia-ease),
              box-shadow var(--ia-dur) var(--ia-ease),
              border-color var(--ia-dur) var(--ia-ease);
}
.ia-tile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--ia-brand-600), var(--ia-accent-500));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ia-ease);
}
.ia-tile:hover {
  transform: translateY(-4px);
  border-color: var(--ia-brand-200);
  box-shadow: var(--ia-shadow-lg);
}
.ia-tile:hover::before { transform: scaleX(1); }
.ia-tile__icon {
  width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: var(--ia-r-md);
  display: grid; place-items: center;
  background: var(--ia-brand-50);
  color: var(--ia-brand-600);
}
.ia-tile__icon svg { width: 26px; height: 26px; }
.ia-tile--accent .ia-tile__icon { background: var(--ia-accent-50); color: var(--ia-accent-600); }
.ia-tile h3 {
  margin: 0 0 8px; font-size: 19px; font-weight: 800;
  letter-spacing: -.02em; color: var(--ia-text);
}
.ia-tile p { margin: 0 0 18px; font-size: 14.4px; color: var(--ia-text-soft); line-height: 1.62; }
.ia-tile__meta {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: grid; gap: 7px;
}
.ia-tile__meta li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.4px; color: var(--ia-text-mid);
}
.ia-tile__meta svg { width: 15px; height: 15px; flex: none; color: var(--ia-ok); }
.ia-tile__go {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.4px; font-weight: 700; color: var(--ia-brand-600);
}
.ia-tile__go svg { width: 16px; height: 16px; transition: transform var(--ia-dur) var(--ia-ease); }
.ia-tile:hover .ia-tile__go svg { transform: translateX(4px); }
.ia-tile__badge {
  position: absolute; top: 20px; right: 20px;
  padding: 4px 11px;
  border-radius: var(--ia-r-pill);
  background: var(--ia-accent-50);
  color: var(--ia-accent-600);
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------
   16. Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .ia-aside { padding: 40px 40px; }
  .ia-aside__body { padding: 30px 0; }
}
@media (max-width: 900px) {
  .ia-shell { grid-template-columns: 1fr; min-height: 0; }
  .ia-aside { display: none; }
  .ia-mobilebrand { display: flex; }
  .ia-main { padding: 30px 18px 48px; min-height: 100vh; min-height: 100svh; }
  .ia-main__top { max-width: 460px; margin-bottom: 12px; }
  .ia-card { padding: 26px 22px 24px; border-radius: var(--ia-r-lg); box-shadow: var(--ia-shadow-md); }
  .ia-head h2 { font-size: 24px; }
}
@media (max-width: 460px) {
  .ia-main { padding: 22px 14px 40px; }
  .ia-card { padding: 22px 18px 20px; }
  .ia-page { padding: 40px 16px 60px; }
}

/* Very short viewports — keep the CTA reachable */
@media (max-height: 700px) and (min-width: 901px) {
  .ia-main { padding-top: 26px; padding-bottom: 34px; }
  .ia-aside__body { padding: 22px 0; }
}
