:root {
  --primary-color: #28a745;
  --secondary-color: #218838;
  --error-color: #dc3545;
  --warning-color: #07ff66;
  --maintenance-color: #28a745;
  --dark-bg: #1a1a1a;
  --light-text: #f8f9fa;
  --dark-text: #212529;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  overflow-x: hidden;
}

/* Contenedor principal */
.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Video de fondo */
#bgVideo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  filter: brightness(0.3);
}

/* Página de Mantenimiento */
.maintenance-container {
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 15px;
  padding: 40px;
  width: 100%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 0 30px rgba(87, 255, 53, 0.3);
  border: 2px solid var(--maintenance-color);
  backdrop-filter: blur(10px);
  animation: maintenancePulse 2s ease-in-out infinite alternate;
}

@keyframes maintenancePulse {
  0% {
      box-shadow: 0 0 30px rgba(110, 255, 53, 0.3);
  }
  100% {
      box-shadow: 0 0 40px rgba(70, 255, 53, 0.5);
  }
}

.maintenance-icon {
  font-size: 4rem;
  color: var(--maintenance-color);
  margin-bottom: 20px;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

.maintenance-title {
  font-size: 2.5rem;
  color: var(--maintenance-color);
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(53, 255, 70, 0.5);
}

.maintenance-subtitle {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 30px;
  line-height: 1.6;
}

.maintenance-message {
  background-color: rgba(70, 255, 53, 0.1);
  border: 1px solid var(--maintenance-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}

.maintenance-message p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #fff;
}

.maintenance-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.info-card {
  background-color: rgba(40, 40, 40, 0.7);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #444;
}

.info-card i {
  font-size: 2rem;
  color: var(--maintenance-color);
  margin-bottom: 10px;
}

.info-card h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.info-card p {
  color: #ccc;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(93, 255, 53, 0.2);
  border: 2px solid var(--maintenance-color);
  border-radius: 50%;
  color: var(--maintenance-color);
  text-decoration: none;
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--maintenance-color);
  color: #fff;
  transform: scale(1.1);
}

/* Estilos del formulario normal */
.form-container {
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  padding: 30px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  backdrop-filter: blur(5px);
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Logo */
.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  max-width: 300px;
  height: auto;
}

/* Títulos */
h2 {
  text-align: center;
  color: #4CAF50;
  margin-bottom: 10px;
  font-size: 24px;
}

.subtitle {
  text-align: center;
  color: #aaa;
  margin-bottom: 30px;
  font-size: 14px;
}

/* Campos del formulario */
fieldset {
  border: 1px solid #333;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: rgba(30, 30, 30, 0.5);
}

legend {
  padding: 0 10px;
  color: #4CAF50;
  font-weight: bold;
  font-size: 16px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #ddd;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: rgba(50, 50, 50, 0.7);
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
}

.hint {
  font-size: 12px;
  color: #888;
  display: block;
  margin-top: 5px;
}

.verification {
  margin: 20px 0;
}

.verification input[type="checkbox"] {
  margin-right: 10px;
}

.verification label {
  display: inline;
  font-weight: normal;
  color: #bbb;
}

.form-actions {
  text-align: center;
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover {
  background-color: #45a049;
}

.loading {
  color: var(--light-text);
  text-align: center;
  margin-top: 10px;
}

.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.notification.success {
  background-color: #4CAF50;
}

.notification.error {
  background-color: #f44336;
}

.notification.warning {
  background-color: #ff9800;
}

.notification.info {
  background-color: #2196F3;
}

.notification.show {
  opacity: 1;
}

.notification.hidden {
  opacity: 0;
  pointer-events: none;
}

.notification i {
  margin-right: 10px;
}

.discord-auth-section {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: rgba(40, 40, 40, 0.7);
  border-radius: 5px;
  border: 1px solid #5865F2;
}

.discord-btn {
  background-color: #5865F2;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.discord-btn:hover {
  background-color: #4752C4;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
  border: 2px solid #5865F2;
}

#userInfo {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: rgba(88, 101, 242, 0.1);
  padding: 10px;
  border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .maintenance-container {
      padding: 30px 20px;
  }

  .maintenance-title {
      font-size: 2rem;
  }

  .maintenance-icon {
      font-size: 3rem;
  }

  .maintenance-info {
      grid-template-columns: 1fr;
  }

  .form-container {
      padding: 20px;
  }

  fieldset {
      padding: 15px;
  }

  h2 {
      font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
      padding: 10px;
  }

  .maintenance-container {
      padding: 20px 15px;
  }

  .maintenance-title {
      font-size: 1.75rem;
  }

  .form-container {
      padding: 15px;
  }

  input, textarea, select {
      padding: 10px 12px;
  }
}

/* Clases de utilidad */
.hidden {
  display: none !important;
}

.show {
  display: block !important;
}