/* ====================================
   Customer Auth Pages (Login, Forgot Password)
   Theme: Pathbit Violet (var(--color-primary))
   ==================================== */

.customer-auth {
  background: var(--gradient-brand-soft);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
}

.customer-auth .auth-card {
  background: var(--color-text-on-brand);
  border-radius: 12px;
  box-shadow: 0 20px 60px var(--shadow-brand);
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  animation: authSlideUp 0.5s ease-out;
}

@keyframes authSlideUp {
  from {
    opacity: 0;

  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.customer-auth .auth-header {
  background: var(--gradient-brand-main);
  padding: var(--spacing-lg);
  text-align: center;
}

.customer-auth .auth-header .logo {
  margin-bottom: var(--spacing-sm);
}

.customer-auth .auth-header .logo-img {
  max-width: 200px;
  height: auto;
}

.customer-auth .auth-header .subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  margin: 0;
}

.customer-auth .auth-body {
  padding: var(--spacing-lg, 2rem);
}

.customer-auth .form-control {
  border-radius: 8px;
  border: 2px solid var(--color-bs-gray-200);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.customer-auth .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb, 109, 40, 217), 0.15);
}

.customer-auth .btn-auth {
  background: var(--gradient-brand-main);
  border: none;
  border-radius: var(--radius-md, 8px);
  padding: var(--menu-item-padding-y, 0.875rem) var(--spacing-md, 1.5rem);
  min-height: var(--btn-height-auth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-on-brand);
  line-height: 1.2;
  text-decoration: none;
  width: 100%;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.customer-auth .btn-auth:hover {
  background: var(--gradient-brand-hover);
  box-shadow: none;
  color: var(--color-text-on-brand);
}

.customer-auth .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.customer-auth .auth-link {
  color: var(--primary-hover, var(--color-primary));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.customer-auth .auth-link:hover {
  color: var(--color-warning-orange-750);
  text-decoration: underline;
}

.customer-auth .auth-link:focus-visible,
.customer-auth .site-link:focus-visible,
.customer-auth .lang-link:focus-visible,
.customer-auth .btn-auth:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.18rem rgba(var(--primary-rgb, 109, 40, 217), 0.25);
  border-radius: 4px;
}

.customer-auth .auth-link:focus:not(:focus-visible),
.customer-auth .site-link:focus:not(:focus-visible),
.customer-auth .lang-link:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

.customer-auth .password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 0;
  bottom: 0;
  margin-block: auto;
  background: transparent;
  border: none;
  color: var(--color-bs-gray-500);
  cursor: pointer;
  padding: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  line-height: 1;
  border-radius: 50%;
}

/* Ícone do olho: NÃO duplicar aqui. O glifo vem da FONTE Bootstrap Icons na
   regra compartilhada em components/_auth.css (.password-toggle::before). Manter
   um SVG-mask aqui criava ícone distorcido + conflito de cascata. */

.customer-auth .password-toggle:focus:not(:focus-visible) {
  outline: none;
}

.customer-auth .password-toggle:hover,
.customer-auth .password-toggle:focus-visible {
  color: var(--primary);
}

.customer-auth .password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Esconder check verde (is-valid) — só mostrar erro */
.customer-auth .form-control.is-valid,
.customer-auth .was-validated .form-control:valid {
  border-color: var(--color-bs-gray-200) !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Override site.css placeholder positioning for auth pages */
.customer-auth .form-floating>.form-control::placeholder {
  text-align: start;
  opacity: 0;
}

.customer-auth .form-floating>.form-control:focus::placeholder {
  opacity: 0.5;
}

.customer-auth .divider {
  display: flex;
  align-items: center;
  margin: var(--spacing-sm) 0;
}

.customer-auth .divider::before,
.customer-auth .divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--color-bs-gray-200);
}

.customer-auth .divider span {
  padding: 0 var(--spacing-sm);
  color: var(--color-bs-gray-500);
  font-size: 0.875rem;
}

/* Alternate action link (replaces "ou" divider) */
.customer-auth .auth-alt-action {
  text-align: center;
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-bs-gray-200);
}

.customer-auth .auth-alt-action .text-muted {
  margin-right: var(--spacing-xs);
}

.customer-auth .area-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(255, 255, 255, 0.25);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--btn-border-radius);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-on-brand);
}

.customer-auth .icon-large {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.customer-auth .info-text {
  color: var(--color-bs-gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.customer-auth .welcome-text {
  color: var(--color-neutral-900);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading, "Anek Telugu", sans-serif);
}

.customer-auth .welcome-subtitle {
  color: var(--color-bs-gray-500);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
}

/* Auth Footer */
.customer-auth .auth-footer {
  padding: var(--spacing-sm) var(--spacing-lg);
  text-align: center;
  border-top: 1px solid var(--color-bs-gray-200);
  background: var(--color-neutral-50);
}

.customer-auth .site-link {
  color: var(--color-neutral-950);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.customer-auth .site-link:hover {
  color: var(--primary);
}

.customer-auth .language-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xs);
}

.customer-auth .lang-link {
  color: var(--color-neutral-950);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.customer-auth .lang-link:hover,
.customer-auth .lang-link.active {
  color: var(--primary);
  font-weight: 600;
}

.customer-auth .lang-divider {
  color: var(--color-bs-gray-300);
  font-size: 0.875rem;
}

.customer-dashboard .footer-links a,
.customer-dashboard .footer-company {
  color: var(--color-neutral-950);
}

.customer-dashboard .footer-links a:hover,
.customer-dashboard .footer-links a:focus-visible {
  color: var(--color-primary);
}


