/* 강사 포털 로그인 — 라이트 / 다크 */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&display=swap");

:root {
  --tl-font-ui: "Pretendard Variable", Pretendard, sans-serif;
  --tl-font-display: "Outfit", "Pretendard Variable", sans-serif;

  /* Studio navy + cyan (강사 포털 정체성, 퍼플 배제) */
  --tl-form-bg: #eef2f6;
  --tl-form-bg-accent: #e4eaf1;
  --tl-surface: #ffffff;
  --tl-surface-border: rgba(15, 30, 50, 0.08);
  --tl-text: #0f1724;
  --tl-muted: #5b6b7c;
  --tl-soft: #8a97a6;
  --tl-input-bg: #f6f8fb;
  --tl-input-border: #d5dde7;
  --tl-input-focus: #0e7490;
  --tl-ring: rgba(14, 116, 144, 0.16);
  --tl-btn-from: #0e7490;
  --tl-btn-to: #155e75;
  --tl-btn-hover-from: #0891b2;
  --tl-btn-hover-to: #0e7490;
  --tl-btn-shadow: 0 14px 28px -12px rgba(14, 116, 144, 0.42);
  --tl-settings-bg: rgba(255, 255, 255, 0.88);
  --tl-settings-border: rgba(15, 30, 50, 0.1);
  --tl-settings-icon: #5b6b7c;
  --tl-divider: rgba(15, 30, 50, 0.08);
  --tl-alert-info-bg: #eff6ff;
  --tl-alert-info-border: #bfdbfe;
  --tl-alert-info-text: #1e40af;
  --tl-alert-warn-bg: #fffbeb;
  --tl-alert-warn-border: #fde68a;
  --tl-alert-warn-text: #92400e;
  --tl-alert-err-bg: #fef2f2;
  --tl-alert-err-border: #fecaca;
  --tl-alert-err-text: #b91c1c;

  --tl-brand-fg: #f0f9ff;
  --tl-brand-muted: rgba(186, 230, 253, 0.78);
  --tl-brand-faint: rgba(125, 211, 252, 0.42);
  --tl-brand-base-0: #07111f;
  --tl-brand-base-1: #0c2740;
  --tl-brand-base-2: #0e4a5c;
  --tl-orb-a: rgba(34, 211, 238, 0.34);
  --tl-orb-b: rgba(56, 189, 248, 0.26);
  --tl-orb-c: rgba(14, 165, 233, 0.2);
  --tl-grid: rgba(255, 255, 255, 0.06);
}

