@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/**
 * Bluecake Enterprise OS - Modern Authentication Design System
 * 2026 Edition - 3-Scene Visual Carousel & Real SaaS Dashboard UI
 */

*,
body,
html,
input,
button,
select,
textarea,
label,
h1, h2, h3, h4, h5, h6,
p, span, a, div {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

::placeholder {
  font-family: 'Tajawal', sans-serif !important;
  opacity: 0.75;
}

:-ms-input-placeholder {
  font-family: 'Tajawal', sans-serif !important;
}

::-ms-input-placeholder {
  font-family: 'Tajawal', sans-serif !important;
}

:root {
  --auth-primary: #0B57F7;
  --auth-primary-rgb: 11, 87, 247;
  --auth-primary-hover: #0945c7;
  --auth-primary-light: #e6f0ff;
  --auth-accent-cyan: #0CBDFB;
  --auth-accent-cyan-rgb: 12, 189, 251;
  --auth-accent-teal: #33CC99;
  --auth-accent-indigo: #0B57F7;
  --auth-bg-gradient: radial-gradient(circle at 10% 20%, rgba(11, 87, 247, 0.08) 0%, rgba(248, 250, 252, 0.95) 60%, #ffffff 100%);
  --auth-card-bg: rgba(255, 255, 255, 0.98);
  --auth-card-border: rgba(11, 87, 247, 0.12);
  --auth-card-shadow: 0 25px 60px -12px rgba(11, 87, 247, 0.12), 0 0 1px rgba(0, 0, 0, 0.06);
  --auth-text-dark: #0f172a;
  --auth-text-muted: #64748b;
  --auth-radius-lg: 24px;
  --auth-radius-md: 14px;
  --auth-radius-sm: 10px;
}

/* Base Body Styling */
.auth-page-body {
  min-height: 100vh;
  width: 100%;
  background: var(--auth-bg-gradient);
  font-family: 'Tajawal', sans-serif !important;
  color: var(--auth-text-dark);
  position: relative;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  direction: rtl;
  text-align: right;
}

/* Ambient Animated Background Canvas & Grid */
.auth-ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.auth-ambient-grid {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(0, 92, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 92, 184, 0.04) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.auth-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: authOrbPulse 12s ease-in-out infinite alternate;
}

.auth-glow-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.35) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.auth-glow-orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 92, 184, 0.3) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation-delay: -6s;
}

.auth-glow-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.25) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -3s;
}

/* Master Wrapper */
.auth-master-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

.auth-card-frame {
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-card-border);
  border-radius: var(--auth-radius-lg);
  box-shadow: var(--auth-card-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

/* Split Columns */
.auth-split-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 720px;
}

/* Left Side: Animated Showcase Hero Panel (Visual Panel) */
.auth-visual-panel {
  flex: 1 1 54%;
  min-width: 360px;
  background: linear-gradient(145deg, #07152b 0%, #00224f 50%, #003680 100%);
  position: relative;
  overflow: hidden;
  padding: 3.25rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.auth-visual-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.22), transparent 60%),
              radial-gradient(circle at bottom left, rgba(67, 97, 238, 0.28), transparent 60%);
  pointer-events: none;
}

/* Dotted Grid Pattern */
.auth-visual-circuit {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle, #ffffff 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Header Badge on Left Panel */
.auth-panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  padding: 0.45rem 1.15rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e0f2fe;
  width: fit-content;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 5;
}

.auth-tag-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--auth-accent-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.7);
  animation: authPulseRing 2s infinite;
}

/* ==========================================================================
   Carousel Stage / Visual Showcase Container (Holds the 3 Scenes)
   ========================================================================== */
.auth-interactive-showcase {
  position: relative;
  margin: 0.5rem 0 1.5rem;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.auth-scene-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
  pointer-events: none;
}

.auth-scene-item.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ==========================================================================
   SCENE 1: Real Centralized Bluecake Dashboard (Sales, CRM, ERP, POS, Finance)
   ========================================================================== */
.auth-glass-main-card {
  width: 100%;
  max-width: 410px;
  background: rgba(15, 32, 67, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 10, 35, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  z-index: 2;
  animation: authFloatSlow 6s ease-in-out infinite;
}

.auth-glass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-glass-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.auth-glass-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0B57F7, #0CBDFB);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(11, 87, 247, 0.35);
}

.auth-glass-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.auth-glass-subtitle {
  font-size: 0.7rem;
  color: #93c5fd;
  margin: 0;
}

