* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #f4f4f1; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; padding: 16px;
}
.card { width: 100%; max-width: 360px; background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.08); padding: 28px 24px; }
h1 { font-size: 19px; margin: 0 0 4px; color: #1a1a1a; }
.sub { font-size: 13px; color: #888; margin: 0 0 22px; }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; background: #f1f1ee; border-radius: 10px; padding: 4px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: #777; cursor: pointer; }
.tabs button.active { background: #fff; color: #0b5da8; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
label { display: block; font-size: 12.5px; font-weight: 600; color: #555; margin: 14px 0 5px; }
input { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 11px; font-size: 14px; font-family: inherit; }
input:focus { outline: none; border-color: #0b5da8; }
.field-hint { font-size: 11.5px; color: #999; margin-top: 4px; }
button[type=submit] { width: 100%; margin-top: 20px; border: 0; border-radius: 8px; background: #0b5da8; color: #fff; font-size: 14.5px; font-weight: 700; padding: 11px; cursor: pointer; }
button[type=submit]:disabled { opacity: .6; cursor: wait; }
.msg { margin-top: 14px; font-size: 13px; text-align: center; min-height: 16px; }
.msg.err { color: #b71c1c; }
.msg.ok { color: #1b5e20; }
.hidden { display: none; }
