:root {
    --blue: #0866ff;
    --blue-dark: #0654d6;
    --green: #42b72a;
    --green-dark: #36a420;
    --text: #1c1e21;
    --muted: #65676b;
    --line: #dddfe2;
    --bg: #ffffff;
    --bg-soft: #f0f2f5;
    --error: #e41e3f;
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-word { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.brand-word b { color: var(--blue); font-weight: 800; }
.brand-lg .brand-mark { width: 72px; height: 72px; }

/* ---------- Buttons ---------- */
.btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 52px; padding: 0 20px;
    border-radius: 999px; border: 1px solid transparent;
    font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1;
    cursor: pointer; text-decoration: none !important;
    transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: #f0f6ff; }
.btn-ghost { background: var(--bg-soft); color: var(--text); }
.btn-ghost:hover { background: #e4e6eb; }
.btn-sm { width: auto; height: 40px; font-size: 15px; padding: 0 18px; }
.btn-inline { display: inline-flex; }

/* ---------- Auth split (login) ---------- */
.auth-split { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; min-height: calc(100vh - 110px); }
.auth-hero {
    position: relative; padding: 56px 48px 56px 56px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    border-right: 1px solid var(--line); overflow: hidden;
}
.hero-title { font-size: clamp(44px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0; }
.hero-title span { color: var(--blue); }

.hero-art { position: relative; height: 420px; max-width: 620px; width: 100%; margin: 0 auto; }
.art-card { position: absolute; background: #fff; border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.14); }
.art-post { left: 30%; top: 0; width: 260px; padding: 14px; transform: rotate(2deg); z-index: 2; }
.post-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.post-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #ffb74a, #ff5f6d); }
.post-meta { display: flex; flex-direction: column; font-size: 14px; }
.post-meta small { color: var(--muted); font-size: 12px; }
.post-media {
    height: 190px; border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, #ffe08a, transparent 55%), linear-gradient(135deg, #ff7a18, #af002d 80%);
    display: flex; align-items: flex-end; padding: 16px;
}
.post-offer { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.2; }
.post-offer b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.post-cta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.post-cta em { font-style: normal; background: var(--bg-soft); color: var(--text); font-weight: 600; padding: 8px 12px; border-radius: 8px; }

.art-stats { left: 2%; top: 110px; width: 210px; padding: 18px; transform: rotate(-4deg); z-index: 1; display: flex; flex-direction: column; }
.art-stats small { color: var(--muted); font-size: 12px; }
.art-stats b { font-size: 34px; font-weight: 800; margin-top: 6px; }
.stat-label { font-size: 13px; color: var(--green-dark); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 80px; margin-top: 14px; }
.bars i { flex: 1; background: var(--blue); border-radius: 4px 4px 2px 2px; opacity: .85; }

.art-chip {
    position: absolute; right: 2%; bottom: 40px; z-index: 3;
    display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px;
    background: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.16); font-size: 14px;
}
.art-chip span:last-child { display: flex; flex-direction: column; }
.art-chip small { color: var(--muted); font-size: 12px; }
.chip-dot { width: 36px; height: 36px; border-radius: 50%; background: #e7f3e8; display: grid; place-items: center; font-size: 18px; }
.art-bubble {
    position: absolute; width: 64px; height: 64px; border-radius: 50%;
    display: grid; place-items: center; font-size: 30px; z-index: 4;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.art-like { background: var(--blue); left: 22%; top: -8px; }
.art-heart { background: #f3425f; right: 12%; top: 150px; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 48px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h2 { font-size: 20px; font-weight: 600; margin: 0 0 20px; }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
.auth-box form { display: flex; flex-direction: column; gap: 12px; }
.auth-box .btn-outline { margin-top: 18px; }

/* ---------- Floating-label fields ---------- */
.field { position: relative; }
.field input {
    width: 100%; height: 58px; padding: 22px 16px 6px;
    font-family: inherit; font-size: 16px; color: var(--text);
    border: 1px solid #ccd0d5; border-radius: var(--radius); background: #fff;
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(8,102,255,.25); }
.field input.has-error { border-color: var(--error); }
.field label {
    position: absolute; left: 17px; top: 19px; color: var(--muted); font-size: 16px;
    pointer-events: none; transition: all .15s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label { top: 9px; font-size: 12px; }
.field-error { color: var(--error); font-size: 13px; margin: -4px 4px 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; cursor: pointer; margin: 2px 0 6px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }

/* ---------- Register ---------- */
.register-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 40px 16px; background: var(--bg-soft); }
.brand-center { margin-bottom: 24px; }
.register-box { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.08); max-width: 460px; }
.register-box h2 { font-size: 24px; margin-bottom: 4px; }
.muted { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.link-center { display: block; text-align: center; margin-top: 18px; font-size: 15px; }

/* ---------- Info pages ---------- */
.info-page { background: var(--bg-soft); }
.topbar {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 24px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.topbar-actions { display: flex; gap: 8px; }
.doc { flex: 1; padding: 32px 16px 48px; }
.doc-card {
    max-width: 820px; margin: 0 auto; background: #fff; border-radius: 16px;
    padding: 40px 48px; box-shadow: 0 1px 3px rgba(0,0,0,.08); line-height: 1.7; font-size: 16px;
}
.doc-card h1 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.2; }
.doc-card h2 { font-size: 20px; margin: 32px 0 8px; }
.doc-card h3 { font-size: 15px; margin: 0 0 2px; }
.doc-card ul { padding-left: 22px; }
.doc-card li { margin: 6px 0; }
.doc-updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.lead { font-size: 19px; color: #3a3b3c; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0; }
.contact-item { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item p { margin: 0; color: var(--muted); }
.contact-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-size: 20px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 22px 16px 26px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.footer-links a { color: var(--muted); font-size: 15px; }
.footer-copy { color: #8a8d91; font-size: 13px; margin: 12px 0 0; }
.footer-disclaimer { color: #8a8d91; font-size: 12px; line-height: 1.5; margin: 8px auto 0; max-width: 680px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .auth-hero { padding: 40px 32px; }
    .hero-art { transform: scale(.85); transform-origin: top center; height: 360px; }
}
@media (max-width: 860px) {
    .auth-split { grid-template-columns: 1fr; min-height: auto; }
    .auth-hero { display: none; }
    .auth-panel { padding: 40px 16px 56px; align-items: flex-start; }
    .auth-mobile-brand { display: block; }
    .auth-box .btn-outline { margin-top: 32px; }
}
@media (max-width: 600px) {
    .topbar { padding: 10px 16px; }
    .topbar .brand-word { display: none; }
    .doc { padding: 16px 16px 32px; }
    .doc-card { padding: 24px 20px; border-radius: 12px; }
    .doc-card h1 { font-size: 26px; }
    .register-box { padding: 22px 18px; }
}
.btn-fb { background: #1877f2; color: #fff; gap: 10px; }
.btn-fb:hover { background: #0f63d6; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 18px 0; font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-note { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.btn-tall { height: 56px; font-size: 17px; }
.auth-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.auth-points li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.auth-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
.auth-alt { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.auth-independent { margin-top: 14px; font-size: 11px; line-height: 1.5; }
