/* =========================================================
   SIGNIN.CSS — RedGround Sign In / Forgot / Register page
   prefix: si-
   ========================================================= */

/* ── Override layout for full-height split ────────────────────────── */
body:has(.si-wrap) main {
  padding: 0;
}

/* ── Root wrapper ─────────────────────────────────────────────────── */
.si-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 110px); /* subtract topbar + nav */
}

/* ── Left panel (dark brand side) ────────────────────────────────── */
.si-left {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* subtle grid texture */
.si-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* red left accent */
.si-left::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), transparent 80%);
}

.si-left-inner {
  position: relative;
  z-index: 2;
  padding: 52px 52px 48px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Logo */
.si-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 52px;
}
.si-logo-box {
  width: 30px;
  height: 30px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
}
.si-logo-text {
  font-family: "Instrument Serif", serif;
  font-size: 1.1rem;
  color: #fff;
}
.si-logo-text em {
  font-style: italic;
  color: var(--red);
}

/* Brand headline */
.si-brand {
  margin-bottom: 48px;
}
.si-brand-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.si-brand-tag .lbl {
  color: rgba(255,255,255,.35);
  font-size: .65rem;
}
.si-brand-h {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 12px;
}
.si-brand-h em {
  font-style: italic;
  color: var(--red);
}
.si-brand-p {
  font-size: .84rem;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  max-width: 340px;
  font-weight: 300;
}

/* Feature list */
.si-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.si-feat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  transition: background .2s, border-color .2s;
}
.si-feat:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
}
.si-feat-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  padding-top: 1px;
}
.si-feat-t {
  font-size: .81rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}
.si-feat-d {
  font-size: .73rem;
  color: rgba(255,255,255,.4);
  line-height: 1.5;
}

/* Nova pill */
.si-nova-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.1);
  padding: 6px 12px;
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-top: 32px;
  width: fit-content;
}
.si-nova-pill strong {
  color: var(--gold);
  font-style: normal;
}
.si-nova-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Right panel (form side) ─────────────────────────────────────── */
.si-right {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 48px;
}

.si-right-inner {
  width: 100%;
  max-width: 420px;
}

/* ── Panel: shared ────────────────────────────────────────────────── */
.si-panel {
  background: var(--white);
  border: 1.5px solid var(--rule);
  padding: 36px 32px;
  margin-bottom: 16px;
}

.si-panel-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.si-panel-tag .lbl {
  color: var(--ink-3);
  font-size: .65rem;
}

.si-panel-h {
  font-family: "Instrument Serif", serif;
  font-size: 1.75rem;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.1;
}

.si-panel-sub {
  font-size: .82rem;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: 24px;
  font-weight: 300;
}

/* ── Error box ────────────────────────────────────────────────────── */
.si-error {
  background: #fdf2f2;
  border: 1.5px solid rgba(192,39,45,.25);
  color: var(--red-dk);
  font-size: .8rem;
  padding: 10px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}
.si-error-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Info box ─────────────────────────────────────────────────────── */
.si-info-box {
  background: var(--bg);
  border: 1.5px solid var(--rule);
  padding: 14px 16px;
  margin-top: 20px;
}
.si-info-box p {
  font-size: .79rem;
  color: var(--ink-3);
  line-height: 1.65;
}
.si-info-box p strong {
  color: var(--ink);
}

/* ── Success icon ─────────────────────────────────────────────────── */
.si-success-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

/* ── Form fields ──────────────────────────────────────────────────── */
.si-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.si-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.si-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.si-label {
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.si-input {
  width: 100%;
  border: 1.5px solid var(--rule);
  background: var(--bg);
  padding: 11px 13px;
  font-family: "Geist", sans-serif;
  font-size: .87rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.si-input:focus {
  border-color: var(--red);
  background: var(--white);
}
.si-input::placeholder {
  color: #b0b4c0;
}
.si-input-err {
  border-color: var(--red) !important;
  background: #fdf2f2 !important;
}

/* Password toggle */
.si-pw-wrap {
  position: relative;
}
.si-pw-wrap .si-input {
  padding-right: 44px;
}
.si-pw-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: color .2s;
}
.si-pw-toggle:hover {
  color: var(--ink);
}
.si-eye {
  width: 16px;
  height: 16px;
}

/* Forgot link */
.si-forgot-link {
  font-size: .71rem;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .2s;
}
.si-forgot-link:hover {
  color: var(--red);
}

/* Submit button */
.si-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 13px;
  font-family: "Geist", sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  margin-top: 4px;
}
.si-submit:hover {
  background: var(--red-lt);
}

/* ── Divider ──────────────────────────────────────────────────────── */
.si-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--ink-3);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.si-divider::before,
.si-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── Alt actions (register / guest) ──────────────────────────────── */
.si-alt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.si-register-btn {
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule);
  padding: 12px;
  font-family: "Geist", sans-serif;
  font-size: .81rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: border-color .2s, background .2s;
}
.si-register-btn:hover {
  border-color: var(--ink);
  background: var(--bg);
}

.si-guest-link {
  font-size: .75rem;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .2s;
  text-align: center;
}
.si-guest-link:hover {
  color: var(--ink);
}

/* ── Back link ────────────────────────────────────────────────────── */
.si-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  color: var(--ink-3);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color .2s;
}
.si-back-link:hover {
  color: var(--red);
}

/* ── ToS note ─────────────────────────────────────────────────────── */
.si-tos {
  font-size: .68rem;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.65;
}
.si-tos a {
  color: var(--ink-3);
  text-decoration: underline;
  transition: color .2s;
}
.si-tos a:hover {
  color: var(--red);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .si-wrap {
    grid-template-columns: 1fr;
  }
  .si-left {
    display: none; /* hide on small screens — keep form focused */
  }
  .si-right {
    padding: 36px 20px;
    min-height: calc(100vh - 110px);
  }
}

@media (max-width: 480px) {
  .si-panel {
    padding: 28px 22px;
  }
  .si-right {
    padding: 24px 16px;
    align-items: flex-start;
    padding-top: 32px;
  }
}

/* ── Register form extras ─────────────────────────────────────────── */
.si-req { color: var(--red); font-weight: 700; margin-left: 2px; }
.si-opt { font-size: .65rem; color: var(--ink-3); font-weight: 400; text-transform: none; letter-spacing: 0; }

.si-field-err {
  font-size: .72rem;
  color: var(--red);
  margin-top: 4px;
  display: block;
  line-height: 1.4;
}
.si-field-err a { color: var(--red); }

/* Password strength bar */
.si-pw-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  min-height: 14px;
}
.si-pw-bar {
  flex: 1;
  height: 3px;
  background: var(--rule);
  overflow: hidden;
}
.si-pw-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width .3s, background .3s;
}
.si-pw-label {
  font-size: .67rem;
  letter-spacing: .06em;
  color: var(--ink-3);
  min-width: 48px;
  text-align: right;
}
