* {
  box-sizing: border-box;
}

:root {
  --bg-dark: #061813;
  --bg-card: rgba(255, 255, 255, 0.13);
  --border: rgba(255, 255, 255, 0.22);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --green: #58ff94;
  --lime: #dfff62;
  --yellow: #ffd447;
  --orange: #ff9f43;
  --red: #ff5c7a;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-dark);
}

body {
  overflow-x: hidden;
}

.game-login-page {
  min-height: 100vh;
  padding: 22px;
  display: grid;
  place-items: center;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 20%, rgba(88, 255, 148, 0.22), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(255, 212, 71, 0.22), transparent 26%),
    radial-gradient(circle at 72% 90%, rgba(255, 92, 122, 0.16), transparent 30%),
    linear-gradient(135deg, #051410 0%, #0e352a 48%, #061813 100%);
}

.login-shell {
  width: min(1180px, 100%);
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border-radius: 42px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  position: relative;
}

.hero-panel {
  position: relative;
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(88, 255, 148, 0.16), rgba(255, 212, 71, 0.08)),
    radial-gradient(circle at 20% 80%, rgba(223, 255, 98, 0.26), transparent 34%);
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.hero-badge {
  width: fit-content;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--lime);
  border: 1px solid rgba(223, 255, 98, 0.28);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.3px;
  margin-bottom: 22px;
}

.hero-panel h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.94;
  letter-spacing: -3px;
}

.hero-panel p {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}

.score-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 500px;
  margin-top: 38px;
}

.score-preview div {
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.score-preview span {
  display: block;
  font-size: 34px;
  font-weight: 1000;
  color: var(--lime);
  line-height: 1;
}

.score-preview small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.floating-fruit {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-size: 42px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  animation: floatFruit 5s ease-in-out infinite;
}

.fruit-one {
  top: 48px;
  right: 62px;
}

.fruit-two {
  bottom: 84px;
  right: 120px;
  animation-delay: 0.9s;
}

.fruit-three {
  bottom: 160px;
  left: 56px;
  animation-delay: 1.3s;
}

.fruit-four {
  top: 142px;
  right: 180px;
  animation-delay: 1.8s;
}

.form-panel {
  padding: 42px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.16);
}

.form-card,
.create-user-card {
  width: min(450px, 100%);
  padding: 30px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.create-user-shell {
  width: min(620px, 100%);
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.create-user-card {
  width: min(560px, 100%);
}

.logo-game {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.logo-icon {
  flex: 0 0 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--lime), var(--green));
  box-shadow: 0 18px 46px rgba(88, 255, 148, 0.28);
  font-size: 34px;
}

.logo-game h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -1px;
}

.logo-game p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
}

form {
  display: grid;
  gap: 17px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
}

label {
  font-size: 14px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
}

input,
select {
  width: 100%;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: none;
  border-radius: 18px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(5, 20, 16, 0.58);
}

select {
  appearance: none;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '⌄';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-56%);
  color: var(--lime);
  font-size: 25px;
  pointer-events: none;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

input:focus,
select:focus {
  border-color: rgba(223, 255, 98, 0.7);
  box-shadow: 0 0 0 5px rgba(223, 255, 98, 0.1);
}

.btn-start {
  width: 100%;
  height: 62px;
  border: 0;
  border-radius: 22px;
  margin-top: 5px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--lime), var(--green));
  color: #143026;
  font-size: 17px;
  font-weight: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 18px 46px rgba(88, 255, 148, 0.32);
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.btn-start:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn-start:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-start strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(20, 48, 38, 0.16);
}

.btn-create-user,
.btn-back-login {
  width: 100%;
  min-height: 52px;
  margin-top: 13px;
  border-radius: 19px;
  border: 1px solid rgba(223, 255, 98, 0.32);
  background: rgba(223, 255, 98, 0.1);
  color: var(--lime);
  font-size: 15px;
  font-weight: 1000;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.btn-back-login {
  margin-top: 16px;
}

.preview-user {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(223, 255, 98, 0.1);
  border: 1px solid rgba(223, 255, 98, 0.26);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.preview-user strong {
  color: var(--lime);
}

.mini-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.mini-rules div {
  min-height: 74px;
  border-radius: 19px;
  padding: 13px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  text-align: center;
}

.mini-rules strong {
  display: block;
  color: var(--lime);
  font-size: 14px;
  margin-bottom: 6px;
}

.mini-rules span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

@keyframes floatFruit {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-16px) rotate(4deg);
  }
}

@media (max-width: 920px) {
  .game-login-page {
    padding: 14px;
    display: block;
  }

  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 30px;
  }

  .hero-panel {
    padding: 32px 24px;
    min-height: 330px;
  }

  .hero-panel::before {
    inset: 16px;
    border-radius: 25px;
  }

  .hero-panel h1 {
    font-size: clamp(38px, 13vw, 58px);
    letter-spacing: -2px;
  }

  .hero-panel p {
    font-size: 17px;
    margin-top: 16px;
  }

  .score-preview {
    margin-top: 24px;
    gap: 10px;
  }

  .score-preview div {
    padding: 15px 10px;
    border-radius: 20px;
  }

  .score-preview span {
    font-size: 27px;
  }

  .floating-fruit {
    width: 58px;
    height: 58px;
    border-radius: 19px;
    font-size: 31px;
  }

  .fruit-one {
    top: 30px;
    right: 24px;
  }

  .fruit-two {
    bottom: 34px;
    right: 28px;
  }

  .fruit-three {
    display: none;
  }

  .fruit-four {
    display: none;
  }

  .form-panel {
    padding: 16px;
  }

  .form-card,
  .create-user-card {
    padding: 22px;
    border-radius: 28px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .mini-rules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .game-login-page {
    padding: 0;
  }

  .login-shell {
    border-radius: 0;
    min-height: 100vh;
  }

  .hero-panel {
    padding: 28px 18px;
  }

  .form-panel {
    padding: 14px;
  }

  .form-card,
  .create-user-card {
    padding: 20px;
  }

  .logo-icon {
    flex-basis: 58px;
    height: 58px;
    border-radius: 19px;
    font-size: 29px;
  }

  .logo-game h2 {
    font-size: 25px;
  }
}
