/**
 * AI Blog Manager - Modern SaaS Login Experience
 * Visual Direction: Autonomous AI Content Studio Split-Screen
 */

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

:root {
  --auth-navy: #0f172a;
  --auth-slate-dark: #1e293b;
  --auth-slate-medium: #334155;
  --auth-slate-muted: #64748b;
  --auth-slate-light: #94a3b8;
  --auth-border-subtle: #e2e8f0;
  --auth-bg-light: #f8fafc;
  --auth-blue: #2563eb;
  --auth-blue-hover: #1d4ed8;
  --auth-purple: #8b5cf6;
  --auth-indigo: #6366f1;
  --auth-gradient-primary: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #7c3aed 100%);
  --auth-gradient-text: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
  --auth-card-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(226, 232, 240, 0.8);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--auth-navy);
  background-color: var(--auth-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Page Split Wrapper */
.auth-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  position: relative;
  overflow-x: hidden;
}

/* ========================================================
   LEFT SIDE: BRAND / PRODUCT EXPERIENCE (~58% Width)
   ======================================================== */
.auth-brand-side {
  flex: 0 0 58%;
  max-width: 58%;
  background: linear-gradient(145deg, #f0f6ff 0%, #f6f3ff 45%, #eef2ff 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.25rem 3.5rem 2.75rem 4rem;
  overflow: hidden;
  border-right: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 12px 0 35px -15px rgba(37, 99, 235, 0.05);
}

/* Atmospheric Glow Elements */
.auth-glow-top {
  position: absolute;
  top: -120px;
  left: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
}

.auth-glow-bottom {
  position: absolute;
  bottom: -100px;
  right: -60px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, rgba(139, 92, 246, 0.08) 45%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

.auth-brand-curve {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  opacity: 0.35;
}

/* Brand Logo (Header) */
.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
  animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand-icon-box {
  width: 46px;
  height: 46px;
  background: var(--auth-navy);
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.25);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.brand-icon-box:hover {
  transform: scale(1.05);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--auth-navy);
  margin: 0;
}

.brand-gradient {
  background: var(--auth-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--auth-slate-muted);
  letter-spacing: 0.01em;
  margin: 2px 0 0 0;
}

/* Main Brand Pitch Area */
.brand-pitch-wrap {
  position: relative;
  z-index: 2;
  margin: 2.5rem 0 1.5rem 0;
}

.brand-headline {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--auth-navy);
  margin: 0 0 14px 0;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.brand-lead-text {
  font-size: 15px;
  line-height: 1.58;
  color: var(--auth-slate-medium);
  max-width: 500px;
  margin: 0 0 2.25rem 0;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

/* Interactive Split: Features on Left, 3D Dashboard on Right */
.brand-showcase-row {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  align-items: center;
}

/* Features List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 6px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateX(4px);
}

.feature-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.feature-item:hover .feature-icon-circle {
  transform: scale(1.08);
}

/* Feature Badge Color Schemes */
.badge-purple {
  background-color: #f3e8ff;
  color: #9333ea;
}
.badge-green {
  background-color: #dcfce7;
  color: #16a34a;
}
.badge-blue {
  background-color: #dbeafe;
  color: #2563eb;
}
.badge-orange {
  background-color: #ffedd5;
  color: #ea580c;
}

.feature-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--auth-navy);
  margin: 0 0 2px 0;
}

.feature-content p {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--auth-slate-muted);
  margin: 0;
}

/* ========================================================
   3D ISOMETRIC DASHBOARD MOCKUP
   ======================================================== */
