:root {
  --zk-bg: #f8fbff;
  --zk-ink: #102033;
  --zk-muted: #617089;
  --zk-line: rgba(18, 38, 63, .12);
  --zk-blue: #1c9cff;
  --zk-soft: #5a6df4;
  --zk-purple: #7438ea;
  --zk-white: #ffffff;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ─── Wrapper ─── */
.zicketo-auth-wrapper {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(39, 156, 255, .11), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(116, 56, 234, .08), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fc 48%, #eef4fb 100%);
  color: var(--zk-ink);
  overflow-x: hidden;
}

.zicketo-auth-wrapper .auth-inner {
  min-height: 100vh;
}

/* ─── Logo (fixed, over dark left panel) ─── */
.zicketo-auth-brand {
  align-items: center;
  position: fixed;
  top: 28px;
  left: 34px;
  z-index: 20;
}

.zicketo-auth-brand img {
  width: 154px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* ─── Left visual panel ─── */
.zicketo-auth-visual {
  min-height: 100vh;
  align-items: center;
  padding: 120px 5vw 76px;
  background: linear-gradient(160deg, #0b1c32 0%, #112f4c 100%);
}

.zicketo-auth-visual-inner {
  width: min(100%, 660px);
}

.zicketo-auth-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #cfe8ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.zicketo-auth-visual h1 {
  margin: 24px 0 18px;
  color: var(--zk-white);
  font-size: clamp(3rem, 5.2vw, 5.5rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: 0;
}

.zicketo-auth-visual p {
  max-width: 560px;
  margin: 0;
  color: rgba(238, 246, 255, .78);
  font-size: 1.08rem;
  line-height: 1.75;
}

.zicketo-auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  max-width: 620px;
}

.zicketo-auth-metrics div,
.zicketo-auth-insight {
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  backdrop-filter: blur(18px);
}

.zicketo-auth-metrics div {
  min-height: 118px;
  padding: 22px;
  border-radius: 24px;
}

.zicketo-auth-metrics strong {
  display: block;
  color: var(--zk-white);
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1;
  font-weight: 800;
}

.zicketo-auth-metrics span {
  display: block;
  margin-top: 10px;
  color: rgba(238, 246, 255, .68);
  font-size: 0.88rem;
  font-weight: 700;
}

.zicketo-auth-insight {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  max-width: 560px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
}

.zicketo-auth-insight-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--zk-blue), var(--zk-purple));
  color: var(--zk-white);
  font-weight: 800;
}

.zicketo-auth-insight span {
  display: block;
  color: rgba(238, 246, 255, .62);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.zicketo-auth-insight strong {
  display: block;
  margin-top: 4px;
  color: var(--zk-white);
  font-size: 1rem;
  line-height: 1.4;
}

/* ─── Right form column ─── */
.zicketo-auth-form-col {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: transparent;
}

/* ─── Form card ─── */
.zicketo-auth-panel {
  width: min(100%, 520px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px;
  border: 1px solid var(--zk-line);
  border-radius: 30px;
  background: var(--zk-white);
  box-shadow:
    0 4px 24px rgba(16, 32, 51, .06),
    0 20px 60px rgba(16, 32, 51, .08);
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 156, 255, .28) transparent;
}

.zicketo-auth-panel::-webkit-scrollbar {
  width: 8px;
}

.zicketo-auth-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(28, 156, 255, .28);
}

/* Mobile brand (over white panel) — dark logo, no filter needed */
.zicketo-auth-mobile-brand {
  justify-content: center;
  margin-bottom: 24px;
}

.zicketo-auth-mobile-brand img {
  width: 142px;
  height: auto;
}

/* ─── Typography inside form card ─── */
.zicketo-auth-panel h2 {
  color: var(--zk-ink);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.zicketo-auth-panel p {
  color: var(--zk-muted);
}

.zicketo-auth-panel label,
.zicketo-auth-panel .form-label {
  color: var(--zk-ink);
  margin-bottom: 8px;
  font-size: 0.84rem;
  font-weight: 800;
}

.zicketo-auth-panel .custom-control-label {
  color: var(--zk-muted);
}

.zicketo-auth-panel small {
  color: var(--zk-muted);
}

.zicketo-auth-panel a {
  color: var(--zk-blue);
  font-weight: 800;
}

/* ─── Inputs ─── */
.zicketo-auth-panel .form-control,
.zicketo-auth-panel .select2-container--default .select2-selection--single {
  min-height: 50px;
  border: 1.5px solid var(--zk-line);
  border-radius: 14px;
  background-color: #f4f8ff;
  color: var(--zk-ink);
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.zicketo-auth-panel .form-control::placeholder {
  color: var(--zk-muted);
  opacity: .65;
}

.zicketo-auth-panel .form-control:focus,
.zicketo-auth-panel .select2-container--default.select2-container--focus .select2-selection--single,
.zicketo-auth-panel .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--zk-blue);
  background-color: #edf5ff;
  color: var(--zk-ink);
  box-shadow: 0 0 0 3px rgba(28, 156, 255, .13);
}

