/* =====================================================================
   HAGATE — strony logowania / rejestracji (2026-11)
   Spojne z front.css (te same kolory, fonty, logo).
   ===================================================================== */
:root {
    --hg-ink: #0b1024;
    --hg-ink-2: #1e2540;
    --hg-muted: #5b6480;
    --hg-soft: #8a93ad;
    --hg-line: #e4e8f2;
    --hg-bg: #f6f8fc;
    --hg-indigo: #6366f1;
    --hg-grad: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
    --hg-grad-text: linear-gradient(120deg, #818cf8 0%, #60a5fa 45%, #22d3ee 100%);
    --hg-head: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
    --hg-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.hg-auth {
    min-height: 100vh; margin: 0;
    font-family: var(--hg-body); color: var(--hg-ink);
    background: #070b1d;
    -webkit-font-smoothing: antialiased;
}
body.hg-auth::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #070b1d url('../front/hero-bg.svg') center 40% / cover no-repeat; }
body.hg-auth h1, body.hg-auth h2 { font-family: var(--hg-head); letter-spacing: -0.03em; }

/* --- logo --- */
.hg-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.hg-brand img { width: 44px; height: 44px; display: block; filter: drop-shadow(0 6px 14px rgba(59,130,246,.35)); }
.hg-brand-word { font-family: var(--hg-head); font-weight: 800; font-size: 26px; letter-spacing: -0.04em; color: var(--hg-ink); line-height: 1; }
.hg-brand-word b { font-weight: 800; background: var(--hg-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hg-brand--light .hg-brand-word { color: #fff; }

/* --- uklad: karta na srodku --- */
.hg-auth-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 84px 20px 40px; }
.hg-home-link { position: fixed; top: 20px; right: 20px; z-index: 10; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; color: #e2e8f0; font-weight: 600; font-size: 14.5px; text-decoration: none; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s; }
.hg-home-link:hover { background: rgba(255,255,255,.15); color: #fff; }

.hg-auth-card {
    width: 100%; max-width: 440px;
    padding: clamp(28px, 5vw, 40px);
    background: rgba(255,255,255,.97); border-radius: 26px;
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 0 0 8px rgba(255,255,255,.05), 0 40px 90px rgba(2,6,23,.55);
    animation: hgCardIn .6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes hgCardIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.hg-auth-brand { display: flex; justify-content: center; margin-bottom: 26px; }
.hg-auth-card h1, .hg-auth-sub { text-align: center; }

.hg-auth-perks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; max-width: 560px; }
.hg-auth-perks li { display: inline-flex; align-items: center; gap: 8px; color: #b8c1da; font-size: 13.5px; font-weight: 600; }
.hg-auth-perks i { color: #4ade80; }
.hg-flag { display: inline-block; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); background: linear-gradient(#fff 50%, #dc143c 50%); }


.hg-auth-card h1 { margin: 0; font-size: 28px; font-weight: 800; color: var(--hg-ink); }
.hg-auth-sub { margin: 8px 0 28px; color: var(--hg-muted); font-size: 15.5px; }

.hg-field { position: relative; margin-bottom: 14px; }
.hg-field > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9aa3ba; font-size: 15px; pointer-events: none; transition: color .2s; }
.hg-input {
    width: 100%; height: 54px; padding: 0 16px 0 46px; border-radius: 14px;
    border: 1.5px solid var(--hg-line); background: #fff; color: var(--hg-ink);
    font: 500 15.5px var(--hg-body); outline: none; transition: border-color .2s, box-shadow .2s;
}
.hg-input::placeholder { color: #9aa3ba; }
.hg-input:focus { border-color: #818cf8; box-shadow: 0 0 0 4px rgba(129,140,248,.18); }
.hg-field:focus-within > i { color: var(--hg-indigo); }
.hg-input--pass { padding-right: 52px; }
.hg-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #9aa3ba; cursor: pointer; font-size: 15px; }
.hg-eye:hover { background: #f1f4fa; color: var(--hg-ink-2); }

.hg-row-end { display: flex; justify-content: flex-end; margin: -2px 0 18px; }
.hg-link { color: var(--hg-indigo); font-weight: 700; text-decoration: none; }
.hg-link:hover { text-decoration: underline; }
.hg-link--muted { color: var(--hg-muted); font-weight: 600; font-size: 14px; }

.hg-submit {
    width: 100%; height: 54px; border: 0; border-radius: 14px; cursor: pointer;
    background: var(--hg-grad); background-size: 140% 140%; color: #fff;
    font: 700 16px var(--hg-body); letter-spacing: .01em;
    box-shadow: 0 10px 26px rgba(59,130,246,.32), inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .2s, box-shadow .2s, background-position .3s;
}
.hg-submit:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 14px 32px rgba(59,130,246,.42), inset 0 1px 0 rgba(255,255,255,.25); }

.hg-or { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--hg-soft); font-size: 13px; font-weight: 600; }
.hg-or::before, .hg-or::after { content: ""; flex: 1; height: 1px; background: var(--hg-line); }

.hg-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 52px; border: 1.5px solid var(--hg-line); border-radius: 14px; background: #fff; color: var(--hg-ink); font-weight: 700; font-size: 15px; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.hg-google:hover { border-color: #c7d2fe; background: #fafbff; transform: translateY(-1px); }
.hg-note { margin: 10px 0 0; font-size: 12px; color: var(--hg-soft); line-height: 1.5; text-align: center; }
.hg-note a { color: var(--hg-indigo); font-weight: 700; text-decoration: none; }

.hg-switch { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hg-line); text-align: center; color: var(--hg-muted); font-size: 15px; }

.hg-checks { display: grid; gap: 14px; margin: 6px 0 24px; }
.hg-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 13px; color: var(--hg-muted); line-height: 1.5; }
.hg-check input { width: 19px; height: 19px; margin: 1px 0 0; flex-shrink: 0; cursor: pointer; accent-color: #6366f1; }
.hg-check a { color: var(--hg-indigo); font-weight: 700; text-decoration: none; }

.hg-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.hg-alert i { margin-top: 3px; }
.hg-alert--err { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.hg-alert--ok { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }

.hg-auth-foot { margin-top: 28px; text-align: center; font-size: 12.5px; color: var(--hg-soft); display: flex; justify-content: center; align-items: center; gap: 8px; }
.hg-auth-foot i { color: #22c55e; }

@media (max-width: 480px) {
    .hg-auth-main { padding: 76px 14px 28px; justify-content: flex-start; }
    .hg-home-link { top: 14px; right: 14px; }
    .hg-home-link span { display: none; }
    .hg-auth-card { border-radius: 22px; }
    .hg-auth-card h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .hg-auth-card { animation: none; } }
