/* Styles pour l'authentification */
.auth-modal {
  max-width: 800px !important;
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: 0.75rem;
  color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.auth-icon i {
  width: 1.5rem;
  height: 1.5rem;
}

.auth-title {
  flex: 1;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
}

.auth-content {
  display: flex;
  gap: 1.5rem;
}

/* Message d'erreur */
.auth-error {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0.75rem;
  background: var(--color-danger-light);
  border-radius: var(--radius) var(--radius) 0 0;
  animation: slideDown 0.3s ease-out;
}

.error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-danger);
  font-size: 0.875rem;
}

.error-message i {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.auth-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding-top: 3rem;
}

/* Liste des caissiers */
.cashiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.cashier-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.cashier-button:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cashier-button.active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.cashier-avatar {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: 0.5rem;
  color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.cashier-avatar i {
  width: 1.25rem;
  height: 1.25rem;
}

.cashier-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Code PIN */
.pin-display {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  transition: all 0.2s;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.pin-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-gray-100);
  transition: all 0.2s;
}

.pin-dot.filled {
  background: var(--color-primary);
  transform: scale(1.1);
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-gray-50);
  border-radius: 0.75rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.pin-key {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 500;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 1rem;
}

.pin-key:hover:not(:disabled) {
  border-color: var(--color-primary);
  transform: translateY(-1px);
  background: var(--color-primary-light);
}

.pin-key:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pin-key.clear {
  color: var(--color-danger);
}

.pin-key.clear:hover {
  background: var(--color-danger-light);
  border-color: var(--color-danger);
}

.pin-key.confirm {
  color: var(--color-success);
}

.pin-key.confirm:hover:not(:disabled) {
  background: var(--color-success-light);
  border-color: var(--color-success);
}

.pin-key i {
  width: 1.25rem;
  height: 1.25rem;
}

/* Animation de secousse */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-content {
    flex-direction: column;
  }

  .cashiers-grid {
    grid-template-columns: repeat(2, 1fr);
    max-height: none;
  }

  .auth-section {
    padding-top: 4rem;
  }

  .pin-key {
    font-size: 1rem;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .auth-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .auth-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .auth-icon i {
    width: 1.25rem;
    height: 1.25rem;
  }

  .auth-section {
    padding-top: 3.5rem;
  }

  .pin-display {
    padding: 1rem;
  }

  .pin-keypad {
    padding: 1rem;
    gap: 0.75rem;
  }

  .pin-key {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
}