.zicketo-auth-panel select.form-control option {
  color: var(--zk-ink);
}

.zicketo-auth-panel .input-group-text {
  min-height: 50px;
  border: 1.5px solid var(--zk-line);
  background-color: #f4f8ff;
  color: var(--zk-muted);
}

.zicketo-auth-panel .input-group-merge .form-control:not(:last-child) {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.zicketo-auth-panel .input-group-append .input-group-text {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.zicketo-auth-panel .custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--zk-blue);
  background-color: var(--zk-blue);
}

/* ─── Button ─── */
.zicketo-auth-panel .btn-primary {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--zk-blue), var(--zk-soft) 48%, var(--zk-purple));
  color: var(--zk-white);
  box-shadow: 0 8px 28px rgba(28, 156, 255, .28);
  font-weight: 800;
  letter-spacing: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}

.zicketo-auth-panel .btn-primary:hover,
.zicketo-auth-panel .btn-primary:focus {
  color: var(--zk-white);
  box-shadow: 0 12px 36px rgba(28, 156, 255, .38);
  transform: translateY(-1px);
}

.zicketo-auth-panel .btn-primary.disabled,
.zicketo-auth-panel .btn-primary:disabled {
  opacity: 0.48;
  box-shadow: none;
  transform: none;
}

.zicketo-auth-panel .btn-flat-primary {
  color: var(--zk-blue);
}

/* ─── Account helper box ─── */
.zicketo-account-helper {
  margin: 2px 0 18px;
  padding: 16px;
  border: 1.5px solid rgba(28, 156, 255, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(28, 156, 255, .06), rgba(116, 56, 234, .04));
}

.zicketo-account-helper > span {
  display: block;
  color: var(--zk-blue);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.zicketo-account-helper h3 {
  margin: 6px 0 4px;
  color: var(--zk-ink);
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 800;
}

.zicketo-account-helper p {
  margin: 0;
  color: var(--zk-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.zk-type-select-wrap {
  margin-top: 12px;
}

.zk-type-select {
  min-height: 52px;
  border: 2px solid rgba(28, 156, 255, .28);
  border-radius: 12px;
  color: var(--zk-ink);
  font-weight: 800;
  cursor: pointer;
}

.zk-type-select:focus {
  border-color: var(--zk-blue);
  box-shadow: 0 0 0 3px rgba(28, 156, 255, .14);
}

/* ─── Alert ─── */
.zicketo-auth-panel .alert {
  border-radius: 14px;
  border-color: rgba(28, 156, 255, .2);
  background: rgba(28, 156, 255, .06);
  color: var(--zk-muted);
}

/* ─── Errors ─── */
.zicketo-auth-panel .text-danger,
.zicketo-auth-panel .invalid-feedback {
  color: #c0392b !important;
}

/* ─── Select2 ─── */
.zicketo-auth-panel .select2-container {
  width: 100% !important;
}

.zicketo-auth-panel .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--zk-ink);
  line-height: 48px;
  padding-left: 14px;
}

.zicketo-auth-panel .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px;
}

/* ─── Cloudflare Turnstile ─── */
/* bg-light on a white card would be invisible — force a visible tinted background */
.zicketo-auth-panel .bg-light.border {
  background-color: #f0f6ff !important;
  border-color: rgba(28, 156, 255, .22) !important;
  border-radius: 14px !important;
}

/* ─── Options (language/theme switcher) ─── */
.zicketo-auth-options {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 30;
}

.zicketo-auth-options .dropdown-menu {
  border: 1px solid var(--zk-line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(16, 32, 51, .10);
}

/* ─── Mobile ─── */
@media (max-width: 991.98px) {
  .zicketo-auth-wrapper {
    background:
      radial-gradient(circle at 50% 0%, rgba(28, 156, 255, .11), transparent 32%),
      linear-gradient(180deg, #f8fbff, #eef4fb);
  }

  .zicketo-auth-form-col {
    padding: 24px 16px;
  }

  .zicketo-auth-panel {
    max-height: none;
    padding: 28px 24px;
    border-radius: 24px;
  }

  .zicketo-auth-options {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 575.98px) {
  .zicketo-auth-panel {
    padding: 22px 18px;
  }

  .zicketo-auth-panel h2 {
    font-size: 1.7rem;
  }
}
