/* Basic reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: #111827; /* slate-900 */
  background: #ffffff;
  /* Side black bars width: responsive with cap at 240px */
  --gutter-width: clamp(140px, 12.5vw, 240px);
}

.page { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* Side black bars only on left/right */
body::before,
body::after {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--gutter-width);
  background: #0d0d0d;
  pointer-events: none;
  z-index: 1;
}
body::before { left: 0; }
body::after { right: 0; }

.card { margin: 0 auto; width: 300px; padding: 22px 18px 18px; border-radius: 12px; background: #eeeeee; box-shadow: 0 10px 15px rgba(0,0,0,0.06); }

.card__title { margin: 0 0 10px; font-size: 18px; font-weight: 500; text-align: center; }

.captcha { display: flex; justify-content: center; align-items: center; width: 100%; height: 86px; border-radius: 8px; background: #ffffff; overflow: hidden; border: 1px solid #e5e7eb; }

.captcha__image { display: block; max-width: 100%; height: auto; }

.link {
  display: inline-flex;
  margin: 8px 0 10px;
  color: #6366f1; /* indigo-500 */
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.link--small { font-size: 12px; }

.input { width: 100%; height: 40px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0 12px; outline: none; background: #fff; }
.input:focus { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }

.button { margin-top: 12px; width: 100%; height: 44px; background: #4f46e5; color: #fff; border: none; border-radius: 10px; font-weight: 500; cursor: pointer; font-size: 18px; }
.button:hover { background: #4338ca; }

.footer { text-align: center; padding: 18px 8px 28px; color: #6b7280; font-size: 12px; }
.footer__links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; opacity: 0.9; }
.footer__item { position: relative; padding: 0 14px; }
.footer__item + .footer__item { }
.footer__item:not(:last-child)::after { content: "|"; position: absolute; right: 0; color: #d1d5db; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Loader */
.hidden { display: none; }
.loader.hidden { display: none !important; }
.loader {
  position: fixed;
  inset: 0;
  background: #ffffff; /* fully opaque to hide form behind */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  /* Fine-tune upright angle of the logo if needed */
  --logo-tilt: 3deg;
}
/* Side black bars on the loader too */
.loader::before,
.loader::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--gutter-width);
  background: #0d0d0d;
  pointer-events: none;
  z-index: 1;
}
.loader::before { left: 0; }
.loader::after { right: 0; }
.loader__ring {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 6px solid #bfbfbf;
  z-index: 2;
}
.loader__orbit {
  position: absolute;
  width: 260px;
  height: 260px;
  animation: orbit-rotate 4s linear infinite;
  z-index: 2;
}
.loader__logo {
  position: absolute;
  width: 96px;
  height: 96px;
  left: calc(50% - 48px);
  top: -48px; /* starts at top of the circle */
  /* Keep icon facing the user by counter-rotating against orbit */
  transform: rotate(var(--logo-tilt));
  animation: orbit-counter 4s linear infinite;
  z-index: 2;
}
@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes orbit-counter {
  from { transform: rotate(calc(var(--logo-tilt) + 0deg)); }
  to { transform: rotate(calc(var(--logo-tilt) - 360deg)); }
}

.loader__msg {
  position: absolute;
  top: calc(50% + 215px);
  background: #bfbfbf;
  color: #111827;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  animation: blink 1.2s ease-in-out infinite;
  z-index: 2;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

