/* Registro Socio Specific Styles */
.registro-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: white;
}

.registro-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Main Container with Glass Effect */
.registro-main-container {
  display: flex;
  align-items: stretch;
  max-width: 1000px;
  width: 100%;
  min-height: 550px;
  position: relative;
  z-index: 10;
  animation: slideUp 0.6s ease-out;
}

/* Logo Section - Desktop */
.registro-logo-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.registro-logo {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
  margin-bottom: 1rem;
}

.registro-logo:hover {
  transform: scale(1.05);
}

.registro-logo-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-accent);
  margin: 0;
}

/* Separator Line - Desktop */
.separator-line {
  width: 2px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 10%, 
    rgba(255, 255, 255, 0.6) 50%, 
    rgba(255, 255, 255, 0.3) 90%, 
    transparent 100%
  );
  margin: 2rem 0;
}

/* Form Section */
.registro-form-section {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  justify-content: center;
  overflow-y: auto;
  max-height: 85vh;
}

.registro-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 2rem 0;
  text-align: center;
}

/* Mobile Elements - Hidden on Desktop */
.registro-logo-mobile {
  display: none;
  text-align: center;
  margin-bottom: 1rem;
}

.registro-logo-mobile-img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.separator-line-mobile {
  display: none;
  height: 2px;
  background: linear-gradient(to right, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 10%, 
    rgba(255, 255, 255, 0.6) 50%, 
    rgba(255, 255, 255, 0.3) 90%, 
    transparent 100%
  );
  margin: 1rem 0 2rem 0;
}

/* Form Styles */
.registro-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 2rem;
}

/* Form Sections */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(229, 202, 16, 0.3);
}

