[hidden] { display: none !important; }
:root { --green: #2f5d50; --bg: #f6f3ee; --line: #e2ddd3; --ink: #1f2a26; --muted: #5f6b66; --red: #b42318; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 420px; margin: 0 auto; padding: 32px 16px 48px; }
.logo { text-align: center; margin-bottom: 20px; }
.logo img { border-radius: 16px; }
.logo h1 { margin: 10px 0 4px; font-size: 26px; color: var(--green); }
.sub { margin: 0; color: var(--muted); }
.switch { display: flex; background: #e9e4da; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.switch[hidden] { display: none; }
.switch button { flex: 1; border: 0; border-radius: 9px; padding: 10px; font: inherit; font-weight: 600; background: transparent; color: var(--muted); min-height: 44px; }
.switch button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; }
label { font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
input { font: inherit; padding: 11px 12px; border: 1px solid #cfc8bb; border-radius: 10px; min-height: 22px; }
input:focus { outline: 2px solid var(--green); border-color: var(--green); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { min-height: 0; margin-top: 4px; }
.btn { margin-top: 18px; border: 0; border-radius: 12px; padding: 13px; font: inherit; font-weight: 700; min-height: 48px; cursor: pointer; }
.btn.primary { background: var(--green); color: #fff; }
.btn:disabled { opacity: .6; }
.hint { color: var(--muted); font-size: 14px; margin: 4px 0; }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: var(--red); font-weight: 600; }
.msg.ok { background: #e6f2ed; color: var(--green); }
.foot { text-align: center; font-size: 14px; margin-top: 24px; }
a { color: var(--green); }
#ways form { display: flex; flex-direction: column; }
.btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: var(--ink); border: 1px solid #cfc8bb; text-decoration: none; box-sizing: border-box; }
.btn.google:hover { background: #faf8f4; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin: 18px 0 2px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
button.link { background: none; border: 0; color: var(--green); font: inherit; font-size: 14px; margin-top: 12px; cursor: pointer; text-decoration: underline; }
details#pw-way { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
details#pw-way summary { color: var(--muted); font-size: 14px; cursor: pointer; }
#reg-fields, #name-fields { display: flex; flex-direction: column; }
#reg-fields[hidden], #name-fields[hidden] { display: none; }
