:root{--ink:#17231c;--green:#214b35;--muted:#657067;--line:#d8dfd8;--bg:#f4f6f2;--gold:#8a6b2f;--red:#9d3d31;--red-bg:#fdeeec}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Arial,Helvetica,sans-serif;min-height:100vh;display:flex;flex-direction:column}
.wrap{width:min(1180px,calc(100% - 40px));margin:auto}
.header{display:flex;align-items:center;justify-content:space-between;padding:24px 0}
.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}
.logo{width:44px;height:44px;overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 2px 8px #1f332614}
.logo img{width:100%;height:100%;object-fit:cover}
.brand strong{display:block;font-size:15px;letter-spacing:.16em}
.brand small{display:block;margin-top:2px;color:#758077;font-size:10px;font-weight:700;letter-spacing:.28em}

.authwrap{flex:1;display:flex;align-items:center;justify-content:center;padding:24px 0 64px}
.authcard{width:100%;max-width:440px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 12px 40px rgba(31,51,38,.08);padding:36px 34px}
.authcard .overline{margin:0;color:var(--gold);font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase}
.authcard h1{font-size:26px;margin:10px 0 6px;letter-spacing:-.02em}
.authcard p.lead{color:var(--muted);font-size:14px;line-height:1.55;margin:0 0 22px}

.field{margin-bottom:16px}
.field label{display:block;font-size:12px;font-weight:700;color:#3a473e;margin-bottom:6px}
.field input{width:100%;padding:12px 13px;border:1px solid #ccd4cc;border-radius:10px;font-size:14px;background:#fff;font-family:inherit}
.field input:focus{outline:2px solid #21453533;border-color:var(--green)}
.hint{font-size:11px;color:#8a938a;margin-top:5px}

.btn{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin-top:6px;border:0;border-radius:12px;background:var(--green);color:#fff;font-weight:700;font-size:15px;cursor:pointer;text-decoration:none;font-family:inherit}
.btn:hover{background:#173b29}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btn.secondary{background:#eef1ed;color:var(--ink)}
.btn.secondary:hover{background:#e3e8e1}

.alert{padding:13px 15px;border-radius:10px;font-size:13px;margin-bottom:18px;line-height:1.5}
.alert.err{background:var(--red-bg);color:var(--red)}
.alert.ok{background:#eaf7ef;color:#1f5c3a}

.below{margin-top:22px;text-align:center;font-size:13px;color:var(--muted)}
.below a{color:var(--green);font-weight:700;text-decoration:none}
.below a:hover{text-decoration:underline}

footer{border-top:1px solid var(--line);background:#e9eee8;padding:22px 0;color:#657067;font-size:13px;text-align:center}
@media(max-width:560px){.authcard{padding:28px 22px;border-radius:18px}}