html.dark,
html[data-theme="dark"],
.dark {
  --tl-form-bg: #070b12;
  --tl-form-bg-accent: #0c121c;
  --tl-surface: #0f1620;
  --tl-surface-border: rgba(125, 200, 230, 0.12);
  --tl-text: #e8f1f8;
  --tl-muted: #9aafc0;
  --tl-soft: #6f8496;
  --tl-input-bg: #0a1018;
  --tl-input-border: #243040;
  --tl-input-focus: #22d3ee;
  --tl-ring: rgba(34, 211, 238, 0.2);
  --tl-btn-from: #06b6d4;
  --tl-btn-to: #0891b2;
  --tl-btn-hover-from: #22d3ee;
  --tl-btn-hover-to: #06b6d4;
  --tl-btn-shadow: 0 14px 32px -12px rgba(6, 182, 212, 0.38);
  --tl-settings-bg: rgba(15, 22, 32, 0.9);
  --tl-settings-border: rgba(125, 200, 230, 0.14);
  --tl-settings-icon: #9aafc0;
  --tl-divider: rgba(125, 200, 230, 0.12);
  --tl-alert-info-bg: rgba(30, 58, 138, 0.28);
  --tl-alert-info-border: rgba(59, 130, 246, 0.35);
  --tl-alert-info-text: #bfdbfe;
  --tl-alert-warn-bg: rgba(120, 53, 15, 0.35);
  --tl-alert-warn-border: rgba(245, 158, 11, 0.35);
  --tl-alert-warn-text: #fde68a;
  --tl-alert-err-bg: rgba(127, 29, 29, 0.35);
  --tl-alert-err-border: rgba(248, 113, 113, 0.35);
  --tl-alert-err-text: #fecaca;

  --tl-brand-fg: #ecfeff;
  --tl-brand-muted: rgba(165, 243, 252, 0.72);
  --tl-brand-faint: rgba(103, 232, 249, 0.38);
  --tl-brand-base-0: #03060c;
  --tl-brand-base-1: #07111f;
  --tl-brand-base-2: #0c2740;
  --tl-orb-a: rgba(34, 211, 238, 0.26);
  --tl-orb-b: rgba(56, 189, 248, 0.18);
  --tl-orb-c: rgba(14, 165, 233, 0.14);
  --tl-grid: rgba(255, 255, 255, 0.045);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.tutor-login {
  margin: 0;
  min-height: 100vh;
  font-family: var(--tl-font-ui);
  color: var(--tl-text);
  background: var(--tl-form-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s ease, color 0.35s ease;
  color-scheme: light;
}

html.dark body.tutor-login,
html[data-theme="dark"] body.tutor-login,
.dark body.tutor-login {
  color-scheme: dark;
}

.tl-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .tl-shell {
    flex-direction: row;
  }
}

/* ===== Brand panel (full-bleed visual) ===== */
.tl-brand {
  position: relative;
  overflow: hidden;
  color: var(--tl-brand-fg);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse 80% 60% at 12% 18%, var(--tl-orb-a) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 88% 82%, var(--tl-orb-b) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 58% 8%, var(--tl-orb-c) 0%, transparent 48%),
    linear-gradient(152deg, var(--tl-brand-base-0) 0%, var(--tl-brand-base-1) 42%, var(--tl-brand-base-2) 100%);
}

@media (min-width: 1024px) {
  .tl-brand {
    width: 46%;
    max-width: 560px;
    min-height: 100vh;
    flex-shrink: 0;
  }
}

.tl-brand__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--tl-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--tl-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 40% 45%, #000 20%, transparent 75%);
  opacity: 0.9;
  animation: tl-grid-drift 28s linear infinite;
}

.tl-brand__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  will-change: transform;
}

.tl-brand__orb--a {
  width: 180px;
  height: 180px;
  top: 12%;
  left: 8%;
  background: var(--tl-orb-a);
  animation: tl-orb-float 9s ease-in-out infinite;
}

.tl-brand__orb--b {
  width: 240px;
  height: 240px;
  bottom: 10%;
  right: 4%;
  background: var(--tl-orb-b);
  animation: tl-orb-float 12s ease-in-out infinite reverse;
  animation-delay: -3s;
}

.tl-brand__content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.75rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: tl-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 1024px) {
  .tl-brand__content {
    padding: 3.5rem 3.25rem;
  }
}

.tl-brand__logo {
  display: block;
  max-height: 40px;
  width: auto;
  margin-bottom: 1.75rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.tl-brand__name {
  font-family: var(--tl-font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 5.5vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
  color: #fff;
  text-wrap: balance;
}

.tl-brand__headline {
  font-family: var(--tl-font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  color: var(--tl-brand-fg);
}

.tl-brand__lead {
  margin: 0;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--tl-brand-muted);
  font-weight: 500;
}

.tl-brand__foot {
  position: relative;
  z-index: 1;
  padding: 0 3.25rem 2rem;
  font-size: 0.75rem;
  color: var(--tl-brand-faint);
  display: none;
}

@media (min-width: 1024px) {
  .tl-brand__foot {
    display: block;
  }
}

/* ===== Form panel ===== */
.tl-form-panel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 2rem;
  background:
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(14, 116, 144, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--tl-form-bg) 0%, var(--tl-form-bg-accent) 100%);
}

