/* Prihlasovacia obrazovka administrácie (Cms/View/parts/login_screen.php).
   Samostatný súbor bez Bootstrapu a admin skinu - stránka ich nenačítava. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/modul/Admin/fonts/manrope/manrope-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/modul/Admin/fonts/manrope/manrope-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.ls {
  --ls-ink: #17151f;
  --ls-text: #3d3a47;
  --ls-muted: #6b6775;
  --ls-line: #dcd8e2;
  --ls-accent: #e0483e;
  --ls-accent-dark: #c43a31;
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--ls-text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.ls *, .ls *::before, .ls *::after { box-sizing: border-box; }

.ls-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---- ľavá časť: formulár ---- */
.ls-main {
  display: flex;
  flex-direction: column;
  padding: 36px 40px 28px;
}
.ls-logo {
  align-self: flex-start;
  color: var(--ls-ink);
  font-family: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.ls-logo em {
  margin-right: 1px;
  color: var(--ls-muted);
  font-style: normal;
  font-weight: 500;
}
.ls-logo span {
  margin-left: 3px;
  color: var(--ls-accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: super;
}

.ls-form-box {
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 48px 0;
}
.ls-h1 {
  margin: 0 0 12px;
  color: var(--ls-ink);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.ls-lead {
  margin: 0 0 32px;
  color: var(--ls-muted);
  font-size: 17px;
}

.ls-alert {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fdecea;
  color: #8f2219;
  font-size: 15px;
  font-weight: 600;
}
.ls-alert p { margin: 0; }
.ls-alert p + p { margin-top: 4px; }

.ls-label {
  display: block;
  margin: 0 0 8px;
  color: var(--ls-ink);
  font-size: 15px;
  font-weight: 600;
}
.ls-input {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0 0 20px;
  padding: 0 16px;
  border: 1px solid var(--ls-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ls-ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.ls-input:hover { border-color: #c4bfcc; }
.ls-input:focus {
  outline: none;
  border-color: var(--ls-ink);
  box-shadow: 0 0 0 4px rgba(23, 21, 31, .08);
}

.ls-pass { position: relative; }
.ls-pass .ls-input { padding-right: 52px; }
.ls-eye {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ls-muted);
  cursor: pointer;
}
.ls-eye:hover, .ls-eye[aria-pressed="true"] { color: var(--ls-ink); }
.ls-eye:focus-visible { outline: 2px solid var(--ls-ink); outline-offset: 0; }

.ls-submit {
  display: block;
  width: 100%;
  height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--ls-accent);
  box-shadow: 0 12px 28px -12px rgba(224, 72, 62, .7);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.ls-submit:hover { background: var(--ls-accent-dark); }
.ls-submit:active { transform: translateY(1px); }
.ls-submit:focus-visible { outline: 3px solid var(--ls-ink); outline-offset: 3px; }

.ls-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--ls-muted);
  font-size: 14px;
}
.ls-foot a {
  color: var(--ls-muted);
  text-underline-offset: 3px;
}
.ls-foot a:hover { color: var(--ls-ink); }

/* prepínač CMS <-> modul pod formulárom */
.ls-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  margin-top: 14px;
  border: 1px solid var(--ls-line);
  border-radius: 999px;
  color: var(--ls-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.ls-switch:hover { border-color: var(--ls-ink); background: #f7f8fa; }
.ls-switch svg { transition: transform .15s; }
.ls-switch:hover svg { transform: translateX(3px); }
.ls-switch:focus-visible { outline: 3px solid var(--ls-ink); outline-offset: 3px; }

/* ---- pravá časť (spoločné) ---- */
.ls-side {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- CMS: tmavý panel, izometrický web, logo WebforRent ---- */
.ls--cms {
  --ls-ink: #14161c;
  --ls-muted: #646b78;
  --ls-line: #dfe2e8;
  --ls-accent: #14161c;
  --ls-accent-dark: #2b2f39;
}
.ls--cms .ls-submit { box-shadow: 0 12px 28px -14px rgba(20, 22, 28, .6); }

.ls-side--iso {
  --iso-modra: #1756ff;
  padding: clamp(40px, 7vh, 80px) clamp(40px, 5vw, 88px);
  background-color: #f1eeff;
  background-image:
    radial-gradient(42% 38% at 82% 18%, #b9c6ff 0%, transparent 70%),
    radial-gradient(40% 40% at 12% 88%, #ffc2dc 0%, transparent 70%),
    radial-gradient(38% 34% at 90% 92%, #ffdcae 0%, transparent 70%),
    radial-gradient(36% 30% at 10% 14%, #c2eeff 0%, transparent 70%);
  background-size: 140% 140%;
  color: var(--ls-ink);
}
@media (prefers-reduced-motion: no-preference) {
  .ls-side--iso { animation: ls-iso-mesh 18s ease-in-out infinite alternate; }
}
@keyframes ls-iso-mesh {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}
.ls-iso-logo svg {
  display: block;
  width: 168px;
  height: auto;
  color: var(--ls-ink);
}
.ls-iso-claim {
  margin: clamp(36px, 7vh, 72px) 0 0;
  color: var(--ls-ink);
  font-size: clamp(40px, 4.4vw, 70px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}
.ls-iso {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  max-height: 58vh;
  margin: auto auto 0;
  overflow: visible;
}
.ls-iso-tien { fill: rgba(70, 60, 160, .22); }
.ls-iso-okno { fill: #fff; }
.ls-iso-lista { fill: #f1f2f8; }
.ls-iso-bok1 { fill: #dfe1f0; }
.ls-iso-bok2 { fill: #c9cce3; }
.ls-iso-text { fill: #1d1f2b; }
.ls-iso-riadok { fill: #cdd1e2; }
.ls-iso-tlacidlo { fill: var(--iso-modra); }
.ls-iso-foto { fill: url(#ls-iso-foto); }
.ls-iso-slnko { fill: #ffd166; }
.ls-iso-hory { fill: rgba(255, 255, 255, .28); }
.ls-iso-karta { fill: #f4f5fb; stroke: #e1e4f0; stroke-width: 1; }
.ls-iso-klik { fill: rgba(23, 86, 255, .25); }

/* prvky dopadajú po jednom (oneskorenie podľa --i), web chvíľu stojí, kurzor klikne na nadpis,
   web zmizne a stavia sa znova; bez animácie (prefers-reduced-motion) je web rovno poskladaný */
.ls-iso-kurzor { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ls-iso-prvok {
    animation: ls-iso-dopad 9s infinite both;
    animation-delay: calc(var(--i) * .32s);
  }
  .ls-iso-levit {
    animation: ls-iso-levit 6s ease-in-out infinite;
    animation-delay: var(--d);
  }
  .ls-iso-kurzor { animation: ls-iso-kurzor 9s ease-in-out infinite; }
  .ls-iso-klik {
    transform-box: fill-box;
    transform-origin: center;
    animation: ls-iso-klik 9s ease-out infinite;
  }
}
@keyframes ls-iso-dopad {
  0% { transform: translateY(-90px); opacity: 0; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  9% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(0); opacity: 1; }
  78%, 100% { transform: translateY(0); opacity: 0; }
}
@keyframes ls-iso-levit {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes ls-iso-kurzor {
  0%, 38% { transform: translate(70px, 60px); opacity: 0; }
  48% { transform: translate(0, 0); opacity: 1; }
  68% { transform: translate(0, 0); opacity: 1; }
  74%, 100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes ls-iso-klik {
  0%, 50% { transform: scale(0); opacity: 0; }
  52% { transform: scale(.4); opacity: 1; }
  62%, 100% { transform: scale(2.2); opacity: 0; }
}

/* ---- realitný modul: pravá strana podľa realitnysystem.sk ---- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/modul/Admin/fonts/space-grotesk/space-grotesk-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/modul/Admin/fonts/space-grotesk/space-grotesk-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* farby realitnysystem.sk - modrý „signal" je jediný akcent, aj na tlačidle vľavo */
.ls--real {
  --ls-ink: #141b2b;
  --ls-muted: #5b6780;
  --ls-line: #e3e8f0;
  --ls-accent: #2f5bff;
  --ls-accent-dark: #2449d8;
}
.ls--real .ls-submit { box-shadow: 0 12px 28px -12px rgba(47, 91, 255, .7); }
.ls--real .ls-logo span { color: var(--ls-accent); }
.ls--real .ls-h1 {
  font-family: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

/* výkres: modrý papier s mriežkou, biele čiary */
.ls-side--bp {
  --bp-papier: #1f46e5;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(48px, 8vh, 96px) clamp(40px, 5vw, 88px) clamp(32px, 5vh, 56px);
  border-left: 0;
  background-color: var(--bp-papier);
  background-image:
    linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  color: #fff;
}
.ls-bp-claim {
  margin: 0;
  color: #fff;
  font-family: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  font-size: clamp(44px, 5vw, 80px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.045em;
}
.ls-bp-plan {
  display: block;
  width: 100%;
  max-width: 620px;
  max-height: 40vh;
  margin: 0 auto;
  color: #fff;
  overflow: visible;
}
.ls-bp-plan text {
  fill: currentColor;
  stroke: none;
  font: 600 11px/1 'Space Grotesk', 'Manrope', sans-serif;
  letter-spacing: .08em;
}
.ls-bp-plan text.m2 {
  font-size: 15px;
  letter-spacing: 0;
  opacity: .75;
}
.ls-bp-obvod { stroke-width: 7; }
.ls-bp-priecka { stroke-width: 3.5; }
.ls-bp-dvere { stroke-width: 1.5; }
.ls-bp-okno rect { fill: var(--bp-papier); stroke: none; }
.ls-bp-okno path { stroke-width: 1.5; }
.ls-bp-nabytok { stroke-width: 1; opacity: .4; }
.ls-bp-kota { stroke-width: 1; opacity: .6; }
.ls-bp-kota text { font-size: 12px; letter-spacing: .04em; }

/* pečiatkové pole výkresu */
.ls-bp-peciatka {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: flex-end;
  width: min(100%, 360px);
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.4;
}
.ls-bp-peciatka > div {
  padding: 7px 12px;
  border-top: 1px solid rgba(255, 255, 255, .45);
}
.ls-bp-peciatka > div:first-child { border-top: 0; }
.ls-bp-peciatka > div + div:not(.ls-bp-p-siroke):last-child { border-left: 1px solid rgba(255, 255, 255, .45); }
.ls-bp-p-siroke { grid-column: 1 / -1; }
.ls-bp-peciatka dt {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, .65);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ls-bp-peciatka dd { margin: 0; font-weight: 600; }
.ls-bp-peciatka .ls-bp-p-siroke:first-child dd {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
}

/* dokreslenie pôdorysu pri načítaní */
@media (prefers-reduced-motion: no-preference) {
  .ls-bp-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: ls-bp-kresli 1.4s cubic-bezier(.6, .1, .3, 1) forwards;
  }
  .ls-bp-priecka { animation-delay: .5s; }
  .ls-bp-dvere { animation-delay: 1.1s; animation-duration: .9s; }
  .ls-bp-okno, .ls-bp-nabytok, .ls-bp-txt, .ls-bp-kota {
    animation: ls-bp-objav .6s ease-out both;
  }
  .ls-bp-okno, .ls-bp-kota { animation-delay: .9s; }
  .ls-bp-nabytok { animation-delay: 1.5s; }
  .ls-bp-txt { animation-delay: 1.7s; }
}
@keyframes ls-bp-kresli { to { stroke-dashoffset: 0; } }
@keyframes ls-bp-objav { from { opacity: 0; } }

/* ---- tablet a mobil: len formulár ---- */
@media (max-width: 900px) {
  .ls-wrap { grid-template-columns: 1fr; }
  .ls-side { display: none; }
}
@media (max-width: 480px) {
  .ls-main { padding: 24px 20px 20px; }
  .ls-form-box { padding: 40px 0; }
  .ls-h1 { font-size: 38px; }
  .ls-lead { margin-bottom: 28px; }
}
