/* ═══════════════════════════════════════════════════════════════
   WOLFNET KLIENTSKÝ PORTÁL — PŘIHLÁŠOVACÍ LANDING (redesign)
   Paleta: fialová + oranžová + bílá · Inter
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Barevná paleta */
  --wl-purple-950:   #17104A;            /* tmavě fialová */
  --wl-purple-900:   #21145F;            /* primární fialová */
  --wl-purple-600:   #6F20D9;
  --wl-purple-accent:#7B2BEF;            /* akcentní fialová */
  --wl-orange:       #FF671D;            /* oranžová CTA */
  --wl-orange-600:   #E95712;            /* hover oranžová */
  --wl-purple-50:    #F0E5FF;            /* světle fialové pozadí ikon */
  --wl-border:       #DDD9EA;
  --wl-input-bg:     #FAF9FD;
  --wl-white:        #FFFFFF;
  --wl-ink:          #17154F;            /* tmavý text */
  --wl-secondary:    #46417A;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body.wn-login-page {
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-variant-numeric: proportional-nums;
  -webkit-font-smoothing: antialiased;
  color: var(--wl-ink);
  overflow-x: hidden;
}

/* Pozadí přes celou plochu — cover, centrované */
.wn-login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('../img/novod-portal.png') center center / cover no-repeat var(--wl-purple-950);
}

.wn-login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════════════
   LEVÁ ČÁST — PREZENTACE
   ═══════════════════════════════════════════════════════════════ */
.wn-login-hero {
  position: absolute;
  left: 5%;
  top: 5%;
  width: 570px;
  max-width: calc(100vw - 660px - 4%);
  text-align: left;
  color: var(--wl-white);
}

/* Logo */
.wn-logo {
  display: block;
}
.wn-logo__img {
  display: block;
  height: 58px;
  width: auto;
}

/* Headline */
.wn-hero__title {
  margin: 42px 0 0;
  font-size: 55px;
  font-weight: 800;
  line-height: 1;
  color: var(--wl-ink);
}
.wn-hero__title .accent { color: var(--wl-orange); }

.wn-hero__lead {
  margin: 22px 0 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--wl-ink);
}

/* Přehled služeb */
.wn-hero__services {
  margin: 34px 0 0;
  display: flex;
  gap: 22px;
}
.wn-service {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
}
.wn-service__icon {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: var(--wl-purple-50);
  color: var(--wl-purple-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wn-service__icon i { font-size: 26px; }
.wn-service__name {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--wl-ink);
}
.wn-service__desc {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--wl-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   PRAVÁ ČÁST — LOGIN KARTA
   ═══════════════════════════════════════════════════════════════ */
.wn-login-card {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 550px;
  background: var(--wl-white);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(30, 10, 70, .15);
  padding: 55px 50px;
  text-align: left;
}

.wn-login-card__title {
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  color: var(--wl-ink);
}
.wn-login-card__subtitle {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--wl-secondary);
}

/* Alerty (chlýby / zprávy) */
.wl-alert {
  margin: 22px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
}
.wl-alert--error {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .35);
  color: #D92D20;
}
.wl-alert--error i { color: #D92D20; }
.wl-alert--success {
  background: rgba(52, 199, 89,.12);
  border: 1px solid rgba(52, 199, 89,.4);
  color: #1F9D55;
}
.wl-alert--success i { color: #1F9D55; }

/* Form */
.wl-login-form {
  margin: 26px 0 0;
}
.wl-form-group { margin: 0 0 20px; }

.wl-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--wl-purple-accent);
}
.wl-label i { width: 16px; font-size: 15px; }

.wl-input-wrap { position: relative; }
.wl-input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1px solid var(--wl-border);
  border-radius: 14px;
  background: var(--wl-input-bg);
  color: var(--wl-ink);
  font-size: 16px;
  font-weight: 500;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wl-input::placeholder { color: #A9A0C4; }
.wl-input:focus {
  outline: none;
  border-color: var(--wl-purple-accent);
  box-shadow: 0 0 0 3px rgba(123, 43, 239, .12);
}

/* Oko pro zobrazení/skrytí PIN */
.wl-pin-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--wl-purple-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.wl-pin-toggle:hover { color: var(--wl-purple-600); }

/* Odkaz „Zapomněli jste PIN?" */
.wl-forgot {
  display: block;
  margin: 4px 0 0;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--wl-purple-accent);
  text-decoration: underline;
}
.wl-forgot:hover { color: var(--wl-purple-600); }

