/* ==== SPOLEČNÝ ZÁKLAD KARTY — bílá karta na světlém pozadí,
   sjednoceno s hlavní paletou webu (var(--accent) = #c8102e) ==== */
.glass-card {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  padding: 35px 25px;
  border: 1px solid var(--glass-border, #e0e0e0);
  background: var(--bg-primary, #fff);
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.12));
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(200,16,46,0.14);
}

.glass-card h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  color: var(--text-primary);
}

.glass-card form {
  display: flex;
  flex-direction: column;
}

.glass-card label {
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.glass-card input,
.glass-card select {
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--glass-border, #e0e0e0);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition-normal);
  background: var(--bg-secondary, #f8f7f5);
  color: var(--text-primary);
  font: inherit;
}

.glass-card .form-field input,
.glass-card .form-field select {
  margin-bottom: 4px;
}

.glass-card input:focus,
.glass-card select:focus {
  border-color: var(--accent);
  background: var(--bg-primary, #fff);
  box-shadow: 0 0 0 3px var(--accent-subtle, rgba(200,16,46,0.1));
}

.glass-card input::placeholder {
  color: var(--text-muted);
}

.glass-card select option {
  color: var(--text-primary);
}

.glass-card small {
  display: block;
  margin: 0 0 10px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.glass-card button {
  position: relative;
  overflow: hidden;
  padding: 12px;
  font-size: 1.05rem;
  font-weight: bold;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  background: var(--accent);
  color: #fff;
}

.glass-card button:hover {
  background: var(--accent-active);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,16,46,0.3);
}

.glass-card button:active {
  transform: scale(0.98);
}

/* Ripple efekt */
.glass-card button .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-elegant 900ms cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  opacity: 0.6;
  filter: blur(2px);
}

@keyframes ripple-elegant {
  0% { transform: scale(0); opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { transform: scale(3.5); opacity: 0; }
}

.glass-card p {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 15px;
  color: var(--text-secondary);
}

.glass-card .link {
  font-weight: 500;
  text-decoration: underline;
  color: var(--accent);
  transition: color 0.25s ease;
}

.glass-card .link:hover {
  color: var(--accent-active);
}

/* ==== REGISTRACE ==== */
#registration {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--bg-secondary, #f8f7f5);
}

#registration .glass-card {
  max-width: 560px;
}

/* ==== Sdílená hlavička auth karet (registrace i přihlášení) ==== */
.auth-brand {
  text-align: center;
  margin-bottom: 22px;
}
.auth-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  border-radius: 14px;
  background: var(--accent-subtle, rgba(200,16,46,0.1));
  color: var(--accent);
}
.auth-brand-icon svg { width: 24px; height: 24px; }
.auth-brand h2 {
  margin: 4px 0 4px 0;
}
.auth-subtitle {
  margin: 0 !important;
  font-size: 0.85rem !important;
  color: var(--text-muted);
}

/* ==== Sekce formuláře (fieldset) ==== */
.form-section {
  border: 1px solid var(--glass-border, #e0e0e0);
  border-radius: 14px;
  padding: 16px 16px 4px 16px;
  margin: 0 0 18px 0;
}
.form-section legend {
  padding: 0 8px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.form-field {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
}
.field-row {
  display: flex;
  gap: 14px;
}
.field-row .form-field {
  width: 100%;
}
.optional {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.85em;
}

@media (max-width: 560px) {
  .field-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Checkbox */
.checkbox-container {
  margin: 10px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.required {
  color: var(--accent);
}

.required-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 28px;
}

.consent-more {
  margin: 4px 0 0 28px;
}

.consent-more summary {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
}

.consent-more p {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Error & Success hlášky */
.error {
  color: #8f0c22;
  background: #fdecee;
  border: 1px solid #f5a3ad;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 500;
  text-align: center;
}

.success {
  color: #16815a;
  background: #e8f6ef;
  border: 1px solid #9fd9bf;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 500;
  text-align: center;
}

/* Marketingový checkbox – decentní barva */
#marketing + span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

#marketing:checked + span {
  color: var(--accent);
  font-weight: 500;
}
