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

:root {
  --magenta: rgb(211, 23, 142);
  --blue: rgb(0, 116, 179);
  --gradient: linear-gradient(130.4deg, #ffa300 0%, #d3178e 100%);
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  background: linear-gradient(180deg, #7f1749 0%, #55002c 100%);
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.header {
  background: url('../images/gradient.png') center/cover no-repeat;
  color: white;
  padding: 20px 0;
  text-align: center;
}

@media (max-width: 600px) {
  .header {
    background-image: url('../images/gradient_600.png');
  }
}

.header-logo {
  display: block;
  margin: 0 auto 12px;
  max-width: 180px;
  width: 100%;
  height: auto;
}

.logo {
  font-size: 28px;
  font-weight: 700;
}

main.container {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: clamp(160px, 28vw, 320px) 20px 100px;
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.code-entry__snow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(120px, 27vw, 300px);

  background-image:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.35), transparent 5%),
    url('../images/snowflakes.png');

  /* 1st = glow, 2nd = snowflakes image */
  background-repeat:
    no-repeat,
    repeat-x;

  background-size:
    180% 160%,                        /* big soft glow */
    /*clamp(400px, 40vw, 800px) auto; */  /* larger tile size to reduce seams */
    cover;

  background-position:
    center,
    top center;

  opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  overflow: hidden;
}

.code-entry__snow::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(32px, 6vw, 60px);
  background: linear-gradient(180deg, rgba(85, 0, 44, 0) 0%, rgba(85, 0, 44, 0.85) 70%, #55002c 100%);
  pointer-events: none;
}

@media (max-width: 600px) {
  .code-entry__snow {
    background-image:
      radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.35), transparent 5%),
      url('../images/snowflakes_600.png');
  }
}

.code-entry {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  text-align: center;
  color: #fff;
  width: min(520px, 100%);
  margin: 0 auto;
}

.code-entry h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
}

.code-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  font-size: 18px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  text-transform: uppercase;
}

.form-group input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.btn-primary {
  width: 100%;
  background: rgb(211, 23, 142);
  color: white;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  min-height: 44px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 23, 142, 0.3);
  opacity: 0.9;
}

.btn-primary:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn-primary:active {
  transform: translateY(0);
}

.error-message {
  background: rgba(255, 235, 238, 0.2);
  color: #ff9aa2;
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 20px;
  border: 1px solid rgba(255, 154, 162, 0.4);
}

.banner-expired {
  background: rgba(255, 243, 205, 0.15);
  color: #ffe8a0;
  padding: 14px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 234, 167, 0.4);
  text-align: center;
  font-weight: 500;
}

.footer {
  text-align: center;
  padding: 20px;
  color: #fff;
  font-size: 14px;
}
