/* ==========================================================================
   ACRB HEADER AUTH WIDGET (SCOPED COMPONENT - NO :ROOT, NO GRADIENTS)
   Location: assets/css/frontend/header-auth.css
   ========================================================================== */

.acrb-header-auth {
  --acrb-auth-primary: #4f46e5;
  --acrb-auth-secondary: #64748b;
  --acrb-auth-text: #0f172a;
  --acrb-auth-accent: #059669;
  --acrb-auth-btn-bg: #4f46e5;
  --acrb-auth-btn-hover: #4338ca;
  --acrb-auth-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  font-family: var(--acrb-auth-font, sans-serif);
  display: inline-flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  color: var(--acrb-auth-text, #0f172a);
}

.acrb-header-auth *,
.acrb-header-auth *::before,
.acrb-header-auth *::after {
  box-sizing: inherit;
}

/* Inline SVG Uniform Standards */
.acrb-header-auth .acrb-auth-svg {
  display: inline-block;
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Logged In State (User Pill)
   -------------------------------------------------------------------------- */
.acrb-header-auth .acrb-user-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  padding: 4px 14px 4px 5px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.acrb-header-auth .acrb-user-wrapper:hover {
  border-color: var(--acrb-auth-primary, #4f46e5);
  background: #ffffff;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.acrb-header-auth .acrb-avatar-frame {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f5f9;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acrb-header-auth .acrb-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acrb-header-auth .acrb-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.acrb-header-auth .acrb-user-greeting {
  font-size: 10px;
  color: var(--acrb-auth-secondary, #64748b);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.acrb-header-auth .acrb-user-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--acrb-auth-text, #0f172a);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acrb-header-auth .acrb-user-chevron {
  color: #94a3b8;
  margin-left: 2px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.acrb-header-auth .acrb-user-wrapper:hover .acrb-user-chevron {
  transform: translateX(2px);
  color: var(--acrb-auth-primary, #4f46e5);
}

/* --------------------------------------------------------------------------
   Logged Out State (Buttons Group)
   -------------------------------------------------------------------------- */
.acrb-header-auth .acrb-auth-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.acrb-header-auth .acrb-h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  padding: 0 16px;
  border-radius: 8px;
  height: 38px;
  line-height: 1;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
}

/* Login Button */
.acrb-header-auth .acrb-h-login {
  background: #f8fafc;
  color: var(--acrb-auth-text, #0f172a) !important;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.acrb-header-auth .acrb-h-login .acrb-auth-svg {
  color: var(--acrb-auth-secondary, #64748b);
  transition: color 0.15s ease;
}

.acrb-header-auth .acrb-h-login:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--acrb-auth-text, #0f172a) !important;
  transform: translateY(-1px);
}

.acrb-header-auth .acrb-h-login:hover .acrb-auth-svg {
  color: var(--acrb-auth-primary, #4f46e5);
}

/* Register Button */
.acrb-header-auth .acrb-h-reg {
  background: var(--acrb-auth-btn-bg, #4f46e5);
  color: #ffffff !important;
  border: 1px solid var(--acrb-auth-btn-bg, #4f46e5);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.18);
}

.acrb-header-auth .acrb-h-reg .acrb-auth-svg {
  color: #ffffff;
}

.acrb-header-auth .acrb-h-reg:hover {
  background: var(--acrb-auth-btn-hover, #4338ca);
  border-color: var(--acrb-auth-btn-hover, #4338ca);
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
  color: #ffffff !important;
}