* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #cd171e 0%, #333333 100%);
  background-attachment: fixed;
  overflow: hidden;
  position: relative;
  padding: 1rem;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 40px),
    repeating-radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 3px);
  z-index: 0;
}

.card {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 360px;
  text-align: center;
  transition: all 0.4s ease-in-out;
  z-index: 1;
  position: relative;
  opacity: 1;
}

.card h2 {
  color: #333333;
  margin-bottom: 1.5rem;
}

.icon {
  font-size: 3rem;
  color: #333333;
  margin-bottom: 1rem;
}

.input-group {
  position: relative;
  margin: 0.5rem 0;
}

#username {
  text-transform: uppercase;
}

.input-group input::placeholder {
  text-transform: none;
}

.input-group input {
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 2.5rem;
  border: 1px solid #ccc;
  border-radius: 25px;
  background-color: #f9f9f9;
}

.input-group i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #555;
  font-size: 1.1rem;
  z-index: 2;
}

button {
  background-color: #CD171E;
  color: white;
  padding: 0.8rem;
  border: none;
  width: 100%;
  margin-top: 1rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #a31217;
}

/* Solo enlace de privacidad */
.privacy-link a {
  display: block;
  margin-top: 1rem;
  color: #333333;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
}

.privacy-link a:hover {
  color: #CD171E;
  text-decoration: none;
}

/* Overlay para mensajes */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  z-index: 999;
}

.overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.message-box {
  background: white;
  padding: 2rem 3rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  font-size: 1.2rem;
  color: #333;
  text-align: center;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Media query para móviles */
@media (max-width: 480px) {
  .card {
    padding: 1.5rem 1rem;
  }

  .message-box {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .input-group input {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}
