/* Variables de autenticación */
:root {
    /* Autenticación - Botón */
    --auth-button-background: transparent;
    --auth-button-padding: 8px 16px;
    --auth-button-radius: 4px;
    --auth-button-transition: all 0.2s ease;
    
    /* Autenticación - Modal */
    --modal-z-index: 3;
    --modal-background: rgba(0, 0, 0, 0.7);
    --modal-radius: 8px;
    --modal-padding: 24px;
    --modal-min-width: 300px;
    --modal-max-width: 500px;
    --modal-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    
    /* Autenticación - Texto y Elementos */
    --auth-text-primary: var(--color-blue);
    --auth-text-secondary: var(--color-light-gray);
    --auth-text-white: var(--color-white);
    --auth-font-primary: var(--header-font-family);
    --auth-font-secondary: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    --auth-font-weight-bold: 600;
    --auth-font-weight-medium: 500;
    --auth-font-size-normal: 16px;
    --auth-font-size-large: 20px;
    --auth-margin-large: 20px;
    --auth-margin-medium: 16px;
    --auth-margin-small: 6px;
    --auth-margin-medium-small: 12px;
    --auth-margin-top-small: 4px;
    --auth-margin-top-medium: 10px;
    --auth-margin-vertical: 20px 0;
    --auth-border-thin: 1px solid var(--auth-text-secondary);
    --auth-border-highlight: 2px solid var(--auth-text-primary);
    --auth-padding-button: 10px 20px;
    --auth-padding-input: 10px;
    
    /* Autenticación - Perfil */
    --profile-width: 32px;
    --profile-height: 32px;
    --profile-radius: 50%;
    --profile-margin-top: 4px;
}

/* Estilos para autenticación */

/* Botón de autenticación */
#auth-container {
  display: flex;
  align-items: center;
}

.auth-btn {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-family-body);
  transition: all 0.2s ease;
}

.auth-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1002;
}

.modal-content {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 24px;
  min-width: 300px;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Títulos y texto del modal */
.modal-content h2 {
  color: var(--color-white);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--font-family-body);
}

.modal-content p {
  color: var(--color-white);
  font-size: 16px;
  margin-bottom: 20px;
  font-family: var(--font-family-body);
  line-height: 1.4;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-light-gray);
}

.close-btn:hover {
  color: var(--color-blue);
}

/* Botón de retroceso */
.back-btn {
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-light-gray);
}

.back-btn:hover {
  color: var(--color-blue);
}

/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-light-gray);
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-family: var(--font-family-body);
  font-size: 16px;
  color: var(--color-light-gray);
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: var(--color-blue);
  border-bottom: 2px solid var(--color-blue);
}

/* Formularios */
.auth-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.auth-form-group label {
  color: var(--color-blue);
  font-weight: 600;
  margin-bottom: 6px;
  font-family: var(--font-family-body);
}

.auth-form-group label .required {
  color: var(--color-error);
  margin-left: 4px;
}

.auth-form-group input,
.auth-form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  font-family: var(--font-family-body);
  background: rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
}

.auth-form-group input:focus,
.auth-form-group select:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 2px rgba(var(--color-blue-rgb), 0.2);
}

.auth-form-group small {
  display: block;
  margin-top: 4px;
  color: var(--color-light-gray);
  font-size: 12px;
}

.submit-btn {
  background-color: var(--color-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-family-body);
  font-weight: 600;
  width: 100%;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: var(--color-blue-hover);
}

/* Modal de Técnico */
.choice-buttons {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.choice-btn {
  flex: 1;
  margin: 0 5px;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-family-body);
}

.choice-btn.primary {
  background-color: var(--color-blue);
  color: white;
  border: none;
}
.choice-btn.primary:hover {
  background-color: var(--color-blue-hover);
  color: white;
}

.choice-btn:not(.primary) {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

.choice-btn:not(.primary):hover {
  background-color: var(--color-black);
  color: white;
}

/* Utilidades */
.hidden {
  display: none !important;
}

.field-help {
  font-size: 12px;
  color: var(--color-light-gray);
  margin-top: 4px;
  font-family: var(--font-family-body);
  line-height: 1.3;
}

/* Sistema de búsqueda de empresas */
.company-search-container {
  position: relative;
}

.company-search-container input {
  width: 100%;
  min-width: 0;
  flex: 1;
}

.company-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1100;
  margin-top: 1px;
}

.company-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  color: #333;
  font-family: var(--font-family-body);
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
}

.company-suggestion-item:hover {
  background-color: var(--color-blue);
  color: white;
}

.company-suggestion-item:last-child {
  border-bottom: none;
}

.company-suggestion-item.no-results {
  color: var(--color-light-gray);
  font-style: italic;
  cursor: default;
}

.company-suggestion-item.no-results:hover {
  background-color: transparent;
  color: var(--color-light-gray);
}

.company-suggestions::-webkit-scrollbar {
  width: 6px;
}

.company-suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.company-suggestions::-webkit-scrollbar-thumb {
  background: var(--color-blue);
  border-radius: 3px;
}