/* ==========================================================================
   GeoPlots · Sign-in
   ========================================================================== */
:root {
  --ink: #0a1512;
  --ink-2: #10241d;
  --ink-3: #163026;

  --paper: #ffffff;
  --paper-2: #f7f9f8;

  --text: #12211c;
  --text-2: #4d635b;
  --text-3: #7d918a;

  --hairline: #e3eae7;
  --hairline-strong: #d3ded9;

  --green: #14543f;
  --green-deep: #0d3b2c;
  --green-ring: rgba(20, 84, 63, 0.14);

  --gold: #c7a76a;

  --on-dark: #f2f6f4;
  --on-dark-2: rgba(233, 241, 238, 0.72);
  --on-dark-3: rgba(233, 241, 238, 0.48);
  --on-dark-line: rgba(255, 255, 255, 0.12);

  --radius: 18px;
  --radius-sm: 11px;

  --shadow: 0 1px 2px rgba(8, 22, 18, 0.06), 0 24px 48px -12px rgba(8, 22, 18, 0.35);

  --font-th: "IBM Plex Sans Thai", system-ui, -apple-system, sans-serif;
  --font-la: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-th);
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark);
  background: var(--ink);
}

/* ── Stage ───────────────────────────────────────────────────────────── */
.page {
  position: relative;
  min-height: 100vh;
  padding: clamp(1.25rem, 4vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
  background:
    radial-gradient(120% 85% at 8% 0%, var(--ink-3) 0%, transparent 58%),
    radial-gradient(90% 70% at 100% 100%, #12291f 0%, transparent 60%),
    linear-gradient(168deg, var(--ink) 0%, var(--ink-2) 100%);
  isolation: isolate;
}

.page__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--on-dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--on-dark-line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(70% 60% at 20% 10%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 20% 10%, #000 0%, transparent 75%);
  opacity: 0.5;
}

.layout {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  min-height: calc(100vh - clamp(2.5rem, 8vw, 7rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 396px;
  grid-template-areas:
    "identity card"
    "help     card"
    "services card"
    "legal    card";
  grid-template-rows: repeat(4, auto);
  align-content: center;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: 1.75rem;
}

/* ── Identity ────────────────────────────────────────────────────────── */
.identity {
  grid-area: identity;
  max-width: 34rem;
}

.identity__org {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--on-dark-2);
}

.identity__org span {
  display: block;
  font-weight: 300;
  color: var(--on-dark-3);
}

.identity__org::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--gold), rgba(199, 167, 106, 0));
}

.identity__title {
  margin: 0;
  font-size: clamp(1.85rem, 4.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.identity__latin {
  margin: 0.6rem 0 0;
  font-family: var(--font-la);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(199, 167, 106, 0.9);
}

.identity__copy {
  margin: 1.35rem 0 0;
  max-width: 30rem;
  font-weight: 300;
  color: var(--on-dark-2);
}

/* ── Other DOAE services ─────────────────────────────────────────────── */
.services {
  grid-area: services;
  max-width: 34rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.services a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--on-dark-line);
  border-radius: 999px;
  font-family: var(--font-la);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--on-dark-2);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.services a i {
  font-size: 0.62rem;
  opacity: 0.65;
}

.services a:hover {
  color: var(--on-dark);
  border-color: rgba(199, 167, 106, 0.55);
  background: rgba(199, 167, 106, 0.08);
}

/* ── Card ────────────────────────────────────────────────────────────── */
.card {
  grid-area: card;
  align-self: center;
  position: relative;
  padding: 1.75rem;
  background: var(--paper);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(199, 167, 106, 0.25) 55%, rgba(199, 167, 106, 0) 100%);
}

.card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--hairline);
}

.card__mark {
  width: 62px;
  height: auto;
  flex: none;
}

.card__agency {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.card__agency span {
  display: block;
  font-family: var(--font-la);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.card__title {
  margin: 1.35rem 0 0.15rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card__lead {
  margin: 0 0 1.15rem;
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--text-2);
}

/* ── Form ────────────────────────────────────────────────────────────── */
.field + .field {
  margin-top: 0.9rem;
}

.field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
}

.field__control {
  position: relative;
}

.field__control > i {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-3);
  pointer-events: none;
  transition: color 0.18s ease;
}