@media (min-width: 640px) {
  .tl-form-panel {
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .tl-form-panel {
    padding: 3rem;
  }
}

.tl-settings {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  border: 1px solid var(--tl-settings-border);
  background: var(--tl-settings-bg);
  color: var(--tl-settings-icon);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.tl-settings:hover {
  color: var(--tl-input-focus);
  border-color: var(--tl-input-focus);
  transform: translateY(-1px);
}

.tl-settings:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--tl-ring);
}

.tl-form-wrap {
  width: 100%;
  max-width: 420px;
  animation: tl-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.tl-mobile-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tl-mobile-brand__name {
  font-family: var(--tl-font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--tl-text);
}

.tl-mobile-brand__sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--tl-soft);
}

@media (min-width: 1024px) {
  .tl-mobile-brand {
    display: none;
  }
}

.tl-card {
  background: var(--tl-surface);
  border: 1px solid var(--tl-surface-border);
  border-radius: 1.35rem;
  padding: 1.75rem 1.5rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 18px 48px -28px rgba(15, 30, 50, 0.28);
}

html.dark .tl-card,
html[data-theme="dark"] .tl-card,
.dark .tl-card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 22px 56px -28px rgba(0, 0, 0, 0.65);
}

@media (min-width: 640px) {
  .tl-card {
    padding: 2.15rem 2rem;
  }
}

.tl-card__head {
  margin-bottom: 1.65rem;
}

.tl-card__title {
  font-family: var(--tl-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--tl-text);
}

.tl-card__desc {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: var(--tl-muted);
  line-height: 1.5;
}

.tl-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.tl-alert {
  border-radius: 0.9rem;
  border: 1px solid;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.tl-alert--info {
  background: var(--tl-alert-info-bg);
  border-color: var(--tl-alert-info-border);
  color: var(--tl-alert-info-text);
}

.tl-alert--warn {
  background: var(--tl-alert-warn-bg);
  border-color: var(--tl-alert-warn-border);
  color: var(--tl-alert-warn-text);
}

.tl-alert--err {
  background: var(--tl-alert-err-bg);
  border-color: var(--tl-alert-err-border);
  color: var(--tl-alert-err-text);
}

.tl-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--tl-text);
  margin-bottom: 0.4rem;
}

.tl-field__control {
  position: relative;
}

.tl-field__icon {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tl-soft);
  pointer-events: none;
  transition: color 0.2s;
}

.tl-field__control:focus-within .tl-field__icon {
  color: var(--tl-input-focus);
}

.tl-field input[type="text"],
.tl-field input[type="password"] {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--tl-input-border);
  background: var(--tl-input-bg);
  color: var(--tl-text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tl-field input[type="password"] {
  padding-right: 3rem;
}

.tl-field input::placeholder {
  color: var(--tl-soft);
}

.tl-field input:focus {
  outline: none;
  border-color: var(--tl-input-focus);
  box-shadow: 0 0 0 4px var(--tl-ring);
}

.tl-field__toggle {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--tl-soft);
  cursor: pointer;
  padding: 0;
}

.tl-field__toggle:hover {
  color: var(--tl-input-focus);
}

.tl-remember {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  padding-top: 0.15rem;
}

.tl-remember input {
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--tl-input-border);
  border-radius: 0.35rem;
  background: var(--tl-surface);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.tl-remember input:checked {
  background: var(--tl-btn-from);
  border-color: var(--tl-btn-from);
}

.tl-remember input:checked::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.08rem;
  width: 0.28rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tl-remember span {
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--tl-muted);
}

.tl-remember:hover span {
  color: var(--tl-text);
}

.tl-submit {
  margin-top: 0.35rem;
  width: 100%;
  border: 0;
  border-radius: 0.9rem;
  padding: 0.95rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--tl-btn-from), var(--tl-btn-to));
  box-shadow: var(--tl-btn-shadow);
  transition: transform 0.2s, filter 0.2s, opacity 0.2s;
}

.tl-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--tl-btn-hover-from), var(--tl-btn-hover-to));
}

