/* =============================================================
   Side Quest — Login page styles
   ============================================================= */

/* ── full-bleed background photo ── */
body {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  position: relative;
}
.login-bg {
  position: fixed; inset: 0; z-index: -1;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; transition: opacity 1.2s ease;
}
.login-bg.active { opacity: 1; }

/* photo scrim: darkens + fades edges so the card reads cleanly */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 50%, rgba(15,15,15,0.38) 0%, rgba(15,15,15,0.72) 60%, rgba(29,29,29,0.96) 100%),
    linear-gradient(180deg, rgba(29,29,29,0.5) 0%, rgba(29,29,29,0.25) 40%, rgba(29,29,29,0.5) 100%);
}

/* subtle pixel grid on top of the photo */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(120% 100% at 50% 50%, #000 30%, transparent 75%);
}

/* green bloom behind the card */
.login-glow {
  position: fixed; width: 580px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(66,188,0,0.18), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -60%);
  pointer-events: none; z-index: 1;
  filter: blur(30px);
}

/* card */
.login-center {
  position: relative; z-index: 2;
  width: 420px; max-width: calc(100vw - 32px);
}
.login-card {
  background: linear-gradient(180deg, rgba(36,36,36,0.96), rgba(26,26,26,0.97));
  border: 1px solid #3f3f3f; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  padding: 40px 38px 34px;
}
.login-head { text-align: center; margin-bottom: 30px; }
.login-head .sq-brand { justify-content: center; margin-bottom: 16px; }
.login-head .sq-mark { width: 38px; height: 38px; }
.login-head .sq-word { font-size: 30px; }
.login-head .tagline { color: var(--text-2); font-size: 15px; margin-top: 2px; }

/* error banner */
.login-error {
  background: rgba(255,68,68,0.12); border: 1px solid rgba(255,68,68,0.4);
  border-radius: 8px; padding: 11px 14px; margin-bottom: 20px;
  color: var(--red); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}

/* custom checkbox */
.check-wrap {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 6px; cursor: pointer; user-select: none;
}
.check-wrap input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.check-box {
  width: 18px; height: 18px; flex-shrink: 0; border-radius: 4px;
  border: 1.5px solid #555; background: rgba(255,255,255,0.04);
  display: grid; place-items: center;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.check-box::after {
  content: '';
  width: 10px; height: 6px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translateY(-1px);
  transition: border-color .14s ease;
}
.check-wrap input:checked ~ .check-box {
  border-color: var(--green);
  background: rgba(66,188,0,0.14);
  box-shadow: 0 0 10px rgba(66,188,0,0.45);
}
.check-wrap input:checked ~ .check-box::after {
  border-color: var(--green);
}
.check-wrap:hover .check-box {
  border-color: var(--green);
}
.check-label {
  color: var(--text-2); font-size: 14px; line-height: 1;
}

/* footer */
.login-foot {
  margin-top: 26px; text-align: center; font-size: 12px; color: var(--text-dis);
  display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
}

/* back link */
.login-back {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 16px;
  font-family: var(--ff-display); font-weight: 700; font-size: 10.5px;
  letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
  color: var(--text-dis);
  transition: color .15s ease;
}
.login-back:hover { color: var(--green); }

/* corner tagline */
.login-corner {
  position: fixed; bottom: 22px; left: 0; right: 0; text-align: center;
  font-size: 11px; color: rgba(240,240,240,0.3); letter-spacing: 2px;
  font-family: var(--ff-display); font-weight: 500; text-transform: uppercase;
  pointer-events: none; z-index: 3;
}