.field__control input {
  width: 100%;
  height: 48px;
  padding: 0 0.95rem 0 2.5rem;
  font-family: var(--font-th);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--paper-2);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.field__input--pass {
  padding-right: 3rem;
}

.field__control input:hover {
  border-color: #c3d1cb;
}

.field__control input:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-ring);
}

.field__control:focus-within > i {
  color: var(--green);
}

.field__control input:-webkit-autofill,
.field__control input:-webkit-autofill:hover,
.field__control input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 40rem var(--paper-2) inset;
  box-shadow: 0 0 0 40rem var(--paper-2) inset;
  caret-color: var(--text);
}

.field__reveal {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.field__reveal:hover {
  color: var(--green);
  background: rgba(20, 84, 63, 0.07);
}

.remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 0;
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}

.remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.submit {
  width: 100%;
  height: 48px;
  margin-top: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-th);
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(180deg, #1a6349 0%, var(--green-deep) 100%);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 14px -4px rgba(13, 59, 44, 0.5);
  cursor: pointer;
  transition: filter 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.submit:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 10px 20px -6px rgba(13, 59, 44, 0.55);
}

.submit:active:not(:disabled) {
  filter: brightness(0.97);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 3px 8px -3px rgba(13, 59, 44, 0.5);
}

.submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-3);
}

.secure i {
  font-size: 0.66rem;
  color: var(--green);
}

/* ── Card footer ─────────────────────────────────────────────────────── */
.card__foot {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.usage {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-2);
}

.usage:empty {
  display: none;
}

.notice {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-3);
}

/* ── Help ────────────────────────────────────────────────────────────── */
.help {
  grid-area: help;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.help__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.help__item:hover {
  border-color: rgba(199, 167, 106, 0.5);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.help__icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(199, 167, 106, 0.14);
  color: var(--gold);
  font-size: 0.78rem;
}

.help__text {
  min-width: 0;
  display: block;
  font-size: 0.73rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--on-dark-3);
}

.help__text strong {
  display: block;
  margin-bottom: 0.1rem;
  font-family: var(--font-la);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--on-dark);
  word-break: break-word;
}

.legal {
  grid-area: legal;
  margin: 0.25rem 0 0;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--on-dark-3);
}

/* ── Focus visibility ────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Content is centred here, so re-anchor the ambient light and grid to the
     middle — the desktop offsets are tuned for the left-hand text column. */
  .page {
    background:
      radial-gradient(150% 55% at 50% 0%, var(--ink-3) 0%, transparent 62%),
      radial-gradient(120% 45% at 50% 100%, #12291f 0%, transparent 65%),
      linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  }

  .page__veil {
    /* Tile from the centre so the grid lines mirror about the middle. */
    background-position: 50% 0;
    mask-image: radial-gradient(95% 42% at 50% 6%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(95% 42% at 50% 6%, #000 0%, transparent 78%);
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "identity"
      "card"
      "help"
      "services"
      "legal";
    grid-template-rows: auto;
    max-width: 30rem;
    row-gap: 1.5rem;
  }

  .identity,
  .help,
  .services {
    max-width: none;
  }

  .identity {
    text-align: center;
  }

  .identity__org::before {
    margin-inline: auto;
    background: linear-gradient(90deg, rgba(199, 167, 106, 0), var(--gold), rgba(199, 167, 106, 0));
  }

  .identity__copy {
    margin-inline: auto;
  }

  .services {
    justify-content: center;
  }

  .help {
    grid-template-columns: 1fr;
  }

  .legal {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1.4rem 1.15rem;
  }

  .card__mark {
    width: 54px;
  }

  .services a {
    font-size: 0.72rem;
  }
}

/* ── Identity Providers (ThaiD & SSO) ─────────────────────────── */
.thaid-btn {
  width: 100%;
  height: 48px;
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-th);
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(180deg, #0e2f6e 0%, #081a3f 100%);
  border: 1px solid #1c4596;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 4px 12px -2px rgba(6, 22, 56, 0.4);
  cursor: pointer;
  transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}

.thaid-btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 18px -4px rgba(6, 22, 56, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
}

.thaid-btn:active {
  filter: brightness(0.95);
  transform: translateY(1px);
}

.thaid-btn__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

.thaid-brand {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.thaid-brand-accent {
  color: #ffca28;
}

.sso-wrapper {
  margin-bottom: 1.1rem;
}

.sso-btn {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-th);
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(180deg, #1a6349 0%, var(--green-deep) 100%);
  border: 0;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 14px -4px rgba(13, 59, 44, 0.5);
  cursor: pointer;
  transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}

.sso-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 10px 20px -6px rgba(13, 59, 44, 0.55);
  color: #fff;
  transform: translateY(-1px);
}

.sso-btn:active {
  filter: brightness(0.97);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 3px 8px -3px rgba(13, 59, 44, 0.5);
  transform: translateY(1px);
}

.sso-btn__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ── Deadline Banner ─────────────────────────────────────────────────── */
.ec-deadline-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.ec-deadline-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
}

.ec-deadline-banner__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.ec-deadline-banner__text {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #78350f;
}

.ec-deadline-banner__text strong {
  font-weight: 600;
  color: #92400e;
}

.ec-deadline-banner__arrow {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #b45309;
  transition: transform 0.15s ease;
}

.ec-deadline-banner:hover .ec-deadline-banner__arrow {
  transform: translateX(2px);
}

/* ── Transition Notice Modal ─────────────────────────────────────────── */
.trans-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.trans-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.trans-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.25s ease;
}

