/* Sign-in page, after proptech-admin-console-v2/login.html (2026-09-19).
 *
 * The design is a single inline file; the CSP is style-src 'self', so its
 * <style> block lives here instead. Kept only what the page uses: the fake
 * production snapshot, MFA step, pending-approval card and toasts are gone
 * (nothing on the server backs them).
 */
:root {
  --ink-950: #07111f;
  --ink-900: #0d1a2b;
  --ink-800: #16263b;
  --ink-700: #2b405b;
  --ink-600: #506783;
  --ink-500: #6f8198;
  --ink-300: #b7c2cf;
  --ink-200: #d5dce5;
  --ink-100: #e9edf2;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --blue-700: #075bc7;
  --blue-600: #126be0;
  --red-700: #b42318;
  --red-100: #fee4e2;
  --focus: rgba(18, 107, 224, 0.16);
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-900);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { border: 0; }

/* ---- layout ---- */

.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 0.88fr) minmax(560px, 1.12fr);
  min-height: 100vh;
}

/* ---- brand panel ---- */

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  padding: 34px 42px 36px;
  background: var(--ink-900);
  color: #ffffff;
}

.brand-panel::after {
  position: absolute;
  right: -180px;
  bottom: -140px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(141, 182, 233, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(141, 182, 233, 0.025), 0 0 0 180px rgba(141, 182, 233, 0.018);
  content: "";
}

.brand-lockup {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.brand-logo { display: block; height: 34px; }

.brand-product {
  margin-top: 2px;
  color: #91b7e7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  flex: 1;
  max-width: 560px;
  padding: 72px 0 48px;
}

.eyebrow {
  color: #70a9ed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.brand-title {
  max-width: 520px;
  margin: 14px 0 0;
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.brand-copy {
  max-width: 480px;
  margin: 20px 0 0;
  color: #b9c8dc;
  font-size: 14px;
  line-height: 1.7;
}

/* The three sites this sign-in opens. Takes the place of the design's
 * "production snapshot", whose numbers were made up. */
.site-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 520px;
  margin: 36px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(185, 200, 220, 0.16);
  border-radius: 10px;
  background: rgba(185, 200, 220, 0.13);
  list-style: none;
}

.site-cell {
  min-height: 86px;
  padding: 14px 16px;
  background: rgba(13, 31, 53, 0.92);
}

.site-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.site-copy {
  margin-top: 6px;
  color: #8297b1;
  font-size: 11px;
  line-height: 1.45;
}

.brand-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #7f93ad;
  font-size: 11px;
}

/* ---- auth panel ---- */

.auth-panel {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--surface);
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 70px;
  padding: 0 34px;
  border-bottom: 1px solid var(--ink-100);
}

.support-link {
  padding: 4px 0;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.support-link:hover { text-decoration: underline; }

.auth-stage {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 48px 54px 32px;
}

.auth-card { width: min(100%, 430px); }

.auth-heading {
  margin: 0;
  color: var(--ink-950);
  font-size: 30px;
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.auth-subtitle {
  margin: 10px 0 24px;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.55;
}

.msg {
  margin: 0 0 16px;
  padding: 11px 12px;
  border: 1px solid #f5c2bd;
  border-radius: 6px;
  background: var(--red-100);
  color: var(--red-700);
  font-size: 12px;
  line-height: 1.45;
}

.msg[hidden] { display: none; }

/* ---- form ---- */

.form-grid { display: grid; gap: 15px; }

.field { display: grid; gap: 6px; }

.field-label {
  color: var(--ink-800);
  font-size: 12px;
  font-weight: 700;
}

.input-wrap { position: relative; }

.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ink-300);
  border-radius: 6px;
  outline: 0;
  background: #ffffff;
  color: var(--ink-950);
  font-size: 14px;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}

.input::placeholder { color: #96a3b3; }

.input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--focus);
}

.password-input { padding-right: 58px; }

.show-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 5px;
  background: transparent;
  color: var(--blue-700);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.primary-button, .sso-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 100ms ease;
}

.primary-button {
  margin-top: 4px;
  background: var(--blue-600);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(18, 107, 224, 0.18);
}

.primary-button:hover { background: var(--blue-700); }

.primary-button:disabled { cursor: wait; opacity: 0.68; }

.sso-button {
  border: 1px solid var(--ink-300);
  background: #ffffff;
  color: var(--ink-900);
}

.sso-button:hover { border-color: #8d9caf; background: #fafbfc; }

.primary-button:active, .sso-button:active { transform: translateY(1px); }

.google-mark { display: inline-flex; }

.divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--ink-500);
  font-size: 11px;
}

.divider::before, .divider::after {
  height: 1px;
  background: var(--ink-200);
  content: "";
}

.hint {
  margin: 10px 2px 0;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.5;
}

/* ---- "Can't get in?" ---- */

.stuck {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-200);
  color: var(--ink-600);
  font-size: 12.5px;
  line-height: 1.55;
}

.stuck summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stuck summary::-webkit-details-marker { display: none; }
.stuck summary::before { content: "\25B8  "; }
.stuck[open] summary::before { content: "\25BE  "; }

.stuck p { margin: 10px 0 0; }
.stuck b { color: var(--ink-800); }

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

.auth-footer {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 34px;
  border-top: 1px solid var(--ink-100);
  color: var(--ink-500);
  font-size: 11px;
}

/* ---- breakpoints (same as the design) ---- */

@media (max-width: 980px) {
  /* The design had 340px + 480px = 820px here, which overflows sideways
   * between 781px and 819px. 300 + 460 = 760 stays inside. */
  .login-shell { grid-template-columns: minmax(300px, 0.78fr) minmax(460px, 1.22fr); }
  .brand-panel { padding: 28px 30px 30px; }
  .site-list { grid-template-columns: minmax(0, 1fr); }
  .site-cell { min-height: 60px; }
}

@media (max-width: 780px) {
  .login-shell { display: block; }
  .brand-panel { min-height: auto; padding: 18px 20px; }
  .brand-content, .brand-footer { display: none; }
  .auth-panel { min-height: calc(100vh - 74px); }
  .auth-topbar { min-height: 54px; padding: 0 18px; }
  .auth-stage { padding: 34px 22px 26px; place-items: start center; }
  .auth-footer { min-height: 54px; padding: 0 18px; }
}

@media (max-width: 480px) {
  .auth-stage { padding: 28px 18px 24px; }
  .auth-heading { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
