:root {
  --ink: #15271f;
  --green: #183a2d;
  --green-soft: #285543;
  --gold: #b87925;
  --cream: #f5f1e8;
  --muted: #69756f;
  --line: #dedfd8;
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(32px, 6vw, 76px); overflow: hidden; color: white; background: linear-gradient(145deg, rgba(18,48,36,.96), rgba(29,73,55,.9)), url("assets/makosha-hero.webp") center/cover; }
.login-story::after { content: ""; position: absolute; right: -18%; bottom: -26%; width: 420px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.login-brand { position: relative; z-index: 1; width: min(220px, 60%); padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.92); }
.login-brand img { display: block; width: 100%; height: auto; }
.login-story > div, .login-story ul { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.login-story h1 { max-width: 620px; margin: 0 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 5vw, 5.5rem); font-weight: 500; line-height: .98; }
.login-story p { max-width: 600px; margin: 0; color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.7; }
.login-story ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: rgba(255,255,255,.72); font-size: .82rem; }
.login-story li::before { content: "✓"; margin-right: 10px; color: #e7b968; }
.login-panel { display: grid; place-items: center; padding: clamp(24px, 6vw, 80px); background: #f7f5ef; }
.login-card { width: min(100%, 620px); padding: clamp(26px, 5vw, 52px); border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 24px 70px rgba(24,58,45,.1); }
.login-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 500; }
.login-intro { margin: 10px 0 26px; color: var(--muted); line-height: 1.6; }
.login-card label { display: grid; gap: 8px; margin-top: 16px; font-size: .78rem; font-weight: 800; }
.login-card input, .login-card select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); font: inherit; font-weight: 500; }
.login-card input:focus, .login-card select:focus { outline: 3px solid rgba(184,121,37,.17); border-color: var(--gold); }
.login-password-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.login-password-toggle { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: #f7f5ef; color: var(--green); font: inherit; font-size: .76rem; font-weight: 850; cursor: pointer; }
.login-password-toggle:hover { border-color: var(--gold); background: #fff9ee; }
.login-password-hint { color: var(--muted); font-size: .7rem; font-weight: 600; line-height: 1.45; }
.login-password-hint.warning { color: #a43c35; font-weight: 750; }
.demo-select { padding: 14px; border: 1px solid #ead8b8; border-radius: 14px; background: #fff9ee; }
.demo-select select { margin-top: 2px; }
.login-button { width: 100%; min-height: 50px; margin-top: 20px; border: 0; border-radius: 11px; background: var(--green); color: white; font: inherit; font-weight: 900; cursor: pointer; }
.login-button:hover { background: var(--green-soft); }
.login-button:disabled { opacity: .65; cursor: wait; }
.login-secondary { width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--green); font: inherit; font-weight: 800; cursor: pointer; }
.form-error { min-height: 20px; margin-top: 12px; color: #a43c35; font-size: .78rem; font-weight: 700; }
.demo-note { margin: 22px 0; padding: 13px; border-radius: 11px; background: #f3f5f1; color: var(--muted); font-size: .73rem; line-height: 1.55; }
.demo-note strong { color: var(--ink); }
.demo-note code { color: var(--ink); }
.back-link { color: var(--green); font-size: .78rem; font-weight: 800; }
@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: 360px; padding: 30px 24px; gap: 28px; }
  .login-story h1 { font-size: clamp(2.3rem, 11vw, 4.2rem); }
  .login-story ul { display: none; }
  .login-panel { padding: 20px 14px 40px; }
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1.45fr; gap: 6px; margin-bottom: 26px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #f3f5f1; }
.auth-tabs button { min-height: 42px; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: .74rem; font-weight: 850; cursor: pointer; }
.auth-tabs button.active { background: var(--white); color: var(--green); box-shadow: 0 4px 14px rgba(24,58,45,.1); }
.registration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.optional-field { color: var(--muted); font-size: .62rem; font-weight: 650; text-transform: lowercase; }
.registration-contract-note { margin: 2px 0 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--green) 7%, transparent); color: var(--muted); font-size: .7rem; line-height: 1.5; }
.registration-consent { grid-template-columns: auto minmax(0,1fr) !important; align-items: start; gap: 10px !important; margin-top: 20px !important; color: var(--muted); font-size: .7rem !important; font-weight: 600 !important; line-height: 1.55; }
.registration-consent input { width: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--green); }
.registration-consent a { color: var(--green); font-weight: 850; }
.registration-staff-note { margin: 12px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.registration-success { padding: 22px 0 10px; text-align: center; }
.registration-success-mark { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; background: #e5f0e7; color: var(--green); font-size: 1.5rem; font-weight: 900; }
.registration-success h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }
.registration-success p { color: var(--muted); line-height: 1.6; }
@media (max-width: 560px) {
  .auth-tabs, .registration-grid { grid-template-columns: 1fr; }
  .auth-tabs button { min-height: 38px; }
}