:root {
  --green: #1f6e48; --green-dark: #17553a; --green-soft: #e3f2e8;
  --ink: #12261c; --muted: #5f6f67; --line: #d9e4dd;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font); color: var(--ink); line-height: 1.45;
  background: radial-gradient(900px 500px at 85% -10%, #e3f2e8 0, transparent 70%), linear-gradient(180deg, #f6fbf8, #eef6f1); }
a { color: var(--green); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #86c7a0; outline-offset: 2px; }

.auth-art { position: fixed; left: 0; bottom: 0; width: min(360px, 30vw); aspect-ratio: 330 / 249; pointer-events: none; z-index: 0;
  background: url("/static/img/plants-left.jpg") left bottom / cover no-repeat; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }

.auth-top { position: relative; z-index: 1; display: flex; justify-content: center; padding: 28px 20px 8px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; font-size: 17px; line-height: 1.2; }
.brand:hover { text-decoration: none; }
.brand svg { width: 44px; height: 44px; fill: var(--green); }
.brand small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }

.auth-main { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 20px 48px; }
.auth-card { width: 100%; max-width: 480px; background: #fff; border: 1px solid #e4ebe6; border-radius: 22px; padding: 40px 40px 34px; box-shadow: 0 18px 50px rgba(18, 38, 28, .10); }
.auth-card h1 { margin: 0 0 8px; text-align: center; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; font-weight: 800; }
.auth-sub { margin: 0 0 26px; text-align: center; font-size: 15px; color: var(--muted); }

.alert { margin: 0 0 20px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.alert-error { background: #fdeeee; border: 1px solid #f3c5c5; color: #8f2a2a; }
.alert-ok { background: var(--green-soft); border: 1px solid #bfe0cb; color: var(--green-dark); }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.field input { width: 100%; height: 52px; padding: 0 16px; font: 500 16px var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #98a59d; font-weight: 400; }
.field input:hover { border-color: #b7cfc0; }
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 110, 72, .14); }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw button { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw button:hover { color: var(--green); background: var(--green-soft); }
.pw svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw .eye-off { display: none; }
.pw.shown .eye { display: none; }
.pw.shown .eye-off { display: block; }
.forgot { display: block; text-align: right; margin: -8px 0 20px; font-size: 14px; }

.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; border-radius: 12px; font: 700 16px var(--font); cursor: pointer; border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: #fff; color: var(--green); border-color: #9fc4ad; }
.btn-outline:hover { background: var(--green-soft); }
.or { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-size: 13px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.legal { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.switch { margin: 22px 0 0; text-align: center; font-size: 15px; color: var(--muted); }

@media (max-width: 560px) {
  .auth-card { padding: 28px 20px 24px; border-radius: 18px; }
  .auth-card h1 { font-size: 26px; }
  .auth-art { opacity: .5; width: 70vw; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
