/* EroKami V10.5 — controlled production polish. No bootstrap validation color leaks. */
:root {
  --ek-pink: #f36aac;
  --ek-pink-hi: #ff93c8;
  --ek-ink: #09080e;
  --ek-panel: #111019;
  --ek-line: rgba(255,255,255,.105);
  --ek-text: #f7f2f8;
  --ek-muted: rgba(247,242,248,.62);
}

/* The native checkbox is visually hidden; the visible control is a fixed SVG box. */
.erokami-auth .ek-remember {
  display: inline-grid;
  grid-template-columns: 20px minmax(0, auto);
  align-items: center;
  gap: 10px;
  min-height: 24px;
  margin: 2px 0 0;
  color: var(--ek-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
  cursor: pointer;
  user-select: none;
}

.erokami-auth .ek-remember__input,
.erokami-auth input.ek-remember__input[type='checkbox'],
.erokami-auth .form-check-input.ek-remember__input[type='checkbox'] {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  max-height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.erokami-auth .ek-remember__control {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 6px;
  background: linear-gradient(180deg,#14121d,#0b0a10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 5px 14px rgba(0,0,0,.22);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.erokami-auth .ek-remember__control svg {
  width: 12px;
  height: 10px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translateY(.25px) scale(.72);
  transition: opacity .14s ease, transform .14s ease;
}

.erokami-auth .ek-remember:hover .ek-remember__control {
  border-color: rgba(255,147,200,.74);
}

.erokami-auth .ek-remember__input:checked + .ek-remember__control {
  border-color: #ff8fc6;
  background: linear-gradient(145deg,#f36aac,#c83f83);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 3px rgba(243,106,172,.12), 0 8px 20px rgba(200,63,131,.22);
}

.erokami-auth .ek-remember__input:checked + .ek-remember__control svg {
  opacity: 1;
  transform: translateY(.25px) scale(1);
}

.erokami-auth .ek-remember__input:focus-visible + .ek-remember__control {
  outline: 2px solid rgba(255,147,200,.94);
  outline-offset: 3px;
}

.erokami-auth .ek-remember:active .ek-remember__control {
  transform: scale(.96);
}

/* Remove the generic checkbox wrapper geometry only for the dedicated remember control. */
.erokami-auth .form-check:has(.ek-remember__input) {
  display: block;
  min-height: 24px;
  padding: 0;
  margin: 0;
}

/* Deliberate, repeatable geometry for authentication screens. */
.erokami-auth .erokami-auth__card {
  border: 1px solid var(--ek-line);
  box-shadow: 0 24px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.025);
}

.erokami-auth input:not([type='checkbox']),
.erokami-auth select,
.erokami-auth textarea {
  min-height: 48px;
  border-radius: 12px !important;
  border-color: rgba(255,255,255,.12) !important;
  background: #0d0c13 !important;
  color: var(--ek-text) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.erokami-auth input:not([type='checkbox']):focus,
.erokami-auth select:focus,
.erokami-auth textarea:focus {
  border-color: rgba(255,126,188,.72) !important;
  box-shadow: 0 0 0 3px rgba(243,106,172,.11), inset 0 1px 0 rgba(255,255,255,.035) !important;
}

.erokami-auth button[type='submit'],
.erokami-auth .btn-primary {
  min-height: 50px;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg,#f36aac,#d3488e) !important;
  box-shadow: 0 13px 30px rgba(211,72,142,.24), inset 0 1px 0 rgba(255,255,255,.22) !important;
  font-weight: 800;
  letter-spacing: -.01em;
}

.catalog-block--curated {
  position: relative;
}

.catalog-block__head--curated {
  align-items: end;
}

.catalog-block__head--curated p {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--ek-muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .erokami-auth .ek-remember__control,
  .erokami-auth .ek-remember__control svg {
    transition: none;
  }
}
