* { box-sizing: border-box; }

:root{
  --c1:#00ffff;
  --c2:#ff00ff;
  --bg:#000;
  --text:#fff;
  --line: rgba(255,255,255,0.25);
}

/* A11y helper */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

html, body { height: 100%; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  position:relative;
  overflow-x:hidden;
  padding: 40px 16px;
}

/* Background */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(0,255,255,0.30), transparent 70%),
    radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
  z-index:-1;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: backgroundPulse 10s ease-in-out infinite;
}

.container{
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 1.0s ease-out 0.2s forwards;
}

h1{
  margin:0 0 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.15;
  font-size: 44px;
  background: linear-gradient(90deg, var(--c1) 0%, var(--c2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* PULZUJÍCÍ LINKA */
.pulse-line{
  height: 2px;
  width: 52%;
  margin: 18px auto 26px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.65), transparent);
  opacity: 0.6;
  animation: pulseLine 3.2s ease-in-out infinite;
}

.sub{
  margin: 0 0 28px;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}

/* Form */
.form{
  margin-top: 8px;
  display:flex;
  flex-direction:column;
  gap: 16px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInForm 1.2s ease-out 0.7s forwards;
}

input[type="text"],
input[type="email"]{
  width: 100%;
  padding: 14px 10px;
  font-size: 15px;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--line);
  outline: none;
  transition: border-color .25s ease;
}

input::placeholder{ color: rgba(255,255,255,0.35); }

input:focus{
  border-bottom-color: rgba(0,255,255,0.7);
}

button{
  width: 100%;
  padding: 14px 16px;
  background: var(--c1);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .3s ease, background-color .3s ease;
}

button:hover{
  background: #00e8e8;
  box-shadow: 0 0 18px rgba(0,255,255,0.35);
  transform: translateY(-1px);
}

button:disabled{
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.error{
  margin: -6px 0 0;
  font-size: 13px;
  color: #ff9aa9;
}

.terms{
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,0.45);
}

.terms a{
  color: rgba(0,255,255,0.95);
  text-decoration: underline;
  transition: color .2s ease;
}
.terms a:hover{ color: rgba(255,0,255,0.95); }

.footer{
  margin-top: 26px;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  opacity: 0.8;
}

/* Success state */
.success-wrap{
  animation: fadeInUp 0.9s ease-out 0.1s forwards;
  opacity: 0;
}

.success-title{
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 14px;
}

.success-text{
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 18px;
  line-height: 1.5;
}

.success-link{
  display: inline-block;
  padding: 12px 22px;
  background: var(--c1);
  color: #000;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
}

@media (max-width: 520px){
  h1{ font-size: 30px; }
  .sub{ font-size: 16px; }
  .pulse-line{
    width: 70%;
    margin: 14px auto 22px;
  }
}

/* Animations */
@keyframes backgroundPulse {
  0% {filter: brightness(1);}
  50% {filter: brightness(1.08);}
  100% {filter: brightness(1);}
}

@keyframes fadeInUp {
  from {opacity:0; transform:translateY(16px);}
  to {opacity:1; transform:translateY(0);}
}

@keyframes fadeInForm {
  from {opacity:0; transform:translateY(10px);}
  to {opacity:1; transform:translateY(0);}
}

@keyframes pulseLine {
  0% { width: 42%; opacity: 0.25; }
  50% { width: 62%; opacity: 0.75; }
  100% { width: 42%; opacity: 0.25; }
}

/* --- GDPR checkboxes (landing) --- */
.terms{
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,0.45);
  text-align: left; /* lepší čitelnost u checkboxů */
}

.terms-check{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
}

.terms-check input[type="checkbox"]{
  margin-top: 2px;
  width: 14px;
  height: 14px;
  accent-color: rgba(0,255,255,0.95); /* moderní prohlížeče */
  flex: 0 0 auto;
}

.terms-check span{
  display: inline;
}

.terms-links{
  margin-top: 10px;
  font-size: 10px;
  opacity: 0.9;
}

.terms-links span{
  margin: 0 6px;
  opacity: 0.5;
}

/* invalid highlight for required checkbox */
.terms-check.is-invalid{
  outline: 2px solid rgba(255,154,169,0.28);
  border-radius: 10px;
  padding: 8px;
}
