:root {
  --paper: var(--brand-bg, #f5efdc);
  --white: var(--brand-light, #fdfaf0);
  --green: var(--brand-ink, #0f2a26);
  --ink: var(--brand-ink, #0f2a26);
  --muted: #53645d;
  --line: var(--brand-line, rgba(15, 42, 38, .18));
  --gold: var(--brand-brass, #e0b450);
  --sans: var(--font-sans, Inter, sans-serif);
  --serif: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 var(--sans); }
[hidden] { display: none !important; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .6; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.035em; }
h1 { font-size: clamp(48px, 5.2vw, 80px); }
h2 { font-size: clamp(36px, 3.2vw, 48px); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 5; background: var(--white); padding: 12px; }
.skip-link:focus { top: 14px; }
.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(340px, .95fr) minmax(420px, 1.05fr); }
.welcome {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--white);
  padding: 34px clamp(32px, 5vw, 84px) 30px;
  display: flex; flex-direction: column;
}
.welcome::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,42,38,.76), rgba(15,42,38,.7) 48%, rgba(15,42,38,.94)), url('/brand/masseria-hero.jpeg') center / cover;
}
.brand { display: flex; align-items: center; }
.brand img { width: 160px; height: 160px; object-fit: contain; display: block; }
.welcome-copy { margin-top: clamp(34px, 7vh, 90px); position: relative; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .2em; color: var(--muted); margin-bottom: 20px; }
.welcome .eyebrow { color: var(--gold); }
.welcome-copy > p:last-child { font-size: 14px; line-height: 1.9; margin-top: 26px; max-width: 380px; color: #ede8d7; }
.heritage-note { padding-top: 40px; font: 23px/1.4 var(--serif); color: #eee4ca; max-width: 310px; }
.welcome-footer { font-size: 10px; color: #dfdfcf; letter-spacing: .08em; margin-top: auto; padding-top: 55px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 64px 44px; }
.auth-card { width: 100%; max-width: 420px; min-width: 0; }
.description { font-size: 14px; color: var(--muted); line-height: 1.8; margin-top: 20px; margin-bottom: 32px; }
.field { margin-bottom: 22px; }
label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
input { background: var(--white); border: 1px solid #aab4a8; border-radius: 4px; color: var(--ink); padding: 13px 14px; width: 100%; min-width: 0; min-height: 50px; font-size: 16px; }
input:focus { border-color: var(--ink); }
.password-field { position: relative; }
.password-field input { padding-right: 88px; }
.password-toggle { position: absolute; top: 3px; right: 3px; bottom: 3px; background: transparent; border: 0; border-radius: 2px; color: var(--ink); min-width: 76px; min-height: 44px; padding: 7px; font-size: 11px; font-weight: 600; }
.password-toggle:hover { background: #ebe2c5; }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.primary-button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 50px; background: var(--gold); border: 1px solid var(--gold); border-radius: 4px; color: var(--ink); padding: 14px 18px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-decoration: none; margin-top: 29px; transition: background .15s; }
.primary-button:hover { background: #edc674; border-color: #edc674; }
.primary-button > span:last-child { font-size: 20px; font-weight: 400; }
.secondary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 17px; background: transparent; border: 1px solid #aab4a8; border-radius: 4px; font-size: 12px; text-decoration: none; color: var(--ink); margin-top: 16px; }
.secondary-button:hover { background: #ebe2c5; }
.help-note, .closed-note { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 24px; }
.privacy-note { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 23px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.error-message { background: #f9eae0; border: 1px solid #dcb19c; color: #7d3529; border-radius: 4px; padding: 13px 15px; font-size: 12px; line-height: 1.7; margin-bottom: 22px; overflow-wrap: anywhere; }
.loading-message { color: var(--muted); font-size: 13px; padding: 13px 0; }
.success-mark { display: grid; place-items: center; width: 57px; height: 57px; background: #e2e8d3; color: var(--green); border-radius: 50%; font-size: 26px; margin-bottom: 25px; }
@media (max-width: 1000px) {
  .auth-layout { grid-template-columns: minmax(290px, .9fr) minmax(380px, 1.1fr); }
  .welcome { padding: 28px 30px; }
  .brand img { width: 138px; height: 138px; }
  .auth-panel { padding: 48px 30px; }
  .welcome-copy { margin-top: 45px; }
  .heritage-note { font-size: 22px; }
}
@media (max-width: 760px) {
  .auth-layout { display: block; min-height: 100dvh; }
  .welcome { padding: 12px 24px; min-height: 116px; }
  .welcome::before { background-position: center 42%; }
  .brand img { width: 100px; height: 100px; }
  .welcome-copy, .heritage-note, .welcome-footer { display: none; }
  .auth-panel { padding: 36px 24px 40px; align-items: flex-start; }
  .auth-card { max-width: 440px; }
  h2 { font-size: 40px; }
  .eyebrow { font-size: 9px; letter-spacing: .16em; margin-bottom: 15px; }
  .description { margin-top: 17px; margin-bottom: 27px; }
  .field { margin-bottom: 21px; }
  .primary-button { margin-top: 26px; }
  .privacy-note { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
