﻿@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900');

:root {
  --bg: #0b0d12;
  --panel: #262b35;
  --panel-2: #2e3440;
  --text: #DDC118;
  --muted: #a9b0be;
  --accent: #7c3aed; /* primární */
  --accent-2: #22d3ee;
  --radius: 16px;
  --shadow: 0 20px 40px rgb(0 0 0 / 35%);
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --input: #1e232b;
  --input-bd: #3a4252;
  --success: #36B621;
  --warn: #eab308;
  --error: #ef4444;
  --font: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box
}

html, body {
  height: 100%
}


body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: url('../images/challengeItBg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: center;
}

h1 {
  margin: 5px 0 0 0;
  font-size: 42px;
}

h3 {
  margin: 5px 0 0 0;
  color: black;
}

a {
  color: black;
  text-decoration: none;
}

desktop-display {
  display: block;
}

.reg-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-3);
}

.txt-center {
  text-align: center;
}

main-title {
}

.reg-card {
  width: 100%;
  max-width: 520px;
  text-align: center;
  background: linear-gradient(180deg, #313846, #2a313e);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.06);
}

.reg-title {
  margin: 0 0 4px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .2px
}

.reg-subtitle {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-weight: 600
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-1)
}

.reg-label {
  display: block;
  font-size: 14px;
  color: #cfd5e3;
  margin-bottom: 6px
}

.reg-field {
}

.reg-input, .reg-select {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--input-bd);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  outline: none;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .06s ease;
  appearance: none;
}

  .reg-input:focus, .reg-select:focus {
    border-color: #8b95a9;
    box-shadow: 0 0 0 4px rgba(221, 193, 24, 0.15);
  }

/* Zvýrazněné selecty (ne zelené) */
.ci-select--emph {
  border-color: #DDC118;
  background: linear-gradient(180deg, #232832, #1e232c);
  box-shadow: inset 0 0 0 1px rgba(221, 193, 24, 0.25);
}

  .ci-select--emph:focus {
    box-shadow: 0 0 0 5px rgba(221, 193, 24, 0.22), inset 0 0 0 1px rgba(221, 193, 24, 0.35);
  }

option {
  color: black;
}

/* caret pro select */
.reg-select {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath opacity='.8' d='M5 7l5 6 5-6H5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.reg-help {
  font-size: 12px;
  color: #c9d2e0;
  margin-top: 6px
}

.reg-val {
  color: var(--error);
  font-size: 12px;
  margin-top: 6px;
  display: block
}

.reg-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: #d7dbea;
  margin-top: 4px
}

  .reg-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent)
  }

.reg-actions {
  margin-top: var(--space-3)
}

.reg-btn {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 12px 16px;
  font-weight: 600;
  background: #3a414f;
  color: var(--text);
  cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, filter .15s ease;
  letter-spacing: 1px;
}

  .reg-btn:hover {
    filter: brightness(1.02)
  }

  .reg-btn:active {
    transform: translateY(1px)
  }

.reg-btn--primary {
  background: rgba(250, 250, 0,0.5);
  color: #0b0d12;
  text-transform: uppercase;
  font-size: 16px;
}

.reg-btn--google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 400;
}

.reg-divider {
  text-align: center;
  color: #b6bed0;
}

.google-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* Volitelné – fade-in pro odhalení bloku s výzvou */
#ChallengeField[hidden] {
  display: none;
}

#ChallengeField {
  animation: fadeIn .2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* responsivita */
@media (max-width: 580px) {
  body {
    background-position-x: -600px;
  }

  .reg-wrap {
    min-height: 85%;
  }

  .desktop-display {
    display: none;
  }
}


@media (max-width: 420px) {
  

  .reg-card {
    padding: 12px
  }

  .reg-title {
    font-size: 24px
  }

  .reg-subtitle {
    margin: 0 0 var(--space-1);
    font-size: 14px;
  }
}