.brand-dashboard-wrapper {
  position: relative;
  perspective: 1100px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.dashboard-3d-scene {
  position: relative;
  width: 320px;
  transform: rotateY(-11deg) rotateX(7deg) rotateZ(-1.5deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.dashboard-3d-scene:hover {
  transform: rotateY(-6deg) rotateX(4deg) rotateZ(-0.5deg);
}

/* Dashboard Window */
.dashboard-card-mockup {
  background: #ffffff;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 25px 45px -12px rgba(37, 99, 235, 0.16), 0 12px 24px -8px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.dashboard-header-mockup {
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #cbd5e1;
}

.window-title {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dashboard-body-mockup {
  display: flex;
  min-height: 190px;
}

/* Mini Sidebar Mockup */
.mockup-sidebar {
  width: 36px;
  background: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 8px;
}

.mockup-sidebar-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  margin-bottom: 4px;
}

.mockup-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
}
.mockup-nav-dot.active {
  background: #60a5fa;
  box-shadow: 0 0 6px #60a5fa;
}

/* Mockup Content Area */
.mockup-content {
  flex: 1;
  padding: 12px;
  background: #fdfdfe;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-banner-img {
  width: 100%;
  height: 64px;
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 50%, #818cf8 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.mockup-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-line {
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
}
.mockup-line.w-80 { width: 80%; }
.mockup-line.w-60 { width: 60%; }
.mockup-line.w-40 { width: 40%; }

.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed #edf2f7;
}

.mockup-pill-teal {
  width: 32px;
  height: 6px;
  border-radius: 3px;
  background: #34d399;
}
.mockup-pill-blue {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: #60a5fa;
}

/* Floating AI Central 3D Cube / Badge */
.floating-ai-beacon {
  position: absolute;
  top: -26px;
  left: 60px;
  z-index: 5;
  animation: floatAI 4.5s ease-in-out infinite;
}

.ai-glowing-badge {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

/* Sunburst light rays around AI badge */
.ai-rays {
  position: absolute;
  width: 90px;
  height: 90px;
  top: -16px;
  left: -16px;
  pointer-events: none;
  opacity: 0.65;
  animation: spinSlow 20s linear infinite;
}

/* Floating Satellite Badges */
.floating-pill {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  z-index: 6;
}

.pill-doc {
  top: -4px;
  left: 5px;
  background: #3b82f6;
  animation: floatPill 5s ease-in-out infinite 0.3s;
}

.pill-img {
  top: -38px;
  right: 120px;
  background: #10b981;
  animation: floatPill 5s ease-in-out infinite 0.7s;
}

.pill-chart {
  top: -15px;
  right: 50px;
  background: #f59e0b;
  animation: floatPill 5s ease-in-out infinite 1.2s;
}

/* Connected Dotted SVG Lines */
.ai-connection-lines {
  position: absolute;
  top: -50px;
  left: 0;
  width: 300px;
  height: 100px;
  pointer-events: none;
  z-index: 4;
}

/* Potted Succulent Plant Mockup in Front */
.mockup-plant-pot {
  position: absolute;
  bottom: -12px;
  left: -18px;
  z-index: 7;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

/* Bottom Quote Banner */
.auth-quote-pill {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  max-width: fit-content;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.quote-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #dbeafe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.quote-text-wrap {
  display: flex;
  flex-direction: column;
}

.quote-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--auth-slate-dark);
  margin: 0;
}

.quote-author {
  font-size: 12px;
  font-weight: 500;
  color: var(--auth-slate-muted);
  margin: 2px 0 0 0;
}

/* ========================================================
   RIGHT SIDE: LOGIN FORM (~42% Width)
   ======================================================== */
.auth-form-side {
  flex: 0 0 42%;
  max-width: 42%;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2.5rem 2rem;
  overflow-y: auto;
}

/* Dot Matrix Background Pattern (Top-Right) */
.auth-form-side::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 180px;
  height: 180px;
  background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
  background-size: 15px 15px;
  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
}

/* Main Centered Login Card */
.auth-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--auth-card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  width: 100%;
  max-width: 430px;
  padding: 2.5rem 2.25rem 2.25rem 2.25rem;
  position: relative;
  z-index: 2;
  animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Login Card Header Branding */
.card-header-branding {
  text-align: center;
  margin-bottom: 1.75rem;
}

.card-logo-box {
  width: 44px;
  height: 44px;
  background: var(--auth-navy);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 8px;
  box-shadow: 0 6px 14px -3px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.card-logo-box:hover {
  transform: rotate(5deg) scale(1.05);
}

.card-brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--auth-navy);
  margin: 0;
}

.card-brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--auth-slate-muted);
  margin: 3px 0 0 0;
}

/* Form Greetings */
.form-heading-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-main-heading {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--auth-navy);
  margin: 0 0 4px 0;
}

.form-sub-heading {
  font-size: 13.5px;
  color: var(--auth-slate-muted);
  margin: 0;
}

/* Error Alert */
.auth-error-alert {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b91c1c;
  font-size: 13px;
  animation: shake 0.4s ease-in-out;
}

.auth-error-alert i {
  font-size: 16px;
  flex-shrink: 0;
}

/* Inputs & Form Groups */
.form-field-group {
  margin-bottom: 1.25rem;
}

.form-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-slate-medium);
  margin-bottom: 6px;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-leading-icon {
  position: absolute;
  left: 14px;
  color: var(--auth-slate-light);
  font-size: 16px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.auth-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 14px;
  font-family: inherit;
  color: var(--auth-navy);
  background-color: #ffffff;
  border: 1.5px solid var(--auth-border-subtle);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  background-color: #ffffff;
}

