/* Prihlásenie, registrácia, MFA a overenie e-mailu – klientský panel ONHOSTING. Bez inline štýlov (CSP). */
@font-face { font-family: "Work Sans"; font-weight: 100 900; font-display: swap; src: url("../fonts/worksans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Work Sans"; font-weight: 100 900; font-display: swap; src: url("../fonts/worksans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113; }

:root { --paper: #f8f7f4; --ink: #1b1d20; --muted: #5d5f58; --line: #deded6; --orange: #ee5226; --orange-dark: #be3b15; --dark: #191c1d; --radius: 20px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.6; overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: #ffd7c6; color: var(--ink); }
h1, h2, h3, p { margin: 0; }
svg { display: block; flex-shrink: 0; }
:focus-visible { outline: 3px solid #d94a20; outline-offset: 3px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Rozloženie */
.auth-layout { position: relative; width: 100%; min-height: 100vh; min-height: 100dvh; overflow: hidden; background: #fff; display: flex; }
.auth-sidebar { position: absolute; top: 0; left: 0; z-index: 10; display: flex; flex-direction: column; width: 45%; height: 100%; padding: 40px; overflow-y: auto; background: #fff; transition: transform .8s cubic-bezier(.65, 0, .05, 1); }
.auth-cover { position: absolute; top: 0; right: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 55%; height: 100%; padding: 60px; overflow: hidden; background: var(--dark); transition: transform .8s cubic-bezier(.65, 0, .05, 1); }
.auth-layout.is-register .auth-sidebar { transform: translateX(122.222%); }
.auth-layout.is-register .auth-cover { transform: translateX(-81.818%); }
.auth-layout.no-anim .auth-sidebar, .auth-layout.no-anim .auth-cover { transition: none; }

.sidebar-header { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 420px; margin: 0 auto; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.logo-mark { width: 24px; height: 24px; color: var(--orange); }
.wordmark .logo-period { color: var(--orange); }
.back-link { display: inline-flex; align-items: center; gap: 6px; padding-block: 10px; color: var(--muted); font-size: 13px; font-weight: 600; transition: color .2s; }
.back-link:hover { color: var(--ink); }

.auth-content { flex: 1; display: grid; align-items: center; width: 100%; max-width: 380px; margin: 40px auto; }
.auth-view { grid-area: 1 / 1; opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .4s ease, transform .4s ease, visibility .4s; }
.auth-view.hidden { opacity: 0; visibility: hidden; transform: translateY(-20px); pointer-events: none; }
.auth-title { margin-bottom: 8px; font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; }
.auth-subtitle { margin-bottom: 28px; color: var(--muted); font-size: 14.5px; }

/* Hlášky */
.auth-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.auth-alert .icon { width: 18px; height: 18px; margin-top: 1px; }
.auth-alert--error { background: #fdeceb; color: #8a2a12; border: 1px solid #f3c1b3; }
.auth-alert--ok { background: #e6f4ea; color: #1e5b32; border: 1px solid #b9e6c6; }

/* Polia */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group--tight { margin-bottom: 14px; }
.form-group-header { display: flex; justify-content: space-between; align-items: center; }
.form-label { color: #4b5563; font-size: 12px; font-weight: 700; }
.form-group-header { align-items: baseline; }
.forgot-link { padding-block: 4px; color: var(--orange-dark); font-size: 12px; font-weight: 700; }
.forgot-link:hover { text-decoration: underline; }
.form-hint { color: var(--muted); font-size: 12px; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.auth-input { width: 100%; padding: 14px 16px; border: 1.5px solid #e4e5dd; border-radius: 10px; background: #fbfbfa; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 500; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.auth-input::placeholder { color: #6b7280; font-weight: 500; }
.auth-input:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgb(238 82 38 / .1); }
.auth-input--code { font-size: 26px; font-weight: 700; letter-spacing: .35em; text-align: center; }
select.auth-input { cursor: pointer; }
.input-wrapper .auth-input { padding-right: 46px; }
.pwd-toggle { position: absolute; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: #6b7280; transition: color .2s; }
.pwd-toggle:hover { color: var(--ink); }

.button-primary { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 8px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; transition: background-color .2s, transform .2s; }
.button-primary:hover { background: #383c3d; transform: translateY(-1px); }
.button-link { display: inline-block; margin-top: 18px; padding: 8px 0; border: 0; background: none; color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-footer { margin-top: 32px; color: var(--muted); font-size: 13.5px; font-weight: 500; text-align: center; }
.auth-footer a { margin-left: 6px; padding-block: 8px; color: var(--ink); font-weight: 700; }
.auth-footer a:hover { text-decoration: underline; }
.auth-footer--tight { margin-top: 24px; }
.auth-split { margin-top: 26px; padding-top: 22px; border-top: 1px solid #eaeae4; }

.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 24px; }
.checkbox-group input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); cursor: pointer; }
.checkbox-group label { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.checkbox-group label a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* Pravý panel */
.cover-bg { position: absolute; inset: 0; background-image: linear-gradient(to right, rgb(255 255 255 / .02) 1px, transparent 1px), linear-gradient(to bottom, rgb(255 255 255 / .02) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 20%, transparent 85%); mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 20%, transparent 85%); transition: transform 1s ease; }
.auth-layout.is-register .cover-bg { transform: translateX(15%); }
.cover-glow { position: absolute; top: 50%; left: 50%; width: 600px; height: 600px; background: radial-gradient(circle, rgb(238 82 38 / .08) 0%, transparent 60%); filter: blur(40px); transform: translate(-50%, -50%); }
.cover-content { position: relative; z-index: 2; width: 100%; text-align: center; }
.cover-view { position: absolute; top: 50%; left: 50%; width: 100%; opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity .5s ease, transform .5s ease; }
.cover-view.hidden { opacity: 0; visibility: hidden; transform: translate(-50%, -45%); }
.cover-icon { width: 72px; height: 72px; margin: 0 auto 30px; color: var(--orange); filter: drop-shadow(0 10px 20px rgb(238 82 38 / .2)); }
.cover-title { margin-bottom: 16px; color: #fff; font-size: 42px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.cover-desc { max-width: 380px; margin: 0 auto; color: #b4b4bb; font-size: 16px; line-height: 1.7; }
.cover-features { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.c-feat { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid rgb(255 255 255 / .08); border-radius: 999px; background: rgb(255 255 255 / .04); color: #d4d4d8; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.c-feat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* Mobil */
@media (max-width: 960px) {
  .auth-layout { display: block; overflow-y: auto; }
  .auth-cover { display: none; }
  .auth-sidebar { position: relative; width: 100%; height: auto; min-height: 100dvh; padding: 24px; transform: none !important; transition: none; }
  .auth-content { max-width: 100%; margin: 30px auto; }
  .auth-title { font-size: 28px; }
}
@media (max-width: 768px) { .auth-input { padding: 12px 16px; font-size: 16px; } .input-wrapper .auth-input { padding-right: 46px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