.tl-submit:focus {
  outline: none;
  box-shadow: var(--tl-btn-shadow), 0 0 0 4px var(--tl-ring);
}

.tl-submit:disabled {
  opacity: 0.8;
  cursor: wait;
  transform: none;
}

.tl-links {
  margin-top: 1.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tl-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8125rem;
  font-weight: 650;
}

.tl-links button {
  border: 0;
  background: transparent;
  color: var(--tl-muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
  transition: color 0.15s;
}

.tl-links button:hover {
  color: var(--tl-input-focus);
}

.tl-links__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tl-soft);
  opacity: 0.55;
}

.tl-copy-mobile {
  text-align: center;
  margin: 1.35rem 0 0;
  font-size: 0.75rem;
  color: var(--tl-soft);
}

@media (min-width: 1024px) {
  .tl-copy-mobile {
    display: none;
  }
}

/* Autofill */
body.tutor-login input:-webkit-autofill,
body.tutor-login input:-webkit-autofill:hover,
body.tutor-login input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #f6f8fb inset !important;
  -webkit-text-fill-color: #0f1724 !important;
}

html.dark body.tutor-login input:-webkit-autofill,
html[data-theme="dark"] body.tutor-login input:-webkit-autofill,
.dark body.tutor-login input:-webkit-autofill,
html.dark body.tutor-login input:-webkit-autofill:hover,
html.dark body.tutor-login input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #0a1018 inset !important;
  -webkit-text-fill-color: #e8f1f8 !important;
}

.b2b-modal-open,
.tutor-modal-open {
  overflow: hidden;
}

/* 모달 입력 포커스 (아이디/비밀번호 찾기) */
.input-glow:focus {
  box-shadow: 0 0 0 4px var(--tl-ring);
}

/* ===== Consent modal — 라이트 / 다크 토큰 ===== */
.consent-modal-card {
  --cm-surface: #ffffff;
  --cm-body-bg: #ffffff;
  --cm-foot-bg: #f1f5f9;
  --cm-border: #e2e8f0;
  --cm-text: #0f1724;
  --cm-muted: #5b6b7c;
  --cm-soft: #64748b;
  --cm-label: #475569;
  --cm-policy-bg: #f8fafc;
  --cm-policy-text: #334155;
  --cm-agree-bg: #ffffff;
  --cm-agree-border: #d5dde7;
  --cm-agree-on-bg: #ecfeff;
  --cm-agree-on-border: #22d3ee;
  --cm-receive-bg: #f8fafc;
  --cm-icon-bg: #ffffff;
  --cm-icon-fg: #0e7490;
  --cm-seg-bg: #e2e8f0;
  --cm-seg-fg: #64748b;
  --cm-seg-on-bg: #0e7490;
  --cm-seg-on-fg: #ffffff;
  --cm-decline-bg: #ffffff;
  --cm-decline-fg: #334155;
  --cm-submit-from: #0e7490;
  --cm-submit-to: #155e75;
  --cm-submit-off-bg: #e2e8f0;
  --cm-submit-off-fg: #64748b;
  --cm-err-bg: #fef2f2;
  --cm-err-fg: #b91c1c;
  --cm-err-border: #fecaca;
  background: var(--cm-surface);
  color: var(--cm-text);
  border-radius: 1.35rem;
  box-shadow: 0 25px 60px -20px rgba(15, 23, 42, 0.28);
  border: 1px solid var(--cm-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 44rem);
}

