:root { --yellow: #f2e857; --purple: #8130f2; --brown: #730e6c; --dark: #373737; --bg: #ecede8; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--dark); color: #fff; font-family: "IBM Plex Sans", system-ui, sans-serif; display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; }
.reg { width: 100%; max-width: 480px; }
.reg-back { color: var(--yellow); font-size: 12px; text-decoration: none; }
.reg h1 { font-size: 52px; font-weight: 700; font-style: italic; line-height: 1.1; margin: 24px 0 8px; }
.reg-sub { margin: 0 0 32px; font-size: 16px; line-height: 1.5; opacity: .85; }
.reg-form label { display: block; font-size: 14px; margin-bottom: 18px; }
.reg-form small { opacity: .7; }
.reg-form input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--dark); background: #fff; border: 0; }
.reg-form input:focus { outline: 2px solid var(--yellow); }
.reg-btn { display: inline-block; width: 100%; padding: 18px; margin-top: 8px; border: 0; background: var(--yellow); color: var(--purple); font: inherit; font-weight: 700; font-size: 20px; text-align: center; text-decoration: none; cursor: pointer; }
.reg-btn:hover { filter: brightness(1.05); }
.reg-error { background: var(--brown); color: #fff; padding: 12px 14px; font-size: 14px; margin: 0 0 20px; }
.reg-ok { background: var(--purple); padding: 20px; }
.reg-ok p { margin: 0 0 16px; line-height: 1.5; }
.reg-login { margin-top: 24px; font-size: 14px; }
.reg-login a { color: var(--yellow); }

@media (max-width: 720px) { .reg h1 { font-size: 36px; } }