.auth-input:focus + .input-leading-icon,
.input-icon-wrapper:focus-within .input-leading-icon {
  color: #2563eb;
}

/* Password Toggle Icon */
.btn-password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--auth-slate-light);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.btn-password-toggle:hover {
  color: var(--auth-navy);
}

.btn-password-toggle:focus {
  outline: 2px solid #3b82f6;
}

/* Options Row: Remember Me & Forgot Password */
.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -2px;
  margin-bottom: 1.5rem;
}

.custom-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-wrap input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background-color: #ffffff;
  margin: 0;
}

.custom-checkbox-wrap input[type="checkbox"]:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

.custom-checkbox-wrap input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label-text {
  font-size: 13px;
  color: var(--auth-slate-medium);
  font-weight: 500;
}

.forgot-password-link {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Primary Submit Button */
.btn-auth-submit {
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 12px;
  background: var(--auth-gradient-primary);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 22px -5px rgba(37, 99, 235, 0.38);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -5px rgba(37, 99, 235, 0.48);
}

.btn-auth-submit:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px -3px rgba(37, 99, 235, 0.3);
}

.btn-auth-submit:focus {
  outline: 3px solid rgba(59, 130, 246, 0.4);
}

.btn-auth-submit i {
  font-size: 17px;
  transition: transform 0.2s ease;
}

.btn-auth-submit:hover i {
  transform: translateX(3px);
}

/* Divider OR */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
}

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

.auth-divider span {
  padding: 0 12px;
  color: var(--auth-slate-light);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Demo Credentials Box */
.demo-credentials-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.demo-credentials-card:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.demo-shield-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e0e7ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.demo-info {
  display: flex;
  flex-direction: column;
}

.demo-title {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--auth-slate-muted);
}

.demo-badge {
  font-size: 12px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #e11d48;
  letter-spacing: -0.01em;
}

.demo-autofill-hint {
  margin-left: auto;
  font-size: 11px;
  color: #6366f1;
  font-weight: 600;
  opacity: 0.8;
}

/* ========================================================
   KEYFRAME ANIMATIONS
   ======================================================== */
@keyframes floatAI {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes floatPill {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* ========================================================
   RESPONSIVE DESIGN SYSTEM
   ======================================================== */

/* Large Laptops / Desktops */
@media (max-width: 1280px) {
  .auth-brand-side {
    padding: 2.75rem 2.5rem 2.25rem 3rem;
  }
  .brand-headline {
    font-size: 34px;
  }
  .brand-showcase-row {
    grid-template-columns: 240px 1fr;
    gap: 16px;
  }
  .dashboard-3d-scene {
    width: 290px;
  }
}

/* Medium Tablets & Laptops (Stacked or condensed split) */
@media (max-width: 1024px) {
  .auth-brand-side {
    flex: 0 0 52%;
    max-width: 52%;
    padding: 2.5rem 2rem;
  }
  .auth-form-side {
    flex: 0 0 48%;
    max-width: 48%;
    padding: 2rem 1.5rem;
  }
  .brand-headline {
    font-size: 30px;
  }
  .brand-showcase-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .brand-dashboard-wrapper {
    display: none; /* Hide 3D mockup on narrower tablets to maintain readability */
  }
}

/* Small Tablets & Mobile Devices (< 840px) */
@media (max-width: 840px) {
  .auth-container {
    flex-direction: column;
    min-height: 100vh;
  }

  .auth-brand-side {
    display: none; /* Hide large marketing illustration on mobile as required */
  }

  .auth-form-side {
    flex: 1 1 100%;
    max-width: 100%;
    min-height: 100vh;
    padding: 2rem 1.25rem;
    align-items: center;
    background: linear-gradient(180deg, #f0f6ff 0%, #f8fafc 40%, #f8fafc 100%);
  }

  .auth-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.08);
  }
}

/* Ultra Small Screens (320px - 400px) */
@media (max-width: 400px) {
  .auth-form-side {
    padding: 1.25rem 0.75rem;
  }

  .auth-card {
    padding: 1.5rem 1.15rem;
    border-radius: 16px;
  }

  .form-main-heading {
    font-size: 21px;
  }

  .btn-auth-submit {
    padding: 11px 16px;
    font-size: 14px;
  }

  .demo-badge {
    font-size: 10.5px;
  }

  .form-options-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
