/* -------------------------------------------------------------
 * CORE DESIGN SYSTEM & VARIABLES
 * ------------------------------------------------------------- */
:root {
  --bg-primary: #060b16; /* Deep landing background */
  --bg-secondary: #0c1222;
  --bg-teal: #0b8c7c; /* Brand Teal */
  --bg-teal-hover: #076b5e;
  
  --card-bg: rgba(16, 22, 40, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(11, 140, 124, 0.3);
  
  /* Accent Colors */
  --color-primary: #6366f1; /* Indigo */
  --color-primary-glow: rgba(99, 102, 241, 0.15);
  --color-secondary: #ec4899; /* Pink */
  --color-secondary-glow: rgba(236, 72, 153, 0.15);
  
  --color-success: #10b981; /* Emerald */
  --color-success-glow: rgba(16, 185, 129, 0.2);
  --color-danger: #ef4444; /* Red */
  --color-danger-glow: rgba(239, 68, 68, 0.2);
  
  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  
  /* Auth Portal Spec Colors */
  --auth-input-bg: #edf2f9;
  --auth-input-text: #1e293b;
  --auth-bg-right: #f8fafc;

  /* Typography & Layout */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------
 * RESET & GENERAL STYLES
 * ------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Background glowing blur ornaments */
.bg-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--bg-teal) 0%, transparent 70%);
  top: -200px;
  left: -200px;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
}

/* Page sections */
.view-section {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: opacity 0.5s ease;
}

.hidden {
  display: none !important;
}

/* -------------------------------------------------------------
 * LANDING PAGE BACKDROP STYLING
 * ------------------------------------------------------------- */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: rgba(16, 22, 40, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  font-size: 2rem;
}

.brand-text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link-item:hover {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nav-auth-btns {
  display: flex;
  gap: 1rem;
}

.btn-outline-nav {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline-nav:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-solid-nav {
  background: var(--bg-teal);
  color: var(--text-inverse);
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(11, 140, 124, 0.2);
}

.btn-solid-nav:hover {
  background: var(--bg-teal-hover);
  box-shadow: 0 4px 15px rgba(11, 140, 124, 0.35);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 2rem;
  gap: 3rem;
}

.hero-content {
  max-width: 800px;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-shield {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-teal);
  background: rgba(11, 140, 124, 0.1);
  border: 1px solid rgba(11, 140, 124, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 1rem;
  width: 280px;
}

.hero-btn {
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.hero-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.feature-item {
  padding: 2.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.feature-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
 * AUTH PORTAL MODAL DESIGN (Matching Reference Image)
 * ------------------------------------------------------------- */
.auth-portal-container {
  width: 100%;
  max-width: 1000px;
  min-height: 560px;
  background: var(--auth-bg-right);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 480px 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

/* Close Button (X) */
.close-modal-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #64748b;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  z-index: 10;
}

.close-modal-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
  transform: rotate(90deg);
}

/* LEFT TEAL PANEL */
.auth-left-pane {
  background: linear-gradient(135deg, #0b8c7c 0%, #076b5e 100%);
  padding: 3.5rem 2.75rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-left-pane::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  top: -100px;
  left: -50px;
  pointer-events: none;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-star {
  font-size: 0.95rem;
}

.auth-left-content {
  margin: 4rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-left-content h2 {
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.auth-left-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.auth-left-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.left-action-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: fit-content;
  min-width: 220px;
}

.left-action-link:hover,
.left-action-link.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

.action-icon {
  font-size: 1.15rem;
}

/* RIGHT FORM PANEL */
.auth-right-pane {
  background: var(--auth-bg-right);
  padding: 3.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #334155;
}

/* Tabs switcher pills */
.auth-tabs {
  background: #f1f5f9;
  padding: 0.35rem;
  border-radius: 9999px;
  display: flex;
  width: fit-content;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 0.6rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 9999px;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.auth-right-header {
  margin-bottom: 1.75rem;
}

.auth-right-header h3 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.auth-right-header p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
}

/* Form Styles */
#auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#auth-form .form-group label {
  color: #334155;
  font-weight: 600;
  font-size: 0.875rem;
}

#auth-form .form-group input {
  background: var(--auth-input-bg);
  border: 1px solid rgba(0, 0, 0, 0.03);
  color: var(--auth-input-text);
  font-size: 1rem;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
}

#auth-form .form-group input::placeholder {
  color: #94a3b8;
  opacity: 0.8;
}

#auth-form .form-group input:focus {
  background: #ffffff;
  border-color: var(--bg-teal);
  box-shadow: 0 0 0 3px rgba(11, 140, 124, 0.15);
  color: #0f172a;
}

.auth-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  margin-top: 0.25rem;
  gap: 1rem;
}

.caption-text {
  color: #64748b;
  line-height: 1.3;
}

.forgot-link {
  color: var(--bg-teal);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.forgot-link:hover {
  color: var(--bg-teal-hover);
  text-decoration: underline;
}

.btn-teal {
  background: var(--bg-teal);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(11, 140, 124, 0.25);
}

.btn-teal:hover {
  background: var(--bg-teal-hover);
  box-shadow: 0 4px 20px rgba(11, 140, 124, 0.4);
  transform: translateY(-1px);
}

.auth-right-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
}

.auth-right-footer span {
  color: #64748b;
}

.auth-right-footer a {
  color: var(--bg-teal);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.auth-right-footer a:hover {
  color: var(--bg-teal-hover);
  text-decoration: underline;
}

#auth-form .form-group.invalid input {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  background: #fef2f2;
}

/* -------------------------------------------------------------
 * DASHBOARD PAGE COMPONENT OVERRIDES
 * ------------------------------------------------------------- */
#dashboard-page.view-section {
  gap: 2rem;
}

.nav-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-avatar {
  font-size: 1.5rem;
}

.profile-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.profile-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.profile-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-logout {
  background: transparent;
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  width: auto;
}

.btn-logout:hover {
  background: var(--color-danger-glow);
  border-color: var(--color-danger);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Form panel modifications */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 25px 30px -10px rgba(0, 0, 0, 0.4), 0 0 15px var(--color-primary-glow);
}

.panel {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.25rem;
}

.panel-header h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.25rem;
}

