/* =============================================
   EVA - Elektronická Video Autentizace
   Styleguide: Bank iD branding
   Barvy: #0500ff (primární modrá), #1e2329 (tmavá), #8d394f (akcent)
   Font: Inter, Poppins
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f9fafb;
  color: #1e2329;
}

/* =============================================
   Header
   ============================================= */
.header {
  background: #1e2329;
  color: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo svg, .header-logo img { width: 36px; height: 36px; }
.header-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}
.header-subtitle { font-size: 12px; color: #99a1af; }

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =============================================
   User Badge
   ============================================= */
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F0EFFD;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  color: #1e2329;
}

.check { color: #4ade80; }

/* =============================================
   Main Layout
   ============================================= */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* =============================================
   Login Card
   ============================================= */
.login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.login-card h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-card .subtitle {
  font-size: 14px;
  color: #4a5565;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* =============================================
   Meeting Info
   ============================================= */
.meeting-info {
  background: #F0EFFD;
  border: 1px solid rgba(5,0,255,0.15);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: left;
  font-size: 14px;
}
.meeting-info p { margin-bottom: 4px; }

/* =============================================
   Error Message
   ============================================= */
.error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

/* =============================================
   BankID Button (dle styleguide)
   ============================================= */
/* BankID tlačítko - dle oficiálního styleguide
   Primární: černé pozadí, bílý text a logo
   Font: Poppins 600 SemiBold
   Výška: 48px, border-radius: 8px
   Žádná jiná vizualizace není přípustná */
.bankid-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 24px;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.bankid-btn:hover { opacity: 0.9; }
.bankid-btn:active { opacity: 0.8; }
.bankid-btn img, .bankid-btn svg { height: 20px; width: auto; flex-shrink: 0; }

/* BankID tlačítko - sekundární varianta (světlé pozadí) */
.bankid-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 24px;
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.bankid-btn-secondary:hover { opacity: 0.9; }

/* =============================================
   Steps
   ============================================= */
.steps { margin-top: 28px; text-align: left; }
.steps h3 {
  font-size: 14px;
  font-weight: 600;
  color: #364153;
  margin-bottom: 14px;
  text-align: center;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #4a5565;
  line-height: 1.6;
}
.step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #000000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* =============================================
   Security Note
   ============================================= */
.security-note {
  margin-top: 24px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  color: #4a5565;
}
.security-note a { color: #0500ff; text-decoration: none; }
.security-note a:hover { text-decoration: underline; }

/* =============================================
   Consent Card
   ============================================= */
.consent-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 36px;
  max-width: 680px;
  width: 100%;
}
.consent-card h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.consent-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.consent-box > p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }

.consent-data {
  background: #fff;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
}
.consent-data h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: #364153; }

.data-table { width: 100%; }
.data-table td { padding: 4px 0; font-size: 13px; }
.data-table .label { color: #4a5565; width: 140px; }

.consent-details h3 { font-size: 14px; font-weight: 600; margin: 14px 0 8px; color: #364153; }
.consent-details ul { padding-left: 20px; font-size: 13px; color: #4a5565; }
.consent-details li { margin-bottom: 4px; line-height: 1.5; }

.consent-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

.btn-agree {
  padding: 12px 32px;
  background: #000000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-agree:hover { opacity: 0.9; }

.btn-disagree {
  padding: 12px 32px;
  background: #e5e7eb;
  color: #364153;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s;
}
.btn-disagree:hover { background: #d1d5dc; }

.controller-info {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 13px;
}
.controller-info .label { color: #99a1af; font-size: 11px; }

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.consent-checkbox:hover { border-color: #0500ff; }
.consent-checkbox input { margin-top: 3px; width: 18px; height: 18px; cursor: pointer; accent-color: #0500ff; }
.consent-checkbox .text { font-size: 13px; line-height: 1.6; color: #364153; }

/* =============================================
   Section Numbers (Consent page)
   ============================================= */
.section { margin-bottom: 24px; }
.section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-num {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.num-mandatory { background: #1e2329; color: #fff; }
.num-optional { background: #F0EFFD; color: #000; }
.section-title { font-size: 16px; font-weight: 600; }

/* =============================================
   Footer
   ============================================= */
.footer {
  background: #1e2329;
  color: #99a1af;
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  flex-shrink: 0;
}
.footer a { color: #d1d5dc; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 520px) {
  .login-card, .consent-card { padding: 24px 20px; }
  .header { padding: 10px 14px; }
  .header-title { font-size: 16px; }
  .consent-actions { flex-direction: column; }
}
