*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  background: #141416;
}

/* ═══════════════════════════════════════
   WRAPPER — 2 sloupce
═══════════════════════════════════════ */
.login-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ═══════════════════════════════════════
   LEVÁ STRANA — tmavá, marketing
═══════════════════════════════════════ */
.login-left {
  flex: 1.1;
  background: #141416;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 52px 40px;
  position: relative;
  overflow: hidden;
}

/* dekorativní kruhy */
.login-left::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.055);
  pointer-events: none;
}
.login-left::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}

.login-left-tagline {
  font-size: .88em;
  color: rgba(255,255,255,.38);
  font-weight: 400;
  position: relative;
  z-index: 1;
  letter-spacing: .01em;
}

.login-left-center {
  position: relative;
  z-index: 1;
}

.login-left-hero {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -.04em;
  margin-bottom: 36px;
}

/* novinky — tmavý styl */
.news-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border-left: none;
}
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 12px 16px;
  transition: background .15s;
}
.news-item:hover {
  background: rgba(255,255,255,.08);
}
.news-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  position: static;
  left: auto;
  top: auto;
  box-shadow: none;
  border: none;
}
.news-content {
  flex: 1;
  margin-left: 0;
  background: none;
  border-radius: 0;
  padding: 0;
}
.news-date {
  font-size: .78em;
  color: rgba(255,255,255,.35);
  margin-bottom: 2px;
  font-weight: 500;
}
.news-title {
  font-size: .9em;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
}
.news-desc {
  font-size: .83em;
  color: rgba(255,255,255,.5);
  line-height: 1.4;
}
.news-desc a { color: rgba(255,255,255,.75); text-decoration: underline; }

.login-left-footer {
  font-size: .8em;
  color: rgba(255,255,255,.22);
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════
   PRAVÁ STRANA — bílá, formulář
═══════════════════════════════════════ */
.login-right {
  flex: 0 0 500px;
  background: #fff;
  border-radius: 28px 0 0 28px;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 48px rgba(0,0,0,.22);
  min-width: 380px;
}

/* ── Hlavička pravého panelu ── */
.login-right-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 44px;
}

.login-logo-big {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.login-logo-big img { height: 34px; width: auto; }
.login-logo-big span {
  font-size: 1.12em;
  font-weight: 800;
  color: #111c50;
  letter-spacing: -.02em;
}

.login-right-register {
  font-size: .88em;
  color: rgba(60,80,140,.65);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.login-right-register:hover { color: #1840c0; }

/* ── Formulářová část ── */
.login-form-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 44px 32px;
}

/* Override h1 default (bylo globální) */
h1 {
  font-size: 2.3rem;
  font-weight: 900;
  color: #0f1730;
  letter-spacing: -.04em;
  margin-bottom: 28px;
  text-align: left;
  line-height: 1.1;
}

/* chybové boxy */
.error-box, .success-box {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9em;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.error-box   { background: #fff0f3; color: #c0003a; border: 1px solid #fbc7d4; }
.success-box { background: #f0fff6; color: #107040; border: 1px solid #abe8c4; }

/* ── Formulář ── */
.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-size: .82em;
  font-weight: 700;
  color: #3b4778;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 7px;
}

.input-icon {
  display: flex;
  align-items: center;
  background: #fafbff;
  border: 1.8px solid #e2e8f5;
  border-radius: 13px;
  padding: 0 14px;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.input-icon:focus-within {
  border-color: #1840c0;
  box-shadow: 0 0 0 4px rgba(28,64,192,.09);
  background: #fff;
}
.input-icon .icon {
  color: #c5ceea;
  font-size: 1em;
  margin-right: 11px;
  flex-shrink: 0;
}

input[type="password"],
input[type="text"],
input[type="email"] {
  border: none;
  background: transparent;
  padding: 14px 0;
  width: 100%;
  font-size: 1em;
  outline: none;
  font-family: inherit;
  color: #111c50;
  box-shadow: none;
}

/* EYE — show password */
.input-icon-pwd input { padding-right: 38px; }
.showpwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #c5ceea;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: color .15s;
}
.showpwd:hover, .showpwd.active { color: #1840c0; }

/* ── Hlavní tlačítko ── */
.btn-main {
  width: 100%;
  padding: 15px;
  background: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.05em;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 8px 28px rgba(249,115,22,.28);
  transition: opacity .15s, transform .12s;
  margin-top: 6px;
  letter-spacing: .01em;
}
.btn-main:hover { opacity: .93; transform: translateY(-1px); }
.btn-main:active { transform: translateY(0); }
.btn-main:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* dolní linky */
.login-bottom-links {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .9em;
  color: #94a3c4;
}
.login-bottom-links a {
  color: #1840c0;
  font-weight: 600;
  text-decoration: none;
}
.login-bottom-links a:hover { text-decoration: underline; }
.forgot-link { color: #ef4444 !important; }

/* ── Patička pravého panelu ── */
.login-right-footer {
  padding: 18px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8em;
  color: #c0cadf;
  border-top: 1px solid #f0f3fa;
}
.login-right-footer a { color: inherit; text-decoration: none; }
.login-right-footer a:hover { color: #1840c0; }

/* ══════════════════════════════════════
   MODAL: Zapomenuté heslo
══════════════════════════════════════ */
.modal {
  position: fixed;
  z-index: 9000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  padding: 36px 32px 28px;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  max-width: 380px;
  width: 90vw;
  position: relative;
}
.modal-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #111c50;
  margin-bottom: 18px;
}
.modal .close {
  position: absolute;
  right: 18px; top: 14px;
  font-size: 22px;
  cursor: pointer;
  color: #94a3c4;
  font-weight: bold;
  line-height: 1;
  transition: color .15s;
}
.modal .close:hover { color: #111c50; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .login-wrapper { flex-direction: column-reverse; }
  .login-left {
    min-height: 280px;
    padding: 32px 36px;
    border-radius: 0;
  }
  .login-left-hero { font-size: 2.4rem; }
  .login-right {
    flex: none;
    min-width: unset;
    max-width: unset;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  .login-form-box { padding: 20px 36px 32px; }
  .login-right-header { padding: 24px 36px; }
  .login-right-footer { padding: 16px 36px; }
}
@media (max-width: 600px) {
  .login-left { padding: 28px 20px; }
  .login-left-hero { font-size: 1.9rem; }
  .login-form-box { padding: 16px 20px 28px; }
  .login-right-header { padding: 20px; }
  .login-right-footer { padding: 14px 20px; }
  h1 { font-size: 1.8rem; }
}

/* pwd-strength a pwd-rules (pro register.php) */
.pwd-strength-bar {
  height: 6px; width: 0;
  background: #ef4444;
  border-radius: 6px;
  margin: 6px 0 4px;
  transition: background .2s, width .3s;
}
.pwd-rules {
  margin: 0 0 10px 0;
  padding: 0 0 0 18px;
  list-style: disc;
  color: #aaa;
  font-size: .93em;
}
.pwd-rules li { margin-bottom: 2px; transition: color .15s; }
.pwd-rules .rule-ok { color: #22c55e; font-weight: 700; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1em;
}
input[type="checkbox"] {
  accent-color: #1840c0;
  width: 17px; height: 17px;
}

/* form-toast (fallback, nový shopins-toast je v toast.css) */
.form-toast {
  position: fixed;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffecb5;
  border-radius: 12px;
  font-weight: 600;
  padding: 12px 28px;
  z-index: 2000;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  font-size: 1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.form-toast.show { opacity: 1; pointer-events: auto; }