/* Form Rows and Groups */
.form-row {
  display: flex;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

/* Single column inputs - match width of two-column layout */

.form-row.single-column .form-group {
  flex: none;
  width: 100%;
}

.form-label {
  font-weight: 500;
  color: var(--text-white);
  font-size: 0.875rem;
}

.form-input, .form-select {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-size: 1rem;
  transition: var(--transition-medium);
  backdrop-filter: blur(10px);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(229, 202, 16, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

/* Select specific styles */
select.form-input {
  cursor: pointer;
}

select.form-input option {
  background: var(--color-dark);
  color: var(--text-white);
  padding: 0.5rem;
}


/* Checkbox Styles */
.checkbox-group {
  margin: 1rem 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-input {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-input:checked + .checkbox-custom {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '✓';
  color: var(--color-dark);
  font-weight: bold;
  font-size: 14px;
}

.checkbox-text {
  color: var(--text-white);
}

.terms-link {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

.terms-link:hover {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

/* Submit Button */
.registro-submit-button {
  width: 100%;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.registro-submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 108, 14, 0.4);
}

.registro-submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading state */
.registro-submit-button.loading .button-text {
  opacity: 0;
}

.registro-submit-button.loading .button-loader {
  display: flex !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.button-loader .spinner {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* Footer Links */
.registro-footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  margin-top: 1rem;
}

.login-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.login-link-text {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.login-link-text:hover {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

/* Back Button */
.back-button-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 1rem;
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  transition: var(--transition-medium);
}

.back-button-desktop:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  color: var(--text-white);
  text-decoration: none;
}

/* Estados de validación mejorados */
.form-input.error {
  border-color: #ff4757 !important;
  background-color: rgba(255, 71, 87, 0.1) !important;
  box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2) !important;
}

.form-input.success {
  border-color: #2ed573 !important;
  background-color: rgba(46, 213, 115, 0.1) !important;
  box-shadow: 0 0 0 2px rgba(46, 213, 115, 0.2) !important;
}

/* Mensajes de validación */
.validation-message {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.validation-message.error {
  color: #ff4757;
  background-color: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.2);
}

.validation-message.success {
  color: #2ed573;
  background-color: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.2);
}

.validation-message.info {
  color: #3742fa;
  background-color: rgba(55, 66, 250, 0.1);
  border: 1px solid rgba(55, 66, 250, 0.2);
}

/* Indicador de verificación de DNI */
.dni-status {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.dni-status.checking {
  color: #ffa502;
  animation: pulse 1.5s infinite;
}

.dni-status.valid {
  color: #2ed573;
}

.dni-status.invalid {
  color: #ff4757;
}

/* Spinner mejorado */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Estados del botón mejorados */
.registro-submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.registro-submit-button:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(130, 87, 229, 0.3);
}

/* Contenedor de posición relativa para validación */
.form-group {
  position: relative;
}

/* Indicadores de estado en inputs */
.form-input[data-status="checking"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffa502' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zM7 3h2v5H7V3zm0 6h2v2H7V9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 35px;
}

.form-input[data-status="valid"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232ed573' viewBox='0 0 16 16'%3E%3Cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 35px;
}

.form-input[data-status="error"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ff4757' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 35px;
}

/* Notificación de toast */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.toast-notification.show {
  transform: translateX(0);
}

.toast-notification.success {
  background: linear-gradient(135deg, #2ed573, #1e90ff);
}

.toast-notification.error {
  background: linear-gradient(135deg, #ff4757, #ff3838);
}

.toast-notification.info {
  background: linear-gradient(135deg, #3742fa, #2f3542);
}

/* Información de membresías encontradas */
.membresia-info {
  background: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  color: #2ed573;
  font-size: 0.9rem;
}

.membresia-info h4 {
  color: #2ed573;
  margin: 0 0 10px 0;
  font-size: 1rem;
}

.membresia-info ul {
  margin: 0;
  padding-left: 20px;
}

.membresia-info li {
  margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .registro-content {
    padding: 1rem;
  }
  
  .registro-main-container {
    flex-direction: column;
    max-width: 400px;
    min-height: auto;
  }
  
  /* Hide desktop logo, show mobile */
  .registro-logo-section {
    display: none;
  }
  
  .separator-line {
    display: none;
  }
  
  .back-button-desktop {
    display: none;
  }
  
  .registro-logo-mobile {
    display: block;
  }
  
  .separator-line-mobile {
    display: block;
  }
  
  .registro-form-section {
    padding: 2rem 1.5rem;
    max-height: none;
    overflow-y: visible;
  }
  
  .registro-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
    /* Stack form rows on small screens */
  .form-row {
    flex-direction: column;
    gap: 1.2rem;
  }
  
  /* Reset single column styling on mobile */
  .form-row.single-column {
    max-width: 100%;
    margin-right: 0;
  }
  
  .form-section {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .registro-form-section {
    padding: 1.5rem 1rem;
  }
  
  .registro-title {
    font-size: 1.3rem;
  }
  
  .registro-logo-mobile-img {
    width: 100px;
  }
  
  .form-section {
    gap: 1rem;
  }
  
  .section-title {
    font-size: 1rem;
  }
  
  .form-input {
    padding: 0.65rem;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .checkbox-label {
    font-size: 0.85rem;
  }
  
  .registro-submit-button {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Effects */
.registro-main-container:hover {
  transform: translateY(-2px);
  transition: transform var(--transition-medium);
}

/* Form Validation Styles */
.form-input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.form-input:valid:not(:focus):not(:placeholder-shown) {
  border-color: #51cf66;
  background: rgba(81, 207, 102, 0.1);
}

.form-input:invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Password match validation */
.form-input.password-mismatch {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

.form-input.password-match {
  border-color: #51cf66 !important;
  background: rgba(81, 207, 102, 0.1) !important;
}

/* Focus States for Accessibility */
.form-input:focus,
.registro-submit-button:focus,
.back-button-desktop:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .registro-main-container {
    animation: none;
  }
  
  .registro-main-container:hover {
    transform: none;
  }
}
