:root {
  --yellow: #F5C518;
  --yellow-dim: #C9A010;
  --yellow-glow: rgba(245, 197, 24, 0.18);
  --gray-900: #111214;
  --gray-800: #1A1C1F;
  --gray-700: #242629;
  --gray-600: #2E3035;
  --gray-500: #3E4147;
  --gray-400: #6B7080;
  --gray-200: #A8ADBF;
  --gray-100: #D4D7E3;
  --white: #F0F1F5;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-yellow: 0 0 24px rgba(245, 197, 24, 0.22);
  --transition: 0.22s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--gray-900);
  color: var(--gray-100);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.badge-tcg {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--gray-900);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tag-tcg {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--gray-500);
  border-radius: var(--radius-sm);
  color: var(--gray-200);
  font-size: 11px;
  letter-spacing: .04em;
}

.btn-tcg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-tcg-primary {
  background: var(--yellow);
  color: var(--gray-900);
  box-shadow: var(--shadow-yellow);
}

.btn-tcg-primary:hover {
  background: #ffd740;
  color: var(--gray-900);
  box-shadow: 0 0 32px rgba(245, 197, 24, .35);
  transform: translateY(-1px);
}

.btn-tcg-ghost {
  border: 1px solid var(--gray-500);
  background: transparent;
  color: var(--gray-100);
}

.btn-tcg-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #4ade80;
}

.invalid {
  outline: 1px solid #f87171;
}

.validation-message {
  color: #f87171;
  font-size: 13px;
}

.auth-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 48px 24px 72px;
  overflow: hidden;
}

.auth-page::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(60deg, transparent, transparent 40px, rgba(245, 197, 24, .025) 40px, rgba(245, 197, 24, .025) 41px),
    repeating-linear-gradient(-60deg, transparent, transparent 40px, rgba(245, 197, 24, .025) 40px, rgba(245, 197, 24, .025) 41px);
  content: "";
  pointer-events: none;
}

.auth-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-panel {
  width: min(100%, 520px);
  padding: 40px;
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  background: var(--gray-800);
  box-shadow: var(--shadow-card);
}

.auth-status-panel {
  display: grid;
  justify-items: flex-start;
  gap: 22px;
}

.auth-panel-header {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-status-panel .auth-panel-header {
  margin-bottom: 0;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-kicker::before {
  width: 32px;
  height: 2px;
  background: var(--yellow);
  content: "";
}

.auth-panel h1 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.auth-panel p {
  max-width: 56ch;
  margin: 0;
  color: var(--gray-400);
  font-size: 13px;
}

.auth-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(245, 197, 24, .3);
  border-radius: var(--radius-md);
  background: rgba(245, 197, 24, .08);
  color: var(--gray-100);
  font-size: 13px;
}

.auth-info i {
  flex-shrink: 0;
  color: var(--yellow);
}

.auth-form,
.auth-fieldset {
  display: grid;
  gap: 16px;
}

.auth-fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.auth-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.auth-field label {
  color: var(--gray-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.auth-input {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid var(--gray-600);
  border-radius: var(--radius-md);
  outline: none;
  background: var(--gray-700);
  background-clip: padding-box;
  color: var(--white);
  color-scheme: dark;
  font-family: var(--font-body);
  font-size: 14px;
  box-shadow: 0 0 0 1000px var(--gray-700) inset;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1000px var(--gray-700) inset, 0 0 0 3px var(--yellow-glow);
}

.auth-input::placeholder {
  color: var(--gray-400);
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--gray-700) inset;
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
}

.auth-submit {
  justify-content: center;
  width: 100%;
}

.auth-submit:disabled {
  cursor: not-allowed;
  opacity: .6;
  transform: none;
}

.auth-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: var(--gray-400);
  font-size: 13px;
}

.auth-secondary a {
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
}

.auth-secondary a:hover,
.auth-secondary a:focus-visible {
  text-decoration: underline;
}

.auth-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--yellow);
  color: var(--gray-900);
  font-size: 26px;
}

.auth-panel:not(.auth-status-panel) > .auth-status-icon {
  margin-bottom: 22px;
}

.auth-status-icon.is-error {
  background: rgba(248, 113, 113, .14);
  color: #f87171;
}

.auth-status-icon.is-loading i,
.auth-submit .bi-arrow-repeat {
  animation: auth-spin 900ms linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  .auth-page {
    align-items: flex-start;
    padding: 32px 16px 56px;
  }

  .auth-panel {
    padding: 28px 20px;
  }

  .auth-panel h1 {
    font-size: 34px;
  }
}

.blazor-error-boundary {
  padding: 1rem 1.5rem;
  border: 1px solid rgba(248, 113, 113, .3);
  border-radius: var(--radius-md);
  background: rgba(248, 113, 113, .1);
  color: #f87171;
}

.blazor-error-boundary::after {
  content: "Nastala chyba. Obnovte stránku.";
}
