/* ═══════════════════════════════════════════
   LOGIN — Bruno Jogos
═══════════════════════════════════════════ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #07080d;
  color: #e8eaf0;
  overflow: hidden;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.login-bg-mesh {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(108, 99, 255, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(74, 222, 128, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 45% 50% at 70% 80%, rgba(244, 63, 94, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 25% 75%, rgba(49, 130, 206, 0.22) 0%, transparent 50%);
  animation: loginMesh 18s ease-in-out infinite alternate;
}

@keyframes loginMesh {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -2%) scale(1.04); }
}

.login-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 20%, transparent 75%);
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: loginOrb 12s ease-in-out infinite;
}

.login-orb-1 {
  width: 320px;
  height: 320px;
  background: #c6a15a;
  top: 8%;
  left: -5%;
  animation-delay: 0s;
}

.login-orb-2 {
  width: 260px;
  height: 260px;
  background: #4ade80;
  bottom: 10%;
  right: -3%;
  animation-delay: -4s;
}

.login-orb-3 {
  width: 200px;
  height: 200px;
  background: #f43f5e;
  top: 55%;
  left: 40%;
  animation-delay: -8s;
}

@keyframes loginOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -25px) scale(1.08); }
}

.login-float-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-float-icon {
  position: absolute;
  font-size: 28px;
  opacity: 0.12;
  animation: loginFloat 8s ease-in-out infinite;
}

.login-float-icon:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s; }
.login-float-icon:nth-child(2) { top: 22%; right: 14%; animation-delay: -2s; font-size: 34px; }
.login-float-icon:nth-child(3) { bottom: 28%; left: 10%; animation-delay: -4s; }
.login-float-icon:nth-child(4) { bottom: 18%; right: 20%; animation-delay: -6s; font-size: 32px; }
.login-float-icon:nth-child(5) { top: 48%; left: 6%; animation-delay: -1s; font-size: 22px; }
.login-float-icon:nth-child(6) { top: 38%; right: 8%; animation-delay: -3s; }

@keyframes loginFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 36px 36px;
  background: rgba(15, 17, 23, 0.72);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(108, 99, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: loginCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-ring {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.25) 0%, rgba(74, 222, 128, 0.1) 100%);
  border: 1px solid rgba(108, 99, 255, 0.4);
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.25);
  font-size: 42px;
  animation: loginPulse 3s ease-in-out infinite;
}

@keyframes loginPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(108, 99, 255, 0.25); }
  50%      { box-shadow: 0 0 56px rgba(108, 99, 255, 0.42); }
}

.login-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, #b8b4ff 50%, #4ade80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 14px;
  color: #9aa3b8;
  line-height: 1.5;
}

.login-games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.login-game-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(30, 36, 54, 0.65);
  border: 1px solid rgba(42, 49, 71, 0.9);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #c5cce0;
  transition: border-color 0.2s, background 0.2s;
}

.login-game-pill span:first-child {
  font-size: 18px;
}

.login-game-pill:hover {
  border-color: rgba(108, 99, 255, 0.35);
  background: rgba(108, 99, 255, 0.08);
}

.login-enter-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #1c1408;
  cursor: pointer;
  background: linear-gradient(180deg, #e4c98a, #c6a15a 45%, #8c6a32);
  box-shadow:
    0 4px 24px rgba(198, 161, 90, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.login-enter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.login-enter-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(108, 99, 255, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.login-enter-btn:hover::before {
  transform: translateX(100%);
}

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

.login-enter-arrow {
  font-size: 20px;
  transition: transform 0.2s;
}

.login-enter-btn:hover .login-enter-arrow {
  transform: translateX(4px);
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: #5a6480;
  line-height: 1.5;
}

.login-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 14px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.login-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: loginLiveBlink 1.4s ease-in-out infinite;
}

@keyframes loginLiveBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.login-field span {
  font-size: 12px;
  font-weight: 600;
  color: #c5cce0;
}

.login-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(42, 49, 71, 0.95);
  background: rgba(16, 20, 34, 0.85);
  color: #e8eaf0;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.login-field input:focus {
  border-color: rgba(108, 99, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.18);
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
  font-size: 13px;
  text-align: left;
}

.login-enter-btn:disabled,
.login-enter-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 22px 28px;
    border-radius: 20px;
  }

  .login-title {
    font-size: 24px;
  }

  .login-games {
    grid-template-columns: 1fr;
  }
}