html.dark .consent-modal-card,
html[data-theme="dark"] .consent-modal-card,
.dark .consent-modal-card {
  --cm-surface: #0f1620;
  --cm-body-bg: #0f1620;
  --cm-foot-bg: #0a1018;
  --cm-border: #243040;
  --cm-text: #e8f1f8;
  --cm-muted: #9aafc0;
  --cm-soft: #7b91a3;
  --cm-label: #b7c7d4;
  --cm-policy-bg: #0a1018;
  --cm-policy-text: #cbd5e1;
  --cm-agree-bg: #121b26;
  --cm-agree-border: #2a3a4c;
  --cm-agree-on-bg: rgba(8, 145, 178, 0.18);
  --cm-agree-on-border: #22d3ee;
  --cm-receive-bg: #121b26;
  --cm-icon-bg: #1a2430;
  --cm-icon-fg: #67e8f9;
  --cm-seg-bg: #1e293b;
  --cm-seg-fg: #94a3b8;
  --cm-seg-on-bg: #22d3ee;
  --cm-seg-on-fg: #082f49;
  --cm-decline-bg: #121b26;
  --cm-decline-fg: #d6e4ef;
  --cm-submit-from: #06b6d4;
  --cm-submit-to: #0891b2;
  --cm-submit-off-bg: #1e293b;
  --cm-submit-off-fg: #94a3b8;
  --cm-err-bg: rgba(127, 29, 29, 0.35);
  --cm-err-fg: #fecaca;
  --cm-err-border: rgba(248, 113, 113, 0.35);
  box-shadow: 0 25px 60px -16px rgba(0, 0, 0, 0.65);
}

.consent-modal-hero {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 42%, #38bdf8 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.consent-modal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 45%);
  pointer-events: none;
}

.consent-modal-hero__user,
.consent-modal-hero__hint {
  color: rgba(236, 254, 255, 0.88);
}

.consent-modal-body {
  padding: 1.25rem 1.25rem 1.35rem;
  overflow-y: auto;
  background: var(--cm-body-bg);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-height: 0;
}

@media (min-width: 640px) {
  .consent-modal-body {
    padding: 1.35rem 2rem 1.5rem;
  }
}

.consent-modal-label {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cm-label);
}

.consent-modal-foot {
  flex-shrink: 0;
  padding: 0.9rem 1.25rem 1.05rem;
  border-top: 1px solid var(--cm-border);
  background: var(--cm-foot-bg);
  display: flex;
  flex-direction: column-reverse;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .consent-modal-foot {
    flex-direction: row;
    justify-content: flex-end;
    padding: 0.95rem 2rem 1.1rem;
  }
}

.consent-modal-decline,
.consent-modal-submit {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.8rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, filter 0.15s, opacity 0.15s;
}

@media (min-width: 640px) {
  .consent-modal-decline,
  .consent-modal-submit {
    width: auto;
    min-width: 8.5rem;
  }
}

.consent-modal-decline {
  border: 1px solid var(--cm-border);
  background: var(--cm-decline-bg);
  color: var(--cm-decline-fg);
}

.consent-modal-decline:hover {
  filter: brightness(1.06);
}

.consent-modal-submit {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--cm-submit-from), var(--cm-submit-to));
  box-shadow: 0 10px 22px -12px rgba(8, 145, 178, 0.55);
}

.consent-modal-submit:hover:not(:disabled) {
  filter: brightness(1.06);
}

.consent-modal-submit:disabled {
  background: var(--cm-submit-off-bg);
  color: var(--cm-submit-off-fg);
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
}

.consent-modal-error {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--cm-err-bg);
  color: var(--cm-err-fg);
  border: 1px solid var(--cm-err-border);
}

.consent-agree-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cm-text);
}

.consent-agree-sub,
.consent-receive-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--cm-muted);
}

.consent-receive-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cm-text);
}

.consent-policy-scroll {
  max-height: 13.5rem;
  overflow-y: auto;
  border-radius: 1rem;
  border: 1px solid var(--cm-border);
  background: var(--cm-policy-bg);
  padding: 1rem 1.125rem;
  scrollbar-width: thin;
  scrollbar-color: #67e8f9 var(--cm-policy-bg);
  color: var(--cm-policy-text);
}

.consent-policy-scroll,
.consent-policy-scroll p,
.consent-policy-scroll li,
.consent-policy-scroll span,
.consent-policy-scroll td,
.consent-policy-scroll div {
  color: var(--cm-policy-text);
}