.auth-glass-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(6, 214, 160, 0.18);
  border: 1px solid rgba(6, 214, 160, 0.35);
  color: #6ee7b7;
  border-radius: 20px;
  font-weight: 600;
}

/* Metric Display Inside Card */
.auth-metric-box {
  background: rgba(0, 15, 40, 0.4);
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-metric-label {
  font-size: 0.75rem;
  color: #93c5fd;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-metric-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.auth-metric-growth {
  font-size: 0.76rem;
  font-weight: 700;
  color: #6ee7b7;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* Quick Metrics Row for Multi-Module Hub */
.auth-quick-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.auth-quick-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.4rem 0.5rem;
  text-align: center;
}

.auth-quick-chip-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.auth-quick-chip-lbl {
  font-size: 0.62rem;
  color: #93c5fd;
  margin: 0;
}

/* Animated SVG Chart Line */
.auth-chart-svg {
  width: 100%;
  height: 44px;
  overflow: visible;
}

.auth-chart-path {
  fill: none;
  stroke: url(#chartGradient);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: authDrawChart 2.5s ease-out forwards;
}

.auth-chart-area {
  fill: url(#chartAreaGradient);
  opacity: 0.35;
}

.auth-chart-dot {
  fill: #00d4ff;
  stroke: #ffffff;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.9));
  animation: authPulseDot 2s infinite alternate;
}

/* Activity Ticker Row */
.auth-activity-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #e0f2fe;
}

.auth-activity-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(0, 180, 216, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

/* Floating Micro Orbit Badges */
.auth-float-chip {
  position: absolute;
  background: rgba(15, 32, 67, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 3;
  transition: transform 0.3s ease;
}

.auth-float-chip-1 {
  top: -15px;
  right: -20px;
  animation: authFloatReverse 5.5s ease-in-out infinite;
}

.auth-float-chip-2 {
  bottom: -15px;
  left: -20px;
  animation: authFloatSlow 7s ease-in-out infinite 0.5s;
}

.auth-float-chip-3 {
  top: 40%;
  left: -32px;
  animation: authFloatReverse 6.5s ease-in-out infinite 1s;
}

.auth-float-chip-4 {
  top: 15%;
  left: -25px;
  animation: authFloatSlow 6s ease-in-out infinite 0.8s;
}

.auth-float-chip-5 {
  bottom: -12px;
  right: 15px;
  animation: authFloatReverse 6s ease-in-out infinite 1.2s;
}

.auth-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.auth-chip-icon.pos { background: linear-gradient(135deg, #10b981, #059669); }
.auth-chip-icon.erp { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.auth-chip-icon.ai { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.auth-chip-icon.fin { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.auth-chip-icon.sales { background: linear-gradient(135deg, #f59e0b, #d97706); }

.auth-chip-text {
  display: flex;
  flex-direction: column;
}

.auth-chip-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.auth-chip-desc {
  font-size: 0.62rem;
  color: #93c5fd;
  margin: 0;
}


/* ==========================================================================
   SCENE 2: Real AI Copilot Intelligence Panel
   ========================================================================== */
.auth-ai-copilot-card {
  width: 100%;
  max-width: 410px;
  background: rgba(13, 26, 56, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 10, 35, 0.5), 0 0 30px rgba(139, 92, 246, 0.15);
  position: relative;
  z-index: 2;
  animation: authFloatSlow 6s ease-in-out infinite;
}

.auth-ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: 0.85rem;
}

.auth-ai-insight-box {
  background: rgba(0, 15, 40, 0.5);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-ai-insight-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-ai-metric-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.auth-ai-recommendation {
  background: rgba(139, 92, 246, 0.12);
  border-right: 3px solid #a78bfa;
  border-radius: 0 10px 10px 0;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.85rem;
}

.auth-ai-rec-label {
  font-size: 0.68rem;
  color: #c4b5fd;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.auth-ai-rec-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.auth-ai-auto-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.73rem;
  color: #bae6fd;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* ==========================================================================
   SCENE 3: Business Growth Progression (شركة -> فروع -> فريق عمل -> Enterprise)
   ========================================================================== */
.auth-growth-card {
  width: 100%;
  max-width: 410px;
  background: rgba(15, 32, 67, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 10, 35, 0.45), 0 0 25px rgba(0, 180, 216, 0.12);
  position: relative;
  z-index: 2;
  animation: authFloatSlow 6s ease-in-out infinite;
}

.auth-growth-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.15rem;
  position: relative;
}

.auth-growth-stage {
  background: rgba(0, 15, 40, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.65rem 0.4rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.auth-growth-stage.current {
  background: linear-gradient(135deg, rgba(0, 92, 184, 0.5), rgba(0, 180, 216, 0.4));
  border-color: #38bdf8;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.25);
}

.auth-growth-step-num {
  font-size: 0.62rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 0.15rem;
}

.auth-growth-step-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.auth-growth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.auth-growth-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

.auth-growth-tile-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.auth-growth-tile-desc {
  font-size: 0.62rem;
  color: #93c5fd;
  margin: 0;
}


/* ==========================================================================
   Numbered Scene Navigation Tabs & Carousel Footer
   ========================================================================== */
.auth-feature-carousel {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-scene-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.auth-scene-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #93c5fd;
  cursor: pointer;
  transition: all 0.25s ease;
}

.auth-scene-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.auth-scene-tab.active {
  background: rgba(0, 180, 216, 0.2);
  border-color: #00d4ff;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.2);
}

.auth-slide-item {
  display: none;
  animation: authFadeSlide 0.5s ease;
}

.auth-slide-item.active {
  display: block;
}

.auth-slide-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.auth-slide-desc {
  font-size: 0.86rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.auth-carousel-dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.auth-dot {
  width: 20px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-dot.active {
  background: #00d4ff;
  width: 42px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* Social Proof Trust Bar */
.auth-trust-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.15rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.auth-avatar-stack {
  display: flex;
  align-items: center;
}

.auth-stack-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #002b66;
  margin-left: -8px;
  object-fit: cover;
  background: #1e293b;
}

.auth-stars {
  color: #fbbf24;
  font-size: 0.82rem;
}


/* ==========================================================================
   Right Side: The Form Card
   ========================================================================== */
.auth-form-panel {
  flex: 1 1 46%;
  min-width: 340px;
  background: #ffffff;
  padding: 3.25rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Bluecake Official Vector Brand Header */
.auth-brand-wrapper {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-brand-logo-img {
  max-height: 125px;
  max-width: 260px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 92, 184, 0.15));
  transition: transform 0.3s ease;
}

.auth-brand-logo-img:hover {
  transform: scale(1.02);
}

/* Flash Alert Notifications */
.auth-flash-container {
  margin-bottom: 1.25rem;
  width: 100%;
}

.auth-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--auth-radius-md, 14px);
  font-size: 0.85rem;
  line-height: 1.5;
  border: 1px solid transparent;
  direction: rtl;
  text-align: right;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  animation: authFadeSlide 0.3s ease;
}

.auth-alert-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.auth-alert-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-alert-text {
  font-weight: 500;
  color: inherit;
  word-break: break-word;
}

.auth-alert-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.65;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.auth-alert-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.06);
}

.auth-alert-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.auth-alert-danger .auth-alert-icon {
  color: #dc2626;
}

.auth-alert-warning {
  background-color: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.auth-alert-warning .auth-alert-icon {
  color: #d97706;
}

.auth-alert-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.auth-alert-success .auth-alert-icon {
  color: #16a34a;
}

.auth-alert-info {
  background-color: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.auth-alert-info .auth-alert-icon {
  color: #0284c7;
}

/* Form Headings */
.auth-form-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-form-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.auth-form-sub {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

/* Input Group Styles */
.auth-form-group {
  margin-bottom: 1.25rem;
  position: relative;
  text-align: right;
}

.auth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.45rem;
}

.auth-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  right: 14px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-input-field {
  width: 100%;
  height: 48px;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--auth-radius-md);
  padding: 0.6rem 2.75rem 0.6rem 2.75rem;
  font-size: 0.92rem;
  color: #0f172a;
  font-family: 'Tajawal', sans-serif !important;
  transition: all 0.25s ease;
}

.auth-input-field:focus {
  background-color: #ffffff;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(0, 92, 184, 0.12);
  outline: none;
}

.auth-input-field:focus ~ .auth-input-icon {
  color: var(--auth-primary);
}

.auth-input-field.is-invalid {
  border-color: #ef4444;
  background-color: #fff8f8;
}

.auth-input-field.is-invalid ~ .auth-input-icon {
  color: #ef4444;
}

/* Toggle Password Eye Button */
.auth-password-toggle {
  position: absolute;
  left: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 3;
}

.auth-password-toggle:hover {
  color: var(--auth-primary);
  background-color: rgba(0, 92, 184, 0.08);
}

/* Forgot Password Row */
.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -0.35rem;
  margin-bottom: 1.5rem;
}

.auth-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--auth-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.auth-link:hover {
  color: var(--auth-primary-hover);
  text-decoration: underline;
}

/* Primary Action Submit Button */
.auth-btn-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #0B57F7 0%, #0CBDFB 60%, #06D2FD 100%);
  border: none;
  border-radius: var(--auth-radius-md);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 87, 247, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.auth-btn-submit:hover {
  background: linear-gradient(135deg, #0945c7 0%, #0aa7de 60%, #05bee5 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 87, 247, 0.45);
}

.auth-btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(11, 87, 247, 0.3);
}

.auth-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.35rem 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 0.85rem;
  font-weight: 500;
}

/* Google Sign-in Button */
.auth-btn-google {
  width: 100%;
  height: 48px;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--auth-radius-md);
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.auth-btn-google:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.auth-google-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Footer Switch Links */
.auth-footer-prompt {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.86rem;
  color: #64748b;
}

.auth-footer-link {
  color: var(--auth-primary);
  font-weight: 700;
  text-decoration: none;
  margin-right: 0.35rem;
  transition: all 0.2s ease;
}

.auth-footer-link:hover {
  color: var(--auth-primary-hover);
  text-decoration: underline;
}

/* Password Strength Indicator */
.auth-strength-meter {
  height: 5px;
  background-color: #e2e8f0;
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
  position: relative;
}

.auth-strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}

.auth-strength-text {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.3rem;
  display: block;
}

/* Multi-step Registration Progress Header */
.auth-steps-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
}

.auth-step-pill {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 4px;
}

/* LTR connecting line */
.auth-step-pill::after {
  content: '';
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.auth-step-pill:first-child::after {
  display: none !important;
}

/* RTL connecting line */
[dir="rtl"] .auth-step-pill::after,
html[dir="rtl"] .auth-step-pill::after,
body[dir="rtl"] .auth-step-pill::after,
.auth-card[dir="rtl"] .auth-step-pill::after {
  left: auto;
  right: -50%;
}

[dir="rtl"] .auth-step-pill:first-child::after,
html[dir="rtl"] .auth-step-pill:first-child::after,
body[dir="rtl"] .auth-step-pill:first-child::after,
.auth-card[dir="rtl"] .auth-step-pill:first-child::after {
  display: none !important;
}

.auth-step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}

.auth-step-pill.active .auth-step-bubble {
  background: #0B57F7;
  color: #ffffff;
  border-color: #0B57F7;
  box-shadow: 0 0 0 4px rgba(11, 87, 247, 0.20);
}

.auth-step-pill.completed .auth-step-bubble {
  background: #33CC99;
  color: #ffffff;
  border-color: #33CC99;
}

.auth-step-label {
  font-size: 0.78rem;
  color: #64748b;
  display: block;
  margin-top: 0.45rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  transition: color 0.25s ease;
}

.auth-step-pill.active .auth-step-label {
  color: #0B57F7;
  font-weight: 700;
}

.auth-step-pill.completed .auth-step-label {
  color: #33CC99;
  font-weight: 600;
}


/* ==========================================================================
   CSS Keyframe Animations (60 FPS Performance)
   ========================================================================== */
@keyframes authOrbPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
  50% { transform: scale(1.15) translate(30px, -20px); opacity: 0.55; }
  100% { transform: scale(0.95) translate(-20px, 30px); opacity: 0.4; }
}

@keyframes authFloatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.6deg); }
}

@keyframes authFloatReverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(6px) rotate(-0.6deg); }
}

@keyframes authPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(6, 214, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 214, 160, 0); }
}

@keyframes authDrawChart {
  to { stroke-dashoffset: 0; }
}

@keyframes authPulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 10px rgba(0, 212, 255, 1)); }
}

@keyframes authFadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991.98px) {
  .auth-split-row {
    flex-direction: column-reverse;
  }
  
  .auth-visual-panel {
    display: none;
  }

  .auth-form-panel {
    padding: 2.5rem 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .auth-page-body {
    padding: 1rem 0.5rem;
  }
  
  .auth-card-frame {
    border-radius: 18px;
  }

  .auth-form-panel {
    padding: 2rem 1.25rem;
  }

  .auth-brand-logo-img {
    max-height: 100px;
  }
}
