:root {
  --ink: #0b1f24;
  --ink-2: #33454a;
  --muted: #6b7a7e;
  --line: #dfe5e6;
  --bg: #f6f8f8;
  --mint: #2dd4bf;
  --mint-deep: #0d9488;
  --error: #c2333b;
  --error-bg: #fdecee;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

.auth { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }

/* ---------- leva strana ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 56px 36px;
  color: #e6f4f2;
  background:
    radial-gradient(900px 500px at 15% 110%, rgba(45, 212, 191, .28), transparent 60%),
    radial-gradient(600px 400px at 100% 0%, rgba(13, 148, 136, .35), transparent 65%),
    linear-gradient(160deg, #0a2228 0%, #071619 100%);
}
.hero-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.wordmark { font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: #fff; }
.wordmark b { font-weight: 700; color: var(--mint); }
.wordmark.dark { color: var(--ink); font-size: 20px; }
.wordmark.dark b { color: var(--mint-deep); }

.hero-copy { position: relative; z-index: 1; max-width: 480px; margin: 48px 0 140px; }
.hero-copy h2 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; color: #fff; }
.hero-copy p { font-size: 17px; color: #b5cfcb; margin: 0 0 36px; max-width: 420px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { display: flex; align-items: center; gap: 14px; color: #d6ebe8; }
.ic {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(45, 212, 191, .12); border: 1px solid rgba(45, 212, 191, .25);
}
.ic svg, .secure svg, .eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic svg { color: var(--mint); }

.wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; opacity: .55; }
.wave rect { fill: url(#waveGrad); }
.hero-foot { position: relative; z-index: 1; font-size: 13px; color: #7fa39e; }

/* ---------- forma ---------- */
.panel { display: grid; place-items: center; padding: 40px 24px; }
.card { width: 100%; max-width: 380px; }
.mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 36px; }
h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 28px; }

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; margin-bottom: 18px; border-radius: 10px;
  background: var(--error-bg); color: var(--error); font-size: 14px; font-weight: 500;
}
.alert.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%; height: 46px; padding: 0 14px;
  font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover { border-color: #c5cfd0; }
.field input:focus { outline: none; border-color: var(--mint-deep); box-shadow: 0 0 0 4px rgba(13, 148, 136, .14); }
.field.invalid input { border-color: var(--error); }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
}
.eye:hover { background: var(--bg); color: var(--ink); }
.eye[aria-pressed="true"] { color: var(--mint-deep); }

.check { display: flex; align-items: center; gap: 10px; margin: 4px 0 24px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--mint-deep); margin: 0; }

.submit {
  position: relative; width: 100%; height: 48px; border: 0; border-radius: 10px; cursor: pointer;
  font: 600 15px Inter, system-ui, sans-serif; color: #fff;
  background: var(--ink);
  box-shadow: 0 1px 2px rgba(11, 31, 36, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: background .15s, transform .05s;
}
.submit:hover { background: #12333a; }
.submit:active { transform: translateY(1px); }
.submit:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(13, 148, 136, .3); }
.submit .spinner {
  display: none; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
.submit.busy { pointer-events: none; }
.submit.busy .label { visibility: hidden; }
.submit.busy .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.help { font-size: 13px; color: var(--muted); text-align: center; margin: 20px 0 0; }
.secure {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.secure svg { width: 14px; height: 14px; color: var(--mint-deep); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .hero { display: none; }
  .mobile-brand { display: flex; }
  .panel { place-items: start center; padding: 56px 16px 32px; }
}

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