.consent-policy-scroll .consent-policy-title,
.consent-policy-scroll .consent-policy-section,
.consent-policy-scroll h1,
.consent-policy-scroll h2,
.consent-policy-scroll h3,
.consent-policy-scroll h4 {
  color: var(--cm-icon-fg);
}

.consent-policy-scroll::-webkit-scrollbar {
  width: 6px;
}

.consent-policy-scroll::-webkit-scrollbar-thumb {
  background: #67e8f9;
  border-radius: 999px;
}

.consent-policy-formatted .consent-policy-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #164e63;
  margin: 0 0 0.625rem;
  letter-spacing: -0.01em;
}

.dark .consent-policy-formatted .consent-policy-title,
html.dark .consent-policy-formatted .consent-policy-title,
html[data-theme="dark"] .consent-policy-formatted .consent-policy-title {
  color: #a5f3fc;
}

.consent-policy-formatted .consent-policy-section,
.consent-policy-formatted h1,
.consent-policy-formatted h2,
.consent-policy-formatted h3,
.consent-policy-formatted h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0e7490;
  margin: 1rem 0 0.5rem;
  letter-spacing: -0.01em;
}

.consent-policy-formatted .consent-policy-title + .consent-policy-section,
.consent-policy-formatted .consent-policy-title + h4,
.consent-policy-formatted h3 + h4 {
  margin-top: 0.75rem;
}

.dark .consent-policy-formatted .consent-policy-section,
.dark .consent-policy-formatted h4,
html.dark .consent-policy-formatted .consent-policy-section,
html.dark .consent-policy-formatted h4,
html[data-theme="dark"] .consent-policy-formatted .consent-policy-section,
html[data-theme="dark"] .consent-policy-formatted h4 {
  color: #67e8f9;
}

.consent-policy-formatted .consent-policy-p,
.consent-policy-formatted p {
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--cm-policy-text, #475569);
  margin: 0 0 0.75rem;
}

.consent-policy-formatted .consent-policy-p:last-child,
.consent-policy-formatted p:last-child {
  margin-bottom: 0;
}

.consent-policy-formatted .consent-policy-list,
.consent-policy-formatted ul,
.consent-policy-formatted ol {
  margin: 0.25rem 0 0.875rem;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #cffafe;
}

.dark .consent-policy-formatted .consent-policy-list,
.dark .consent-policy-formatted ul,
.dark .consent-policy-formatted ol,
html.dark .consent-policy-formatted .consent-policy-list,
html.dark .consent-policy-formatted ul,
html.dark .consent-policy-formatted ol,
html[data-theme="dark"] .consent-policy-formatted .consent-policy-list,
html[data-theme="dark"] .consent-policy-formatted ul,
html[data-theme="dark"] .consent-policy-formatted ol {
  background: rgba(15, 23, 42, 0.6);
  border-color: #334155;
}

.consent-policy-formatted ul {
  list-style: disc;
}

.consent-policy-formatted ol {
  list-style: decimal;
}

.consent-policy-formatted .consent-policy-list li,
.consent-policy-formatted li {
  font-size: 0.75rem;
  line-height: 1.65;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.dark .consent-policy-formatted li,
html.dark .consent-policy-formatted li,
html[data-theme="dark"] .consent-policy-formatted li {
  color: #94a3b8;
}

.consent-policy-formatted .consent-policy-list li:last-child,
.consent-policy-formatted li:last-child {
  margin-bottom: 0;
}

.consent-agree-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  border: 1.5px solid var(--cm-agree-border);
  background: var(--cm-agree-bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.consent-agree-card:has(input:checked) {
  border-color: var(--cm-agree-on-border);
  background: var(--cm-agree-on-bg);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.consent-agree-card input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: #0891b2;
  flex-shrink: 0;
}

.consent-receive-block {
  border-radius: 1rem;
  border: 1px solid var(--cm-border);
  background: var(--cm-receive-bg);
  padding: 1rem;
}

.consent-receive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0;
}

.consent-receive-row + .consent-receive-row {
  border-top: 1px solid var(--cm-border);
  margin-top: 0.25rem;
  padding-top: 0.875rem;
}

.consent-receive-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.consent-receive-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cm-icon-bg);
  border: 1px solid var(--cm-border);
  color: var(--cm-icon-fg);
  flex-shrink: 0;
}

