/* Fakto: registrace a přihlášení (jen design, nic není napojené) */

:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #dcdce0;
  --field: #ffffff;
  --focus: #1d1d1f;
  --btn-dark: #1d1d1f;
  --btn-dark-hover: #000000;
  --panel: #151517;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--font);
  color: var(--text);
  background: #f2f2f3;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---------- levá strana: jemná bílo-šedá ---------- */

.side-form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 48px;
  background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #f5f5f6 45%, #e6e6e8 100%);
}

.logo {
  position: absolute;
  top: 28px;
  left: 32px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.form-wrap {
  width: 100%;
  max-width: 400px;
  animation: rise 0.6s ease-out both;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- tlačítka Google / Apple ---------- */

.social {
  display: grid;
  gap: 12px;
}

.social.two { grid-template-columns: 1fr 1fr; }

.btn-soft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font: 500 0.95rem var(--font);
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-soft:hover {
  border-color: #c4c4c9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.btn-soft svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- oddělovač NEBO ---------- */

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #9a9aa0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- políčka ---------- */

.field { margin-bottom: 18px; }

label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.input-wrap { position: relative; }

input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: 400 1rem var(--font);
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(29, 29, 31, 0.08);
}

.input-wrap input { padding-right: 48px; }

.eye {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.eye:hover { color: var(--text); background: #f2f2f3; }
.eye svg { width: 20px; height: 20px; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 22px;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
}

.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--btn-dark); }

/* ---------- hlavní tlačítko ---------- */

.btn-main {
  width: 100%;
  height: 50px;
  margin-top: 6px;
  font: 600 1rem var(--font);
  color: #ffffff;
  background: var(--btn-dark);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-main:hover {
  background: var(--btn-dark-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-main:active { transform: translateY(0); }

/* ---------- odkazy pod formulářem ---------- */

.switch {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.switch a, .small a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.switch a:hover, .small a:hover { text-decoration: underline; }

.small {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.small a { font-weight: 400; text-decoration: underline; text-decoration-color: #c4c4c9; }

/* ---------- pravá strana: panel značky ---------- */

.side-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(32px, 7vw, 110px);
  color: #ffffff;
  background: var(--panel);
}

/* jemná tečkovaná síť, jako tisíce skutečných lidí */
.side-brand::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 70% 45%, #000 0%, transparent 60%);
          mask-image: radial-gradient(circle at 70% 45%, #000 0%, transparent 60%);
  animation: drift 40s linear infinite;
}

.side-brand::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%);
}

.side-brand > * { position: relative; z-index: 1; }

.top-action {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2;
  display: flex;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  font: 500 0.9rem var(--font);
  color: var(--text);
  text-decoration: none;
  background: #ffffff;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pill:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }

.kicker {
  margin: 0 0 16px;
  font: 500 0.85rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  animation: rise 0.8s 0.15s ease-out both;
}

.side-brand h2 {
  margin: 0 0 18px;
  max-width: 12ch;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  animation: rise 0.8s 0.25s ease-out both;
}

.side-brand p.sub {
  margin: 0;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  animation: rise 0.8s 0.35s ease-out both;
}

/* ---------- registrace: vše na středu ---------- */

.center-page {
  min-height: 100vh;
  padding: 0 24px 64px;
  background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #f5f5f6 45%, #e6e6e8 100%);
  background-attachment: fixed;
}

.center-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 8px;
}

.logo-inline {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.pill-line {
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pill-line:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }

.signup-wrap {
  width: 100%;
  max-width: 440px;
  margin: 24px auto 0;
  animation: rise 0.6s ease-out both;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: #9a9aa0;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.steps li + li::before {
  content: "";
  width: 28px;
  height: 1px;
  margin-right: 0;
  background: var(--line);
}

.steps span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
}

.steps li.active { color: var(--text); font-weight: 500; }
.steps li.active span { color: #ffffff; background: var(--btn-dark); border-color: var(--btn-dark); }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.row-2 .field { margin-bottom: 0; }

.hint {
  margin: 8px 0 18px;
  font-size: 0.8rem;
  color: var(--muted);
}

.prefix .at {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.prefix input { padding-left: 32px; padding-right: 14px; }

/* síla hesla */
.strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.strength i {
  height: 4px;
  border-radius: 4px;
  background: #dedee2;
  transition: background 0.3s;
}

.strength[data-level="1"] i:nth-child(-n+1) { background: #d9534f; }
.strength[data-level="2"] i:nth-child(-n+2) { background: #e0a030; }
.strength[data-level="3"] i:nth-child(-n+3) { background: #8bbf3f; }
.strength[data-level="4"] i { background: #2e9e5b; }

.rules {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
}

.rules li {
  position: relative;
  padding-left: 20px;
  line-height: 1.7;
  transition: color 0.2s;
}

.rules li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid #c4c4c9;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 0.2s, border-color 0.2s;
}

.rules li.ok { color: var(--text); }
.rules li.ok::before { background: #2e9e5b; border-color: #2e9e5b; }

/* souhlasy */
.agree {
  margin: 22px 0 18px;
  padding: 16px 16px 4px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.agree .check { align-items: flex-start; margin: 0 0 12px; line-height: 1.4; }
.agree .check input { margin-top: 1px; flex-shrink: 0; }
.agree .check a { color: var(--text); font-weight: 600; text-decoration: none; }
.agree .check a:hover { text-decoration: underline; }
.agree .optional { color: var(--muted); }

.next-note {
  margin: 18px 0 0;
  line-height: 1.5;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.next-note svg { width: 15px; height: 15px; margin-right: 4px; vertical-align: -2px; }

@media (max-width: 480px) {
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .row-2 .field { margin-bottom: 18px; }
  .hint-top { margin-top: -8px; }
  .steps { font-size: 0.72rem; gap: 6px; }
  .steps li + li::before { width: 14px; }
}

/* ---------- animace ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(18px, 18px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- mobil: jen formulář ---------- */

@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; }
  .side-brand { display: none; }
  .side-form { min-height: 100vh; padding-top: 88px; }
  .logo { left: 20px; top: 22px; }
}

@media (max-width: 420px) {
  .social.two { grid-template-columns: 1fr; }
  h1 { font-size: 1.5rem; }
}
