/* 14teenBuilding tenant portal styles. Plain CSS, mobile first. Brand colours match the website. */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
:root {
  --navy: #0f1b2d; --navy-2: #172a45; --gold: #c9a56a; --gold-dark: #836528;
  --ivory: #faf8f4; --sand: #f1ece3; --line: #e2dccf; --text: #22262e; --muted: #5d636e; --white: #fff;
  --ok: #1f6b45; --warn: #8a5a00; --bad: #a12626;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font-body); line-height: 1.6; color: var(--text); background: var(--ivory); }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; } .muted { color: var(--muted); } .right { text-align: right; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 1rem; }
.topbar { background: var(--navy); color: var(--white); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .15rem; color: var(--white); text-decoration: none; }
.brand img { display: block; width: min(172px, 38vw); height: auto; max-height: 42px; object-fit: contain; }
.brand small { color: var(--gold); font-family: var(--font-body); font-size: .76rem; line-height: 1.2; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: 0 0 0 auto; padding: 0; list-style: none; align-items: center; }
.nav a, .nav button { color: #e8e4da; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: .3rem 0; }
.nav a:hover, .nav button:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--white); border-bottom: 2px solid var(--gold); }
main { padding: 1.5rem 0 3rem; }
.card, .panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; margin-bottom: 1.25rem; }
.card.narrow, .panel.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
body.bare { background: var(--sand); }
body.bare main { padding-top: 2.5rem; }
.bare-brand { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin-bottom: 1rem; font-family: var(--font-display); color: var(--navy); }
.bare-brand img { display: block; width: min(240px, 70vw); height: auto; max-height: 72px; object-fit: contain; }
body.bare:not(.bare-auth) { min-height: 100vh; display: flex; flex-direction: column; padding: clamp(1.2rem, 4vw, 2.6rem) 1rem;
  background: radial-gradient(120% 80% at 15% 8%, #1a3040 0%, var(--navy) 55%, #08111d 100%); }
body.bare:not(.bare-auth) .wrap { width: 100%; max-width: 520px; margin: auto; padding: 0; }
body.bare:not(.bare-auth) .bare-brand { color: var(--white); margin-bottom: 1.5rem; }
body.bare:not(.bare-auth) .bare-brand img { width: min(228px, 72vw); }
body.bare:not(.bare-auth) .card, body.bare:not(.bare-auth) .panel { position: relative; overflow: hidden; margin-bottom: 0;
  padding: clamp(1.4rem, 4.5vw, 2rem); border-radius: 18px; border-color: rgba(255,255,255,.55);
  box-shadow: 0 40px 90px rgba(3,9,18,.55); }
body.bare:not(.bare-auth) .card::before, body.bare:not(.bare-auth) .panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), #e2c390, var(--gold)); }
body.bare:not(.bare-auth) h1 { font-size: clamp(1.65rem, 5vw, 2rem); }
body.bare:not(.bare-auth) .form .field { margin-bottom: 1rem; }
body.bare:not(.bare-auth) .btn { width: 100%; min-height: 46px; border-radius: 9px; margin-top: .25rem; }
body.bare:not(.bare-auth) .alert { margin-bottom: 1rem; }
.checklist-intro { margin: 0 0 1.4rem; }
.checklist-intro h1 { margin-bottom: .35rem; }
.checklist-intro .lead { margin: 0 0 .6rem; font-size: 1.02rem; color: var(--navy); }
.checklist-intro .alert { margin: 1rem 0 0; }
.checklist-form fieldset { min-width: 0; margin: 0 0 1rem; padding: clamp(1rem, 2.4vw, 1.35rem) clamp(1rem, 2.6vw, 1.5rem) clamp(1.1rem, 2.6vw, 1.45rem); border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 2px 12px rgba(9, 22, 42, .045); }
.checklist-form legend { padding: 0 .35rem; font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; color: var(--navy); }
.checklist-form legend .step { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-right: .5rem; border-radius: 50%; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #0b1524; font: 700 .82rem/1 var(--font-body); vertical-align: middle; }
.checklist-form .required-note { margin-left: .35rem; font: 600 .78rem var(--font-body); color: var(--muted); }
.checklist-form .field { margin-bottom: .95rem; }
.checklist-form .field > label, .checklist-form .field-label { display: block; margin-bottom: .32rem; font-size: .88rem; font-weight: 650; color: var(--navy); }
.checklist-form label:has(+ :required)::after, .checklist-form label:has(+ .input-money > :required)::after { content: " *"; color: #b42318; font-weight: 700; }
.checklist-form input[type="text"], .checklist-form input[type="email"], .checklist-form input[type="tel"], .checklist-form input[type="password"], .checklist-form input[type="number"], .checklist-form input[type="date"], .checklist-form input[type="search"], .checklist-form select, .checklist-form textarea { width: 100%; min-height: 44px; padding: .6rem .72rem; border: 1px solid #d3dae2; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.checklist-form select { padding-right: 2rem; }
.checklist-form textarea { min-height: 112px; resize: vertical; }
.checklist-form input:focus, .checklist-form select:focus, .checklist-form textarea:focus { border-color: var(--navy); outline: 0; box-shadow: 0 0 0 3px rgba(15, 27, 45, .12); }
.checklist-form .hint { margin: .3rem 0 0; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.checklist-form .field-error { margin: .3rem 0 0; font-size: .8rem; font-weight: 600; color: #b42318; }
.checklist-form .input-money { display: flex; align-items: stretch; border: 1px solid #d3dae2; border-radius: 9px; background: #fff; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.checklist-form .input-money > span { display: inline-flex; align-items: center; padding: 0 .65rem; border-right: 1px solid var(--line); background: var(--ivory); color: var(--muted); font-weight: 650; font-size: .9rem; }
.checklist-form .input-money input { min-height: 42px; border: 0; border-radius: 0; box-shadow: none; }
.checklist-form .input-money:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 27, 45, .12); }
.checklist-form .check-grid { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: .45rem; }
.checklist-form .check-grid .check { padding: .55rem .65rem; border: 1px solid #dde2e8; border-radius: 9px; background: #fcfcfa; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.checklist-form .check-grid .check:hover { border-color: #b9c3cf; }
.checklist-form .check-grid .check:has(input:checked) { border-color: var(--navy); background: #f1f5f9; box-shadow: inset 0 0 0 1px var(--navy); }
.checklist-form .check input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--navy); }
.checklist-form h3 { margin: 1.15rem 0 .55rem; font-size: 1rem; color: var(--navy); }
.checklist-form .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.checklist-form .form-actions .btn { min-height: 46px; }
.checklist-profile, .prospect-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem 1rem; margin: 0 0 1rem; }
.checklist-profile > div, .prospect-detail-grid > div { min-width: 0; padding: .7rem .8rem; border-radius: 8px; background: var(--ivory); overflow-wrap: anywhere; }
.checklist-profile strong { display: block; }
.field-label, .prospect-detail-grid dt { display: block; margin-bottom: .25rem; font-size: .86rem; font-weight: 650; color: var(--navy); }
.prospect-detail-grid { margin: 0; }
.prospect-detail-grid dt { margin: 0 0 .25rem; }
.prospect-detail-grid dd { margin: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .35rem .9rem; }
.checklist-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0 1rem; }
.checklist-form .compact-field { max-width: 360px; margin-top: .7rem; }
.prospect-checklist-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.prospect-checklist-link h2, .prospect-checklist-link p { margin-bottom: .25rem; }
.staff-qualification-grid { margin-bottom: 1rem; }
.grid { display: grid; gap: 1rem; } .grid-3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.field { margin-bottom: .7rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0 1rem; }
.inline { display: inline; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .9rem; margin: 0 0 1rem; }
.dl dt { font-weight: 600; color: var(--navy); } .dl dd { margin: 0; }
.list { padding-left: 1.1rem; margin: .25rem 0 1rem; }
details > summary { cursor: pointer; font-weight: 600; color: var(--navy); margin: .5rem 0; }
.alert-warn { background: #fdf1e3; border-color: #e3b98a; color: #6b3c08; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); }
.btn { display: inline-block; background: var(--navy); color: var(--white); border: 0; border-radius: 8px; padding: .65rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--navy-2); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); } .btn-gold:hover { background: #d8b87f; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); } .btn-ghost:hover { background: var(--sand); color: var(--navy); }
.btn-danger { background: var(--bad); } .btn-danger:hover { background: #861f1f; }
.btn-sm { padding: .35rem .7rem; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.form .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .25rem; }
input[type=text], input[type=search], input[type=number], input[type=email], input[type=password], input[type=tel], input[type=date], select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid #b9b2a2; border-radius: 8px; font: inherit; background: var(--white); color: var(--text); }
textarea { min-height: 7rem; resize: vertical; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.check input { width: auto; }
.hint { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.field-error { color: var(--bad); font-size: .9rem; margin: .25rem 0 0; font-weight: 600; }
.info-list { list-style: none; margin: .35rem 0 1rem; padding: 0; display: grid; gap: .35rem; }
.info-list li { position: relative; padding-left: 1.5rem; color: var(--bad); font-weight: 600; transition: color .15s ease; }
.info-list li::before { content: "\25CF"; position: absolute; left: .15rem; top: 0; color: currentColor; }
.info-list li.is-done { color: var(--ok); }
.info-list li.is-done::before { content: "\2713"; font-weight: 700; }
.alert { border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; border: 1px solid; }
.alert-success { background: #e8f4ed; border-color: #a7d3b9; color: #174d33; }
.alert-error { background: #fbeaea; border-color: #e3aaaa; color: #7d1d1d; }
.alert-info { background: #fff6e0; border-color: #e6cf94; color: #5c4200; }
.linkbox { word-break: break-all; background: var(--sand); border: 1px dashed var(--gold-dark); padding: .6rem .8rem; border-radius: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--sand); color: var(--navy); border: 1px solid var(--line); white-space: nowrap; }
.badge-submitted { background: #fff6e0; color: #5c4200; border-color: #e6cf94; }
.badge-acknowledged, .badge-in_progress { background: #e6eefb; color: #17376d; border-color: #b4c8ee; }
.badge-resolved, .badge-closed, .badge-active { background: #e8f4ed; color: #174d33; border-color: #a7d3b9; }
.badge-cancelled, .badge-disabled { background: #eee; color: #444; border-color: #ccc; }
.badge-urgent { background: #fbeaea; color: #7d1d1d; border-color: #e3aaaa; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 3px solid var(--gold); padding: .1rem 0 1rem 1rem; margin-left: .3rem; }
.timeline li.internal { border-left-color: #999; background: #f6f6f6; }
.timeline .who { font-weight: 600; } .timeline .when { color: var(--muted); font-size: .85rem; }
.timeline .note { white-space: pre-wrap; margin: .25rem 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 50; }
.skip-link:focus { left: 0; }
@media (max-width: 640px) { .nav { margin-left: 0; width: 100%; } th.hide-sm, td.hide-sm { display: none; } }
.mt { margin-top: 1rem; } .mb { margin-bottom: 1.25rem; } .pre { white-space: pre-wrap; } .filters.nomargin { margin: 0; }
.photos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.photos li { width: 160px; }
.photos img { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--sand); }
@media print { .topbar, .no-print, .skip-link, .alert { display: none !important; } body { background: #fff; } .card { border: 0; } }

/* Applications */
.badge-app-submitted, .badge-app-under_review { background: #e6eefb; color: #17376d; border-color: #b4c8ee; }
.badge-app-more_info_requested { background: #fff6e0; color: #5c4200; border-color: #e6cf94; }
.badge-app-approved, .badge-app-offer_issued, .badge-app-offer_accepted, .badge-app-converted { background: #e8f4ed; color: #174d33; border-color: #a7d3b9; }
.badge-app-declined, .badge-app-offer_declined, .badge-app-withdrawn { background: #eee; color: #444; border-color: #ccc; }

/* Bulk property editor */
.bulk-table { min-width: 1180px; }
.bulk-table th { background: var(--white); position: sticky; top: 0; z-index: 1; }
.bulk-table td:first-child { min-width: 10.5rem; }
.bulk-table input[type=text], .bulk-table input[type=number], .bulk-table select { min-width: 6.5rem; padding: .45rem .5rem; }
.bulk-table input.rent { min-width: 8.5rem; }
.bulk-table tr.has-error td { background: #fff7f7; }

/* Property units */
.badge-available { background: #e8f4ed; color: #174d33; border-color: #a7d3b9; }
.badge-occupied { background: #e6eefb; color: #17376d; border-color: #b4c8ee; }
.badge-reserved { background: #fff6e0; color: #5c4200; border-color: #e6cf94; }
.badge-maintenance { background: #fbeaea; color: #7d1d1d; border-color: #e3aaaa; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .4rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.stat { min-width: 0; overflow-wrap: anywhere; } .grid > * { min-width: 0; }
@media (max-width: 420px) { .grid-3 { grid-template-columns: 1fr; } }

/* Staff property cards */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.prop-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 27, 45, .06); }
.prop-thumb { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.prop-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prop-mono { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; letter-spacing: .08em; color: rgba(255, 255, 255, .5); }
.prop-thumb > .badge { position: absolute; top: .6rem; left: .6rem; }
.prop-thumb > .prop-archived { left: auto; right: .6rem; }
.prop-body { display: flex; flex-direction: column; gap: .3rem; padding: .85rem .95rem 1rem; }
.prop-code { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prop-name { margin: 0; font-size: 1.12rem; }
.prop-name a { color: var(--navy); text-decoration: none; }
.prop-name a:hover { color: var(--gold-dark); text-decoration: underline; }
.prop-meta { margin: 0; line-height: 1.45; }
.prop-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .3rem 0; padding: .55rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prop-stats dt { margin: 0; font-size: .67rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.prop-stats dd { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.prop-photo-note { margin: 0; font-size: .82rem; color: var(--muted); }
.prop-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .45rem; }
.link-plain { font-size: .88rem; font-weight: 600; }

/* Website link strip on property and unit edit screens */
.web-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.web-strip > p { margin: 0; flex: 1 1 15rem; }
.web-strip .actions { margin: 0; flex: 1 1 auto; }
.web-thumb img { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--sand); }
@media (max-width: 640px) { .prop-grid { grid-template-columns: 1fr; } }

/* Tenant and applicant access pages */
body.bare-auth { position: relative; min-height: 100vh; isolation: isolate; background: #0b1626 url('../img/estate-street.jpg') center / cover no-repeat fixed; }
/* Navy veil over the estate photograph: dark enough for AA text contrast, light enough to read the architecture. */
body.bare-auth::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(1200px 720px at 18% 18%, rgba(35,62,98,.42), transparent 62%), linear-gradient(115deg, rgba(7,15,26,.95) 0%, rgba(10,22,38,.8) 50%, rgba(7,15,26,.92) 100%); }
/* Oversized building watermark anchored to the page, not the card, so it moves visually with the background. */
body.bare-auth::after { content: ""; position: fixed; right: -3vw; bottom: -10vh; width: min(74vw, 980px); height: min(84vh, 900px); z-index: -1; pointer-events: none; opacity: .12; filter: grayscale(1) contrast(1.05); background: url('../img/building-day.jpg') center bottom / contain no-repeat; -webkit-mask-image: linear-gradient(to top, #000 18%, transparent 92%); mask-image: linear-gradient(to top, #000 18%, transparent 92%); }
body.bare-auth main.auth-wrap { position: relative; z-index: 1; width: 100%; max-width: 1160px; padding: clamp(.9rem, 3vw, 2.5rem); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(430px, .94fr); min-height: min(820px, calc(100vh - 5rem)); overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 40px 110px rgba(3,9,18,.5); }
.auth-visual { position: relative; min-height: 660px; overflow: hidden; background: var(--navy); color: var(--white); }
.auth-visual-image, .auth-visual-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-visual-image { object-fit: cover; object-position: center; }
.auth-visual-shade { background: linear-gradient(180deg, rgba(9,22,24,.1) 12%, rgba(9,22,24,.26) 44%, rgba(8,20,22,.86) 100%); }
.auth-visual-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: clamp(1.6rem, 4vw, 3.5rem); }
.auth-visual-brand { position: absolute; top: clamp(1.5rem, 3vw, 2.5rem); left: clamp(1.5rem, 3vw, 2.5rem); display: inline-flex; padding: .45rem .6rem; border-radius: 10px; background: rgba(15,27,45,.24); backdrop-filter: blur(4px); }
.auth-visual-brand img { display: block; width: min(205px, 42vw); height: auto; }
.auth-photo-eyebrow, .auth-eyebrow { margin: 0 0 .7rem; color: var(--gold-dark); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.auth-photo-eyebrow { color: #f0d9ad; }
.auth-visual-copy h2 { max-width: 520px; margin: 0 0 .8rem; color: var(--white); font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; }
.auth-visual-copy > p:not(.auth-photo-eyebrow) { max-width: 430px; margin: 0; color: rgba(255,255,255,.9); font-size: 1.02rem; }
.auth-photo-mark { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem; color: rgba(255,255,255,.86); font-size: .82rem; }
.auth-photo-mark span { color: #f0d9ad; }
.auth-panel { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(2rem, 4.4vw, 4rem); background: rgba(253,252,249,.72); }
/* Faint second building watermark directly behind the form fields. */
.auth-panel::before { content: ""; position: absolute; right: -8%; bottom: -12%; width: min(78%, 520px); height: 86%; pointer-events: none; opacity: .055; filter: grayscale(1); background: url('../img/building-day.jpg') right bottom / contain no-repeat; }
.auth-panel > * { position: relative; z-index: 1; }
.auth-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .1rem; align-self: flex-start; margin-bottom: 1.9rem; text-decoration: none; }
.auth-brand img { display: block; width: min(190px, 52vw); height: auto; max-height: 56px; object-fit: contain; }
.auth-brand span { padding-left: .1rem; color: var(--gold-dark); font: 800 .68rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; }
.auth-form-head { max-width: 500px; margin: 0 auto 1.5rem; width: 100%; }
.auth-form-head h1 { margin-bottom: .55rem; font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.025em; }
.auth-form-head > p:last-child { margin: 0; color: var(--muted); }
.auth-form-content { width: 100%; max-width: 500px; margin: 0 auto; }
.auth-form .field { margin-bottom: 1rem; }
.auth-form label { margin-bottom: .35rem; color: var(--navy); font-size: .92rem; }
.auth-form input[type=text], .auth-form input[type=email], .auth-form input[type=password], .auth-form input[type=tel] { min-height: 51px; border-color: #d7d3ca; border-radius: 9px; background: #fdfcf9; }
.auth-form input:focus { border-color: var(--gold-dark); outline-color: var(--gold); }
.auth-forgot { margin: -.35rem 0 1.15rem; text-align: right; font-size: .9rem; }
.auth-forgot a, .auth-switch a { font-weight: 700; }
.auth-submit { display: flex; width: 100%; min-height: 52px; justify-content: center; align-items: center; gap: .6rem; border-radius: 9px; background: var(--navy); }
.auth-submit span { color: #e5c88f; font-size: 1.2rem; }
.auth-switch { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.auth-switch p { margin: 0 0 .55rem; }
.auth-switch p:last-child { margin-bottom: 0; }
.auth-privacy-note { margin: -.15rem 0 1rem; padding: .7rem .8rem; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: #f7f4ed; color: #555b63; font-size: .84rem; }
.auth-footer { width: 100%; max-width: 500px; margin: 1.5rem auto 0; color: #737985; font-size: .78rem; }
.auth-form-content .alert { margin-bottom: 1rem; }
@media (max-width: 900px) {
  body.bare-auth main.auth-wrap { max-width: 720px; }
  .auth-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-visual { min-height: 320px; }
  .auth-visual-copy { padding: 1.6rem 1.8rem; }
  .auth-visual-copy h2 { max-width: 500px; font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .auth-visual-copy > p:not(.auth-photo-eyebrow) { max-width: 540px; }
  .auth-photo-mark { margin-top: 1rem; }
  .auth-panel { padding: clamp(1.5rem, 6vw, 3rem); }
  body.bare-auth::after { width: 120vw; height: 60vh; right: -30vw; bottom: -12vh; opacity: .08; }
}
@media (max-width: 480px) {
  body.bare-auth main.auth-wrap { padding: .5rem; }
  .auth-grid { border-radius: 14px; }
  .auth-visual { min-height: 245px; }
  .auth-visual-copy { padding: 1.2rem; }
  .auth-visual-brand { top: 1rem; left: 1rem; }
  .auth-visual-brand img { width: 155px; }
  .auth-visual-copy h2 { max-width: 350px; font-size: 1.8rem; }
  .auth-visual-copy > p:not(.auth-photo-eyebrow) { font-size: .9rem; }
  .auth-photo-mark { font-size: .75rem; }
  .auth-brand { margin-bottom: 1.35rem; }
  .auth-brand img { width: 165px; }
  .auth-panel { padding: 1.4rem 1.1rem 1.6rem; }
  .auth-form-head h1 { font-size: 2rem; }
}
.system-print-stamp{display:none}
@media print{.topbar,.no-print{display:none!important}body{background:#fff!important;color:#111!important}.wrap{max-width:none!important;padding:0!important}.system-print-stamp{display:block;position:fixed;right:0;bottom:0;margin:0;padding:.35rem .5rem;color:#555;background:#fff;border-top:1px solid #bbb;font:9pt Arial,sans-serif}}
