/* Isolated registration UI: inherit TIQ's existing navy / blue visual language. */
.tiq-register-trigger {
  border: 0;
  background: transparent;
  color: var(--navy, #0b1f33);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  padding: 8px 0;
}
.tiq-register-trigger:hover { color: var(--blue, #2f6bff); }
.tiq-register-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 18px;
  padding: 30px;
  background: var(--bg, #f5f7fa);
  color: var(--navy, #0b1f33);
  font-family: inherit;
  box-shadow: 0 24px 80px rgba(11, 31, 51, 0.24);
}
.tiq-register-dialog::backdrop { background: rgba(11, 31, 51, 0.55); }
.tiq-register-dialog[open] { animation: tiq-register-enter 180ms ease-out; }
.tiq-register-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tiq-register-brand { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--blue, #2f6bff); }
.tiq-register-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: transparent;
  color: var(--navy, #0b1f33);
  cursor: pointer;
}
.tiq-register-close:hover { background: #e8eef6; }
.tiq-register-dialog h2 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.7px; margin-bottom: 12px; }
.tiq-register-note { color: var(--muted, #64748b); font-size: 13px; line-height: 1.65; margin-bottom: 22px; }
.tiq-register-field { display: block; margin-bottom: 14px; }
.tiq-register-field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.tiq-register-field small { font-size: 12px; font-weight: 400; color: var(--muted, #64748b); }
.tiq-register-field input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fcfdff;
  color: var(--navy, #0b1f33);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.tiq-register-help { color: var(--muted, #64748b); font-size: 12px; line-height: 1.6; margin: -6px 0 17px; }
.tiq-register-terms { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.7; margin-bottom: 18px; }
.tiq-register-terms input { margin-top: 4px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--blue, #2f6bff); }
.tiq-register-dialog a { color: var(--blue, #2f6bff); text-decoration: underline; text-underline-offset: 3px; }
.tiq-register-submit {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 8px;
  background: var(--blue, #2f6bff);
  color: #f8faff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tiq-register-submit:hover { background: var(--blue-dark, #1a54e8); }
.tiq-register-submit:disabled { opacity: 0.65; cursor: wait; }
.tiq-register-field input:disabled { opacity: 0.65; }
.tiq-register-error { font-size: 13px; line-height: 1.6; color: #9b283d; background: #fff1f3; border: 1px solid #f0c4cc; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
.tiq-register-error[hidden], .tiq-register-dialog [hidden] { display: none; }
.tiq-register-signin { text-align: center; font-size: 12px; color: var(--muted, #64748b); margin-top: 16px; }
.tiq-register-dialog :focus-visible, .tiq-register-trigger:focus-visible { outline: 3px solid var(--blue, #2f6bff); outline-offset: 3px; }
@keyframes tiq-register-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .tiq-register-dialog[open] { animation: none; } }
@media (max-width: 768px) { .header-cta .tiq-register-trigger { display: inline-flex; } }
@media (min-width: 769px) { .header-cta .tiq-register-trigger { display: none; } }
@media (max-width: 480px) {
  .tiq-register-dialog { padding: 20px; border-radius: 14px; }
  .tiq-register-dialog h2 { font-size: 23px; }
  .header-cta { flex-wrap: wrap; justify-content: flex-end; }
}
