/**
 * Estilos para el formulario de registro de promotores
 */

.tlnp-registro-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.tlnp-registro-form {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e1e1;
}

.tlnp-registro-form h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 24px;
  text-align: center;
}

.tlnp-form-description {
  text-align: center;
  color: #666;
  margin-bottom: 25px;
  font-size: 14px;
}

.tlnp-form-row {
  margin-bottom: 20px;
  clear: both;
}

.tlnp-form-row-wide {
  width: 100%;
}

.tlnp-form-row-first {
  width: 48%;
  float: left;
}

.tlnp-form-row-last {
  width: 48%;
  float: right;
}

.tlnp-form-row label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.tlnp-form-row input[type="text"],
.tlnp-form-row input[type="email"],
.tlnp-form-row input[type="tel"],
.tlnp-form-row input[type="password"],
.tlnp-form-row input[type="date"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.tlnp-form-row input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.tlnp-form-row input.error {
  border-color: #dc3232;
}

.tlnp-field-description {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 12px;
  font-style: italic;
}

.error-message {
  display: block;
  margin-top: 5px;
  color: #dc3232;
  font-size: 12px;
}

.tlnp-checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  font-weight: normal !important;
  line-height: 1.4;
}

.tlnp-checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin: 0 !important;
  flex-shrink: 0;
  margin-top: 2px !important;
}

.tlnp-register-button {
  width: 100%;
  padding: 15px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tlnp-register-button:hover {
  background: #005a87;
  color: #fff;
}

.tlnp-login-link {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.tlnp-login-link a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 600;
}

.tlnp-login-link a:hover {
  text-decoration: underline;
}

/* Notices */
.tlnp-notice {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  border-left: 4px solid;
}

.tlnp-notice-success {
  background: #f0f8f0;
  border-left-color: #46b450;
  color: #2e7d32;
}

.tlnp-notice-error {
  background: #fef7f7;
  border-left-color: #dc3232;
  color: #a94442;
}

.tlnp-notice-info {
  background: #f0f8ff;
  border-left-color: #0073aa;
  color: #31708f;
}

.tlnp-notice h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.tlnp-notice ul {
  margin: 0;
  padding-left: 20px;
}

.tlnp-notice li {
  margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .tlnp-registro-container {
    padding: 10px;
  }

  .tlnp-registro-form {
    padding: 20px;
  }

  .tlnp-form-row-first,
  .tlnp-form-row-last {
    width: 100%;
    float: none;
  }

  .tlnp-form-row-last {
    margin-top: 0;
  }
}

/* Animaciones */
.tlnp-form-row {
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estados de validación */
.tlnp-form-row input:valid {
  border-color: #46b450;
}

.tlnp-form-row input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #dc3232;
}

/* Indicador de edad */
#age-message {
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 3px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  margin-top: 8px;
}
