/* =========================================================
   Sign-in page — Masscoms Signage
   Self-contained; mirrors the app's dark token palette.
   ========================================================= */
:root {
  --bg: #080b11;
  --text: #e8edf6;
  --muted: #8a93a6;
  --faint: #5c6576;
  --card: rgba(255, 255, 255, .022);
  --card-bd: rgba(255, 255, 255, .07);
  --input: #0c111b;
  --input-bd: rgba(255, 255, 255, .09);
  --blue: #3b82f6;
  --blue-d: #2f6be0;
  --rad: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1150px 780px at -6% -12%, rgba(43, 103, 229, .34), rgba(43, 103, 229, 0) 56%),
    radial-gradient(820px 620px at 2% 104%, rgba(30, 58, 138, .20), rgba(30, 58, 138, 0) 55%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }

/* ---- two-pane shell ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 980px) {
  .auth { grid-template-columns: minmax(0, 1fr) clamp(360px, 30vw, 520px); }
}

/* ---- left: sign-in column ---- */
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-col { width: 100%; max-width: 460px; }

.logo { display: flex; align-items: center; justify-content: center; gap: 11px; }
.logo-mark { font-size: 24px; color: #fff; display: inline-flex; }
.logo-word { font-size: 23px; letter-spacing: .01em; color: #c7d0de; }
.logo-word b { font-weight: 700; color: #fff; }
.logo-sub {
  text-align: center; margin-top: 9px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint);
}

/* ---- card ---- */
.auth-card {
  margin-top: 30px;
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: 16px;
  padding: 32px;
}
.auth-card h1 { margin: 0; font-size: 26px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.lead { margin: 7px 0 26px; font-size: 15px; color: var(--muted); }

/* ---- fields ---- */
.field-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.auth-card > .field-label { display: block; margin-bottom: 9px; }   /* standalone email label */
.field-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }

.field { position: relative; }
.field + .field-row, .field + .field { margin-top: 22px; }
.field > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--faint); pointer-events: none; }
.field input {
  width: 100%; height: 52px;
  background: var(--input); border: 1px solid var(--input-bd); border-radius: var(--rad);
  color: var(--text); font-family: inherit; font-size: 15px;
  padding: 0 44px;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 100px var(--input) inset; caret-color: var(--text); }

.reveal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--faint); cursor: pointer; border-radius: 8px;
}
.reveal:hover { color: var(--muted); }
.reveal i { font-size: 19px; }

.link-forgot { color: var(--blue); font-size: 13px; font-weight: 500; }
.link-forgot:hover { color: var(--blue-d); }

/* ---- primary button ---- */
.btn-primary {
  width: 100%; height: 52px; margin-top: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(180deg, #4288f7, var(--blue)); color: #fff;
  border: 0; border-radius: var(--rad); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .36), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { background: linear-gradient(180deg, #3b82f6, var(--blue-d)); }
.btn-primary:disabled { opacity: .7; cursor: default; }
.btn-primary i { font-size: 18px; }

/* ---- error ---- */
.error { margin: 14px 0 0; color: #f08a89; font-size: 13px; text-align: center; }

/* ---- divider ---- */
.or { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.or::before, .or::after { content: ""; height: 1px; flex: 1; background: var(--card-bd); }
.or span { font-size: 12px; font-weight: 600; color: var(--faint); }

/* ---- oauth (visual only) ---- */
.oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-oauth {
  height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--input); border: 1px solid var(--input-bd); border-radius: var(--rad);
  color: #d3dae6; font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: not-allowed; opacity: .82;
}
.btn-oauth svg { display: block; }

/* ---- contact ---- */
.contact { display: block; text-align: center; margin-top: 26px; font-size: 13px; color: var(--faint); }
.contact:hover { color: var(--muted); }

/* =========================================================
   right: marketing panel
   ========================================================= */
.auth-aside { position: relative; display: none; border-left: 1px solid rgba(255, 255, 255, .06); }
@media (min-width: 980px) { .auth-aside { display: grid; place-items: center; } }

.auth-aside::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(130% 90% at 78% 18%, #000 5%, transparent 72%);
  mask-image: radial-gradient(130% 90% at 78% 18%, #000 5%, transparent 72%);
}
.aside-inner { position: relative; width: 100%; max-width: 430px; padding: 0 56px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 99px;
  background: rgba(37, 99, 235, .10); border: 1px solid rgba(59, 130, 246, .35);
  color: #6ea0f5; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #6ea0f5; }

.auth-aside h2 { margin: 26px 0 0; font-size: 34px; line-height: 1.16; font-weight: 700; color: #fff; letter-spacing: -.015em; }
.aside-lead { margin: 20px 0 0; font-size: 16px; line-height: 1.65; color: var(--muted); }

.feats { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.feats li { display: flex; align-items: center; gap: 15px; font-size: 16px; color: #d7dde8; }
.feat-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.ic-blue { background: rgba(59, 130, 246, .14); color: #6ea0f5; }
.ic-amber { background: rgba(245, 158, 11, .15); color: #f5b13c; }
.ic-green { background: rgba(34, 197, 94, .14); color: #4ade80; }
.ic-violet { background: rgba(139, 121, 246, .15); color: #a99bf7; }
