/* ============================================================
   SyncHub – Auth CSS  (v3.0)
   ============================================================
   🎨 BARVY – EDITUJ ZDE:
   Stačí změnit proměnné níže, zbytek se přizpůsobí automaticky.
   ============================================================ */

:root {
  /* --- HLAVNÍ BARVA (tlačítko, linky, akcenty) --- */
  --clr-primary:        #2563eb;   /* ← ZMĚŇ ZDE svoji barvu */
  --clr-primary-hover:  #1d4ed8;   /* ← trochu tmavší varianta */
  --clr-primary-text:   #ffffff;   /* text na primary tlačítku */

  /* --- POZADÍ STRÁNKY --- */
  --clr-page-bg:        #f0f4f8;   /* světle šedá za kartou */

  /* --- KARTA – LEVÝ PANEL (form) --- */
  --clr-card-bg:        #ffffff;
  --clr-text:           #111827;
  --clr-muted:          #6b7280;
  --clr-border:         #e5e7eb;
  --clr-input-bg:       #f9fafb;
  --clr-input-focus:    #2563eb;   /* ← stejná jako primary nebo jiná */

  /* --- PRAVÝ PANEL (novinky) --- */
  --clr-right-bg:       #1e2d3d;   /* tmavý panel vpravo */
  --clr-right-text:     #f1f5f9;
  --clr-right-muted:    rgba(241,245,249,.60);
  --clr-right-bullet:   #f59e0b;   /* barva puntíků u novinek */
  --clr-right-link:     #f59e0b;   /* barva odkazů v novinách */

  /* --- OSTATNÍ --- */
  --clr-shadow:         rgba(0,0,0,.10);
  --radius-card:        20px;
  --radius-btn:         10px;
  --radius-input:       8px;
  --font-main:          'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */

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

body.sh-auth {
  min-height: 100vh;
  background: var(--clr-page-bg);
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  color: var(--clr-text);
}

/* ============================================================
   KARTA
   ============================================================ */

.sh-auth-wrap {
  width: 100%;
  max-width: 920px;
}

.sh-auth-card {
  display: flex;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow:
    0 4px 6px var(--clr-shadow),
    0 20px 60px rgba(0,0,0,.12);
  min-height: 580px;
}

/* ============================================================
   LEVÝ PANEL – FORMULÁŘ
   ============================================================ */

.sh-auth-main {
  flex: 0 0 52%;
  background: var(--clr-card-bg);
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
}

/* Logo */
.sh-auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.sh-auth-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary-text);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.sh-auth-logo-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
}

/* Nadpis */
.sh-auth-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.sh-auth-sub {
  font-size: 13px;
  color: var(--clr-muted);
  margin-bottom: 28px;
}

/* ============================================================
   FORMULÁŘ
   ============================================================ */

.sh-form { display: flex; flex-direction: column; gap: 14px; }

.sh-field { display: flex; flex-direction: column; gap: 6px; }

.sh-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text);
}

.sh-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-input);
  border: 1.5px solid var(--clr-border);
  background: var(--clr-input-bg);
  font-size: 14px;
  color: var(--clr-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.sh-field input::placeholder { color: #9ca3af; }

.sh-field input:focus {
  border-color: var(--clr-input-focus);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Password wrapper */
.sh-pass { position: relative; }
.sh-pass input { padding-right: 44px; }
.sh-pass-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: .5;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}
.sh-pass-eye:hover { opacity: 1; }

/* Řádek remember + forgot */
.sh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sh-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--clr-muted);
  cursor: pointer;
}

.sh-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--clr-primary);
  cursor: pointer;
}

.sh-link {
  font-size: 13px;
  color: var(--clr-primary);
  text-decoration: none;
  font-weight: 500;
}
.sh-link:hover { text-decoration: underline; }
.sh-link.strong { font-weight: 700; }

/* Tlačítka */
.sh-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-btn);
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, opacity .15s;
}

.sh-btn-primary {
  background: var(--clr-primary);
  color: var(--clr-primary-text);
}
.sh-btn-primary:hover { background: var(--clr-primary-hover); }
.sh-btn-primary:disabled { opacity: .55; cursor: not-allowed; }

.sh-btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
  font-weight: 600;
}
.sh-btn-outline:hover { background: var(--clr-page-bg); }

/* Google G */
.sh-g {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
}

/* Spodní text */
.sh-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--clr-muted);
  margin-top: 4px;
}

/* Pane titulky (register, forgot, reset) */
.sh-pane-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.sh-pane-sub {
  font-size: 13px;
  color: var(--clr-muted);
  margin-bottom: 20px;
}

/* Status */
.sh-status {
  font-size: 13px;
  min-height: 18px;
  margin-top: 6px;
  text-align: center;
}
.sh-status.ok  { color: #16a34a; }
.sh-status.err { color: #dc2626; }

.hidden { display: none !important; }

/* ============================================================
   PRAVÝ PANEL – NOVINKY
   ============================================================ */

.sh-auth-news {
  flex: 0 0 48%;
  background: var(--clr-right-bg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  color: var(--clr-right-text);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.sh-news-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -.01em;
}

.sh-news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sh-news-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--clr-right-text);
}

.sh-news-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-right-bullet);
  flex-shrink: 0;
  margin-top: 6px;
}

.sh-news-date {
  font-weight: 700;
  color: var(--clr-right-muted);
  font-size: 12px;
  margin-bottom: 3px;
}

.sh-news-text { color: var(--clr-right-text); }

.sh-news-text a {
  color: var(--clr-right-link);
  text-decoration: none;
  font-weight: 600;
}
.sh-news-text a:hover { text-decoration: underline; }

/* ============================================================
   THEME TOGGLE (volitelné – zatím skryté, lze zapnout)
   ============================================================ */

.sh-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--clr-border);
  background: transparent;
  color: var(--clr-muted);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  align-self: flex-start;
}
.sh-theme-toggle .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-primary);
}

/* ============================================================
   VERZE HISTORIA (volitelné)
   ============================================================ */

.sh-history { margin-bottom: 20px; }
.sh-history-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-muted);
  margin-bottom: 6px;
}
.sh-history-list {
  padding-left: 16px;
  font-size: 12px;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ============================================================
   RESPONZIVITA
   ============================================================ */

/* Tablet – zúžíme padding */
@media (max-width: 820px) {
  .sh-auth-card { flex-direction: column; }

  .sh-auth-main {
    flex: none;
    width: 100%;
    padding: 36px 28px;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
  }

  .sh-auth-news {
    flex: none;
    width: 100%;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    padding: 32px 28px;
  }
}

/* Mobil */
@media (max-width: 480px) {
  body.sh-auth { padding: 12px; }

  .sh-auth-main { padding: 28px 20px; }
  .sh-auth-news  { padding: 24px 20px; }

  .sh-auth-title { font-size: 24px; }
  .sh-news-title { font-size: 17px; }
}
