/* ===== LOGIN PAGE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  background: #0a0a2e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* Fundo com padrão sutil de bola de futebol */
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(26,26,100,0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(16,58,116,0.5) 0%, transparent 50%);
}

.login-bg {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: linear-gradient(160deg, #12124a 0%, #0d0d35 100%);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 24px;
  padding: 40px 36px 36px;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(245,197,24,0.1) inset;
}

/* ─── Header ─── */
.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-trophy {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 16px rgba(245,197,24,0.6));
}

.login-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f5c518;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-shadow: 0 0 24px rgba(245,197,24,0.4);
}

.login-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ─── Erro ─── */
.login-error {
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.4);
  border-radius: 10px;
  color: #ff8070;
  font-size: 0.85rem;
  padding: 10px 14px;
  margin-bottom: 18px;
  text-align: center;
}

/* ─── Botão Google ─── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  color: #3c3c3c;
  border: none;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-google:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

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

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─── Divisor "ou" ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

/* ─── Campos ─── */
.field-group {
  margin-bottom: 14px;
}

.field-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.field-group label small {
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
}

.field-group input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
}

.field-group input::placeholder { color: rgba(255,255,255,0.25); }

.field-group input:focus {
  border-color: rgba(245,197,24,0.6);
  background: rgba(255,255,255,0.1);
}

/* ─── Botão principal ─── */
.btn-primary {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #f5c518, #e0a800);
  color: #0a0a2e;
  border: none;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 16px rgba(245,197,24,0.4);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,197,24,0.5);
}

.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ─── Link de troca de form ─── */
.form-switch {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 18px;
}

.form-switch a {
  color: #f5c518;
  text-decoration: none;
  font-weight: 700;
}

.form-switch a:hover { text-decoration: underline; }

/* ─── Mobile ─── */
@media (max-width: 480px) {
  .login-card { padding: 30px 22px 28px; }
  .login-trophy { font-size: 2.8rem; }
  .login-title { font-size: 1.1rem; }
}