.panel-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Form Controls */
#product-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--bg-teal);
  box-shadow: 0 0 10px rgba(11, 140, 124, 0.2);
}

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

.price-input-wrapper input {
  padding-left: 2rem !important;
}

.currency-symbol {
  position: absolute;
  left: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
}

.error-msg {
  font-size: 0.8rem;
  color: var(--color-danger);
  font-weight: 400;
  min-height: 18px;
  display: block;
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: var(--color-danger);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}

/* Table styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.data-table th,
.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.product-id-cell {
  font-family: monospace;
  color: var(--text-muted);
}

.product-name-cell {
  font-weight: 600;
}

.product-desc-cell {
  color: var(--text-muted);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price-cell {
  font-weight: 600;
  color: var(--color-success);
}

.actions-col {
  text-align: right;
  width: 100px;
}

.actions-cell-wrapper {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Icons */
.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-icon.edit-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.4);
}

.btn-icon.delete-btn:hover {
  background: var(--color-danger-glow);
  color: var(--color-danger);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 8, 19, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

/* Zoom Entrance */
.animate-zoom {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.modal-overlay:not(.hidden) .animate-zoom {
  transform: scale(1);
  opacity: 1;
}

/* Alerts Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
}

.toast {
  background: rgba(16, 20, 38, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 320px;
  transform: translateY(20px);
  opacity: 0;
  animation: slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast.fade-out {
  animation: fade-out 0.35s var(--transition-smooth) forwards;
}

@keyframes fade-out {
  to {
    transform: translateY(10px);
    opacity: 0;
  }
}

.toast-success {
  border-left: 4px solid var(--color-success);
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-right: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 0 10px var(--color-success-glow);
}

.toast-error {
  border-left: 4px solid var(--color-danger);
  border-top: 1px solid rgba(239, 68, 68, 0.2);
  border-right: 1px solid rgba(239, 68, 68, 0.2);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 0 10px var(--color-danger-glow);
}

.toast-icon {
  font-size: 1.25rem;
}

.toast-msg {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Skeleton Loading */
.skeleton-loader {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem 0;
}

.skeleton-row {
  height: 48px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: loading-wave 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes loading-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* -------------------------------------------------------------
 * RESPONSIVENESS & MOBILE LAYOUTS
 * ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .auth-portal-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    min-height: auto;
  }
  
  .auth-left-pane {
    padding: 2.5rem 2rem;
  }
  
  .auth-left-content {
    margin: 2rem 0;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .view-section {
    padding: 1rem;
  }
  
  .landing-nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    align-items: flex-start;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .hero-content {
    padding: 2rem 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .auth-portal-container {
    max-width: 90%;
  }
  
  .auth-right-pane {
    padding: 2.5rem 1.5rem;
  }
  
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  
  .toast {
    min-width: 0;
    width: 100%;
  }
}
