:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-alt: #818cf8;
  --indigo: #4f46e5;
  --indigo-light: #e0e7ff;
  --purple: #9333ea;
  --purple-light: #f3e8ff;
  --green: #10b981;
  --green-light: #d1fae5;
  --red: #ef4444;
  --red-light: #fee2e2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--gray-800);
  line-height: 1.5;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevent body scroll, layout will handle it */
}

/* App Layout */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100%;
}

.sidebar {
  width: 260px;
  background-color: var(--card-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 20;
  flex-shrink: 0;
}

.sidebar .logo {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-menu {
  flex: 1;
  padding: 24px 16px;
  overflow-y: auto;
}

.sidebar-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 8px;
  padding: 0 12px;
  letter-spacing: 0.5px;
}

.sidebar-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.sidebar-btn i {
  font-size: 18px;
  color: var(--gray-400);
}

.sidebar-btn:hover {
  background-color: var(--gray-50);
  color: var(--gray-800);
}

.sidebar-btn:hover i {
  color: var(--gray-600);
}

.sidebar-btn.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-btn.active i {
  color: var(--primary);
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Header & Navigation */
.header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  background-color: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.logo h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.steps-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.step-btn i {
  font-size: 16px;
}

.step-btn:hover:not(.active) {
  background-color: var(--gray-100);
  color: var(--gray-700);
}

.step-btn.active {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.step-separator {
  color: var(--gray-300);
  font-size: 12px;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  overflow-y: auto;
}

.step-section {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.step-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes highlight-flash {
  0% {
    background-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
  }

  70% {
    background-color: rgba(139, 92, 246, 0.1);
  }

  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

.flash-highlight {
  animation: highlight-flash 1.8s ease-out forwards;
  border-radius: 4px;
  display: inline-block;
}

/* Row animation for bulk AI processing */
@keyframes row-processing-pulse {
  0%   { background-color: rgba(139, 92, 246, 0.08); box-shadow: inset 0 0 0 2px rgba(139, 92, 246, 0.4); }
  50%  { background-color: rgba(139, 92, 246, 0.18); box-shadow: inset 0 0 0 2px rgba(139, 92, 246, 0.7); }
  100% { background-color: rgba(139, 92, 246, 0.08); box-shadow: inset 0 0 0 2px rgba(139, 92, 246, 0.4); }
}

@keyframes row-done-flash {
  0%   { background-color: rgba(16, 185, 129, 0.25); }
  100% { background-color: transparent; }
}

tr.row-ai-processing {
  animation: row-processing-pulse 1s ease-in-out infinite;
  transition: background-color 0.3s;
}

tr.row-ai-done {
  animation: row-done-flash 1.2s ease-out forwards;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spin-icon {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  min-width: 260px;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  animation: fadeIn 0.3s ease;
  border-left: 4px solid transparent;
}

.toast-warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.toast-info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

.toast-success {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.toast-msg {
  font-weight: 400;
  opacity: 0.9;
}

.toast-close {
  margin-left: 4px;
  cursor: pointer;
  opacity: 0.5;
  font-size: 15px;
  flex-shrink: 0;
}

.toast-close:hover {
  opacity: 1;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

.card-header {
  margin-bottom: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 14px;
  color: var(--gray-500);
}

/* Layout Utilities */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.align-right {
  text-align: right;
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 16px;
}

.mt-4 {
  margin-top: 24px;
}

.mt-5 {
  margin-top: 32px;
}

.mb-0 {
  margin-bottom: 0px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 16px;
}

.mb-4 {
  margin-bottom: 24px;
}

.w-100 {
  width: 100%;
}

.pb-2 {
  padding-bottom: 8px;
}

.border-bottom {
  border-bottom: 1px solid var(--border-color);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--gray-500);
}

.hidden {
  display: none !important;
}

/* Colors */
.text-blue {
  color: var(--primary) !important;
}

.text-green {
  color: var(--green) !important;
}

.text-red {
  color: var(--red) !important;
}

.text-indigo {
  color: var(--indigo) !important;
}

.text-purple {
  color: var(--purple) !important;
}

.text-gray {
  color: var(--gray-500) !important;
}

.bg-blue-light {
  background-color: var(--primary-light) !important;
  border-color: #bfdbfe !important;
}

.bg-green-light {
  background-color: var(--green-light) !important;
  border-color: #a7f3d0 !important;
}

.bg-red-light {
  background-color: var(--red-light) !important;
  border-color: #fecaca !important;
}

.bg-indigo-light {
  background-color: var(--indigo-light) !important;
  border-color: #c7d2fe !important;
}

.bg-purple-light {
  background-color: var(--purple-light) !important;
  border-color: #e9d5ff !important;
}

.bg-gray-light {
  background-color: var(--gray-50) !important;
  border-color: var(--gray-200) !important;
}

.bg-indigo {
  background-color: var(--indigo);
  color: white;
}

.bg-green {
  background-color: var(--green);
  color: white;
}

/* Form Elements */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #fcfcfc;
  color: var(--gray-800);
  font-size: 14px;
  transition: all 0.2s;
}

/* Simulate the "dark input" from screenshots for inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="time"],
textarea {
  background-color: #3f3f46;
  color: white;
  border: 1px solid #52525b;
}

input::placeholder,
textarea::placeholder {
  color: #a1a1aa;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.toggle-group {
  display: flex;
  background-color: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius-md);
}

.toggle-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-btn.active {
  background-color: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.toggle-btn.active .ph-cloud {
  color: #f97316;
  /* AWS Orange */
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-alt {
  background-color: var(--primary-alt);
  box-shadow: 0 4px 14px 0 rgba(129, 140, 248, 0.39);
}

.btn-purple {
  background-color: var(--purple);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(147, 51, 234, 0.39);
}

.btn-purple:hover {
  background-color: #7e22ce;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--gray-700);
}

.btn-outline:hover {
  background-color: var(--gray-50);
}

.btn-danger-outline {
  background-color: transparent;
  border: 1px solid #fca5a5;
  color: var(--red);
}

.btn-danger-outline:hover {
  background-color: var(--red-light);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-xl {
  padding: 16px 24px;
  font-size: 16px;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-text:hover {
  text-decoration: underline;
}

.footer-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* Alerts */
.alert {
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 24px;
}

.alert-warning {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.alert-success {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.d-flex-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dropzone */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  background-color: var(--gray-50);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 24px;
  margin-bottom: 24px;
}

.dropzone:hover {
  border-color: var(--primary-alt);
  background-color: var(--primary-light);
}

.dropzone .icon-circle {
  width: 64px;
  height: 64px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: var(--gray-500);
  box-shadow: var(--shadow-sm);
}

.dropzone h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.dropzone p {
  font-size: 14px;
  color: var(--gray-500);
}

/* Tables */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.data-table th {
  background-color: var(--gray-50);
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.row-duplicate {
  background-color: #fff1f2;
}

.row-duplicate:hover {
  background-color: #ffe4e6 !important;
}

.data-table input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--indigo-600);
  cursor: pointer;
}

.small-table th,
.small-table td {
  padding: 12px;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.four-cols {
  grid-template-columns: repeat(4, 1fr);
}

.five-cols {
  grid-template-columns: repeat(5, 1fr);
}

.stat-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.stat-card.outlined {
  box-shadow: none;
  padding: 20px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}

/* Editor Grid */
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.pane-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 12px;
  color: var(--gray-400);
}

.search-box input {
  padding-left: 36px;
  background-color: white;
  border-color: var(--gray-300);
  color: var(--gray-800);
  border-radius: var(--radius-sm);
  padding-top: 8px;
  padding-bottom: 8px;
  width: 200px;
}

.search-box.l-search input {
  width: 300px;
  background-color: #3f3f46;
  color: white;
  border: none;
}

/* Send Grid */
.send-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
}

.test-send-box {
  background-color: var(--purple-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.test-send-box label {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-group {
  display: flex;
  gap: 8px;
}

.input-group input {
  flex: 1;
}

.send-logs {
  background-color: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.log-container {
  flex: 1;
  overflow-y: auto;
  max-height: 300px;
}

.log-item {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-item:last-child {
  border-bottom: none;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.bg-success {
  background-color: #dcfce7;
  color: #166534;
}

.bg-warning {
  background-color: #fef9c3;
  color: #854d0e;
}

.bg-error {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Animations & Transitions */
.btn, .sidebar-btn, .card, .stat-card, .form-control, .toggle-btn, .custom-checkbox .checkmark {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active, .sidebar-btn:active {
  transform: scale(0.97);
}

/* --- MOBILE RESPONSIVENESS --- */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: var(--z-overlay);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.show {
  display: block !important;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  /* Sidebar Drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: var(--z-sidebar);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
  }
  
  .sidebar.show {
    transform: translateX(0);
  }

  /* Header & Main */
  #mobile-menu-btn {
    display: block !important;
  }
  .header {
    padding: 0 16px;
  }
  .main-content {
    padding: 16px;
  }
  .steps-nav {
    display: none !important; /* Hide steps on small mobile to save space */
  }

  /* Cards & Forms */
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
  }
  .send-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 16px;
  }
  
  /* Toolbar & Flex Elements */
  .flex-between {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .toolbar > div {
    flex-direction: column;
    width: 100%;
    align-items: flex-start !important;
  }
  .toolbar select, .search-box.l-search, .search-box.l-search input {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Action Groups */
  .action-group {
    width: 100%;
    flex-direction: column;
  }
  .action-group button {
    width: 100%;
    justify-content: center;
  }
  
  /* Tables */
  .table-container {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }
  .data-table, .report-table {
    min-width: 700px;
  }
}

@media (max-width: 480px) {
  /* Ultra small adjustments */
  .modal-content {
    padding: 20px;
    width: 95%;
  }
  .toggle-group {
    flex-wrap: wrap;
    justify-content: center;
  }
  .auth-box {
    padding: 32px 24px;
    width: 92%;
  }
}

/* --- V7 DETAILED TEXT-BASED AUTH REDESIGN --- */
.auth-wrapper {
  background: #ffffff; /* Nền trắng chủ đạo */
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px); /* Họa tiết mờ làm nền */
  background-size: 20px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center; /* Căn giữa màn hình */
  justify-content: center;
  padding: 40px 20px;
}

.auth-header-out {
  margin-bottom: 24px;
  text-align: center;
  z-index: 2;
}

.auth-logo-large {
  height: 56px;
}

.auth-container {
  background: #ffffff; /* Thẻ nền trắng */
  width: 100%;
  max-width: 440px; /* Hình chữ nhật đứng */
  padding: 40px 48px; /* Padding rộng rãi */
  border-radius: 12px; /* Bo góc nhẹ/vừa */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02); /* Đổ bóng tinh tế */
  border: 1px solid rgba(226, 232, 240, 0.5); /* Viền cực kỳ nhạt */
  z-index: 2;
  text-align: left;
}

/* Wide version for Registration */
.auth-container.wide {
  max-width: 900px;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  font-family: inherit;
  font-size: 12px; /* Font chữ nhỏ */
  font-weight: 700; /* In đậm */
  color: #000000; /* Màu đen */
  margin-bottom: 8px;
  display: block;
}

.auth-form label span {
    color: #ef4444;
}

.auth-form .form-control {
  background-color: #f1f5f9 !important; /* Xám rất nhạt */
  border: 2px solid transparent !important; /* Không có viền rõ rệt */
  color: #0f172a !important;
  padding: 14px 16px !important;
  font-size: 14px !important;
  border-radius: 8px !important; /* Bo góc chữ V */
  width: 100%; /* Chiều rộng 100% */
  box-shadow: none !important;
  transition: all 0.2s;
}

.auth-form .form-control:focus {
  border-color: #2563eb !important; /* Đổi viền khi focus */
  background-color: #ffffff !important;
  outline: none;
}

.auth-form .form-control::placeholder {
  color: #94a3b8;
}

.forgot-password {
  display: block;
  text-align: right; /* Canh lề phải */
  font-size: 12px; /* Font chữ nhỏ */
  color: #000000; /* Màu đậm */
  text-decoration: none;
  font-weight: 700; /* In đậm */
  margin-bottom: 24px;
  margin-top: -12px;
}

.forgot-password:hover {
    color: #2563eb;
}

.auth-form .btn-submit {
  background: #2563eb; /* Xanh dương sáng và đậm */
  color: #ffffff; /* Text màu trắng */
  width: 100%; /* Chiều rộng 100% */
  padding: 14px;
  border-radius: 8px; /* Nút bo góc */
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.auth-form .btn-submit:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.auth-footer {
  margin-top: 32px;
  font-size: 13px;
  color: #475569; /* Xám/đen cho text */
  text-align: center; /* Căn giữa */
}

.auth-footer a {
  color: #06b6d4; /* Xanh lơ (cyan) */
  text-decoration: underline; /* Đóng vai trò là link */
  font-weight: 600;
}

.auth-footer a:hover {
    color: #0891b2;
}

@media (max-width: 480px) {
  .auth-container {
    padding: 32px 24px;
  }
}