/* Login page — self-contained, no Bootstrap dependency. */

:root {
  --backdrop:    #0d0d18;
  --surface:     #181828;
  --surface-2:   #20203a;
  --line:        rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);

  --amber:       #fdc500;
  --amber-deep:  #e0a800;
  --sky:         #2d9cf0;
  --whatsapp:    #25d366;

  --paper:       #f2f3f8;
  --muted:       #8a8aa3;

  --radius:      14px;
  --radius-sm:   10px;
}

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

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 20px 24px;
  background-color: var(--backdrop);
  background-image: url("../img/binding_dark.webp");
  color: var(--paper);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- particle canvas ---------- */

#js-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#js-particles canvas {
  position: absolute !important;
  inset: 0;
}

/* ---------- card ---------- */

.signin {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 404px;
  padding: 34px 30px 28px;
  background: rgba(24, 24, 40, .82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .75);
}

.signin__brand {
  position: relative;
  text-align: center;
  margin-bottom: 22px;
}

/* the one loud thing on the page: an amber bloom behind the mark */
.signin__brand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 118px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(253, 197, 0, .22), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

.signin__brand img {
  position: relative;
  width: 205px;
  max-width: 78%;
  height: auto;
}

.signin__lede {
  margin: 0 0 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- fields ---------- */

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 15.5px;
  color: var(--paper);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.field input::placeholder { color: #5d5d78; }

.field input:hover { border-color: var(--line-strong); }

.field input:focus {
  outline: none;
  background: #252542;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(253, 197, 0, .18);
}

/* password reveal */
.field--password { position: relative; }

.field--password input { padding-right: 48px; }

.reveal {
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}

.reveal:hover { color: var(--paper); background: rgba(255, 255, 255, .06); }

.reveal:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  color: var(--paper);
}

.reveal svg { width: 19px; height: 19px; }

/* ---------- submit ---------- */

.btn-signin {
  width: 100%;
  margin-top: 6px;
  padding: 14px 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .005em;
  color: #1a1400;
  background: var(--amber);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .16s ease, transform .08s ease;
}

.btn-signin:hover { background: var(--amber-deep); }
.btn-signin:active { transform: translateY(1px); }

.btn-signin:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* ---------- contact ---------- */

.contact {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact__lede {
  margin: 0 0 13px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 10px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--paper);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .16s ease, background-color .16s ease;
}

.chip svg { width: 18px; height: 18px; flex: none; }

.chip:hover { background: rgba(255, 255, 255, .075); }

.chip:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.chip--whatsapp svg { color: var(--whatsapp); }
.chip--whatsapp:hover { border-color: rgba(37, 211, 102, .55); }

.chip--site svg { color: var(--amber); }
.chip--site:hover { border-color: rgba(253, 197, 0, .55); }

/* ---------- footer ---------- */

.colophon {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-size: 13px;
  color: #62627d;
  text-align: center;
}

.colophon a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.colophon a:hover { color: var(--muted); border-bottom-color: var(--line-strong); }

/* ---------- responsive ---------- */

@media (max-width: 420px) {
  body { padding: 24px 14px 18px; }
  .signin { padding: 28px 20px 24px; }
  .contact__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #js-particles { display: none; }
  * { transition: none !important; }
}