/* Primární CTA */
.wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 58px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease,
              border-color .15s ease, box-shadow .15s ease,
              transform .15s ease;
}
.wl-btn--primary {
  background: var(--wl-orange);
  color: var(--wl-white);
  border: none;
}
.wl-btn--primary:hover {
  background: var(--wl-orange-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 103, 29, .30);
}
.wl-btn--primary:active { transform: translateY(0); }
.wl-btn--primary:disabled { opacity: .6; cursor: not-allowed; }

/* Loading stav */
.wl-btn--loading {
  pointer-events: none;
  opacity: .7;
}
.wl-btn--loading .wl-btn__spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wl-spin .7s linear infinite;
}
.wl-btn--outline.wl-btn--loading .wl-btn__spinner {
  border-color: rgba(111, 32, 217, .25);
  border-top-color: var(--wl-violet, #6F20D9);
}
@keyframes wl-spin {
  to { transform: rotate(360deg); }
}

/* Oddělovač „nebo" */
.wl-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 0;
}
.wl-divider::before,
.wl-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--wl-border);
}
.wl-divider span {
  font-size: 13px;
  font-weight: 600;
  color: var(--wl-ink);
  text-transform: lowercase;
}

/* Sekundární — e-mailový odkaz */
.wl-btn--outline {
  background: transparent;
  border: 1.5px solid var(--wl-purple-accent);
  color: #25105E;
  font-weight: 600;
}
.wl-btn--outline i { color: var(--wl-purple-accent); }
.wl-btn--outline:hover {
  background: rgba(123, 43, 239, .08);
  border-color: var(--wl-purple-600);
  color: var(--wl-purple-900);
}

/* Bezpečnostní informace */
.wl-security {
  margin: 28px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid var(--wl-border);
  padding-top: 18px;
}
.wl-security__item {
  flex: 1 1 0;
  width: 30%;
  display: flex;
  align-items: center;
  gap: 9px;
}
.wl-security__item i {
  font-size: 25px;
  color: var(--wl-purple-accent);
}
.wl-security__item .wl-security__text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wl-secondary);
}
.wl-security__item .wl-security__text b {
  font-weight: 700;
  color: var(--wl-ink);
}

/* Kontaktový footer */
.wl-login-footer {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--wl-secondary);
}
.wl-login-footer a {
  color: var(--wl-orange);
  font-weight: 600;
  text-decoration: none;
}
.wl-login-footer a:hover { color: var(--wl-orange-600); }

/* ═══════════════════════════════════════════════════════════════
   RESPONZIVNOST
   ═══════════════════════════════════════════════════════════════ */

/* Tablet 768–1199 — dvousloupcový, zmenšený */
@media (max-width: 1199px) {
  .wn-login-hero {
    width: 470px;
    max-width: calc(100vw - 620px - 4%);
  }
  .wn-hero__title { font-size: 46px; }
  .wn-hero__lead { font-size: 20px; }
  .wn-hero__services { gap: 14px; }
  .wn-service__icon { width: 56px; height: 56px; }
  .wn-login-card {
    width: 470px;
    padding: 46px 42px;
  }
  .wn-login-card__title { font-size: 32px; }
}

/* Mobil < 768 — jeden sloupec, pořadě: Logo → Headline → Popis → Karta */
@media (max-width: 767px) {
  html, body {
    height: auto;
    min-height: 100%;
  }
  body.wn-login-page {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .wn-login-shell {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
  }

  .wn-login-hero {
    position: static;
    display: block;
    width: auto;
    max-width: none;
    padding: 20px 18px 0;
  }
  .wn-hero__title { font-size: 34px; margin-top: 24px; }
  .wn-hero__lead { font-size: 18px; margin-top: 14px; }
  /* Služby skryty na velmi malých displejích */
  .wn-hero__services { display: none; }

  .wn-login-card {
    position: static;
    width: auto;
    margin: 16px;
    padding: 26px 20px;
    border-radius: 22px;
    transform: none;
    top: auto;
    right: auto;
    box-sizing: border-box;
  }
  .wn-login-card__title { font-size: 26px; }
  .wl-security { gap: 2px; }
  .wl-security__item { gap: 5px; }
  .wl-security__item i { font-size: 20px; }
  .wl-security__item .wl-security__text { font-size: 10px; }
}