.trans-modal__card {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  color: var(--text);
  border-radius: 20px;
  padding: 1.85rem 1.65rem 1.4rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.trans-modal.is-active .trans-modal__card {
  transform: scale(1) translateY(0);
}

.trans-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.trans-modal__close:hover {
  background: #e5e7eb;
  color: #111827;
}

.trans-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.trans-modal__icon-wrap {
  text-align: center;
  margin-bottom: 0.75rem;
}

.trans-modal__icon-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
  font-size: 1.6rem;
  box-shadow: 0 0 0 8px rgba(254, 243, 199, 0.5);
  animation: modal-shield-pulse 2.4s infinite;
}

@keyframes modal-shield-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
  }
}

.trans-modal__title {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

.trans-modal__notice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
}

.trans-modal__deadline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 0.4rem;
}

.trans-modal__deadline strong {
  color: #dc2626;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trans-modal__desc {
  margin: 0;
  font-size: 0.83rem;
  color: #4b5563;
  line-height: 1.55;
}

.trans-highlight-danger {
  color: #b91c1c;
  font-weight: 600;
}

.trans-modal__methods {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.trans-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.trans-method--recommended {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.trans-method__tag {
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #16a34a;
  color: #fff;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.trans-method__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trans-method__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trans-method__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trans-method__info strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f2937;
}

.trans-method__info span {
  font-size: 0.75rem;
  color: #6b7280;
}

.trans-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.trans-btn {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-th);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 0;
}

.trans-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.trans-btn--sso {
  background: linear-gradient(180deg, #1a6349 0%, var(--green-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(13, 59, 44, 0.35);
}

.trans-btn--sso:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff;
}

.trans-btn--thaid {
  background: #ffffff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.08);
}

.trans-btn--thaid:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.trans-btn--dismiss {
  background: #f8fafc;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 500;
  height: 42px;
  border: 1px solid #cbd5e1;
}

.trans-btn--dismiss:hover {
  color: #0f172a;
  background: #e2e8f0;
  border-color: #94a3b8;
}

.trans-method--phased-out {
  background: #fff5f5;
  border-color: #fed7d7;
}

.trans-method__tag--danger {
  background: #dc2626;
}

.trans-modal__contact {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.5;
  margin-top: 0.65rem;
}

.trans-modal__contact i {
  color: #2563eb;
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.trans-modal__contact strong {
  color: #1e293b;
}

/* ── Banner trigger on Login Card ────────────────────────────────────── */
.thaid-notice-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm, 11px);
  color: #92400e;
  font-family: var(--font-th);
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.08);
}

.thaid-notice-trigger:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15);
}

.thaid-notice-trigger__icon {
  color: #d97706;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.thaid-notice-trigger__text {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.thaid-notice-trigger__text strong {
  color: #b45309;
  font-weight: 600;
}

.thaid-notice-trigger__arrow {
  font-size: 0.75rem;
  color: #d97706;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.thaid-notice-trigger:hover .thaid-notice-trigger__arrow {
  transform: translateX(2px);
}

.trans-modal__footer {
  text-align: center;
  border-top: 1px solid #f3f4f6;
  padding-top: 0.75rem;
}

.trans-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}

.trans-checkbox input {
  accent-color: var(--green);
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