.consent-segment {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 9999px;
  background: var(--cm-seg-bg);
  gap: 0.15rem;
  flex-shrink: 0;
}

.consent-segment__option {
  position: relative;
}

.consent-segment__option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.consent-segment__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cm-seg-fg);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.consent-segment__option input:checked + .consent-segment__pill {
  background: var(--cm-seg-on-bg);
  color: var(--cm-seg-on-fg);
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.28);
}

.consent-segment__option input:focus-visible + .consent-segment__pill {
  outline: 2px solid var(--cm-seg-on-bg);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .consent-receive-row {
    flex-direction: column;
    align-items: stretch;
  }

  .consent-segment {
    width: 100%;
  }

  .consent-segment__option {
    flex: 1;
  }

  .consent-segment__pill {
    width: 100%;
    min-width: 0;
  }
}

@keyframes tl-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tl-orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -18px) scale(1.06);
  }
}

@keyframes tl-grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 48px 48px, 48px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-brand__content,
  .tl-form-wrap,
  .tl-brand__orb,
  .tl-brand__mesh {
    animation: none !important;
  }
}

html.b2b-reduce-motion *,
html.b2b-reduce-motion *::before,
html.b2b-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* 아이디/비밀번호 찾기 모달 */
.tl-dialog {
  width: 100%;
  max-width: 28rem;
  background: var(--tl-surface);
  color: var(--tl-text);
  border: 1px solid var(--tl-surface-border);
  border-radius: 1.35rem;
  box-shadow: 0 24px 50px -18px rgba(15, 23, 42, 0.28);
  padding: 1.5rem 1.35rem;
}

@media (min-width: 640px) {
  .tl-dialog {
    padding: 2rem;
  }
}

.tl-dialog__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tl-text);
}

.tl-dialog__desc {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--tl-muted);
  line-height: 1.5;
}

.tl-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--tl-soft);
  cursor: pointer;
}

.tl-dialog__close:hover {
  background: var(--tl-input-bg);
  color: var(--tl-text);
}

.tl-dialog label,
.tl-dialog .tl-dialog__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--tl-text);
  margin-bottom: 0.4rem;
}

.tl-dialog input[type="text"],
.tl-dialog input[type="tel"],
.tl-dialog input[type="email"],
.tl-dialog input[type="date"],
.tl-dialog select {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--tl-input-border);
  background: var(--tl-input-bg);
  color: var(--tl-text);
  font-size: 0.9375rem;
  font-family: inherit;
}

.tl-dialog input:focus,
.tl-dialog select:focus {
  outline: none;
  border-color: var(--tl-input-focus);
  box-shadow: 0 0 0 4px var(--tl-ring);
}

.tl-dialog input::placeholder {
  color: var(--tl-soft);
}

.tl-dialog__hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--tl-soft);
}

.tl-dialog__submit {
  width: 100%;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 0.9rem;
  padding: 0.9rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--tl-btn-from), var(--tl-btn-to));
  box-shadow: var(--tl-btn-shadow);
}

.tl-dialog__submit:disabled {
  opacity: 0.8;
  cursor: wait;
}

.tl-dialog__ok {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.875rem;
}

html.dark .tl-dialog__ok,
html[data-theme="dark"] .tl-dialog__ok,
.dark .tl-dialog__ok {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(6, 78, 59, 0.35);
  color: #a7f3d0;
}

.tl-dialog__err {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--tl-alert-err-border);
  background: var(--tl-alert-err-bg);
  color: var(--tl-alert-err-text);
  font-size: 0.875rem;
}
