/* ============================
   AUTH MODAL — Fan Login/Register
   Ajouter à boutique.css
   ============================ */

/* Overlay */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.auth-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Modal */
.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 400px;
  background: #0a0a0a;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 36px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

/* Close button */
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.5);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
}

.auth-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Header */
.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header img {
  height: 32px;
  margin-bottom: 16px;
}

.auth-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* Tabs */
.auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  border-radius: 6px;
  border: none;
  background: transparent;
  transition: all 0.2s;
}

.auth-tab.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Form */
.auth-form-group {
  margin-bottom: 16px;
}

.auth-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.auth-form-group input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}

.auth-form-group input:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
}

.auth-form-group input::placeholder {
  color: rgba(255,255,255,0.2);
}

/* Buttons */
.auth-btn-primary {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.auth-btn-primary:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

.auth-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: rgba(255,255,255,0.2);
  font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.auth-btn-secondary {
  width: 100%;
  padding: 11px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-btn-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

/* Footer link */
.auth-footer-link {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.auth-footer-link a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

/* Alert */
.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 16px;
  display: none;
}

.auth-alert-error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b7a;
}

.auth-alert-success {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #5bff8a;
}

.auth-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(10,10,10,0.2);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: auth-spin 0.6s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

/* Tab content */
.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
}

/* Navbar login button */
.btn-fan-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: #0a0a0a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 8px;
  letter-spacing: 0.01em;
}

.btn-fan-login:hover {
  background: #222;
  color: #fff;
  transform: translateY(-1px);
}

.btn-fan-login svg {
  flex-shrink: 0;
}

/* User menu when logged in */
.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.user-name {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.btn-logout {
  padding: 6px 12px;
  background: transparent;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  border-color: rgba(220, 53, 69, 0.5);
  color: #ff6b7a;
}
