* {
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}
p {
    margin: 0;
    padding: 0;
}
.d-flex {
    display: flex;
}
.align-items-center {
    align-items: center;
}
.flex-wrap {
    flex-wrap: wrap;
}
.gap-2 {
    gap: 8px;
}
.page {
    display: none;
    min-height: 100dvh;
    align-items: center;
}
.active {
    display: flex; 
}
input,
button {
    padding: 8px;
    margin: 5px 0;
    font-size: 16px;
}
.error {
    color: red;
    margin-top: 4px;
}

.access-page {
    margin: 0 auto;
    width: max-content;
    text-align: left;
    padding: 20px;
}
.access-page h2 {
    margin: 0;
    margin-bottom: 16px;
}
.access-page input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.access-page input:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 8px rgba(74, 144, 226, 0.3);
}

.access-page button {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.access-page button:hover {
  background: linear-gradient(135deg, #357abd, #2c5f99);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.access-page button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}


.card-page {
  flex-direction: column;
  padding: 0;
  background: #fff;
  min-height: 100dvh;
}

/* Блок с картинкой */
.match-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

.match-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-hero .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
  color: #fff;
}

.match-hero h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.match-hero .date,
.match-hero .venue {
  margin: 4px 0;
  font-size: 18px;
  font-weight: 500;
}

/* Контент под картинкой */
.match-content {
  padding: 30px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.match-content .desc {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 30px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.buy-btn {
  flex: 1;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(135deg, #f57c00, #ef6c00);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buy-btn:hover {
  background: linear-gradient(135deg, #ef6c00, #d84315);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.logout-btn {
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  background: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #d6d6d6;
}
