/* AUTOGRADING Homepage Pillars, Steps, Workspace Actions & Login Card Styles */
/* Extracted from gauth-homepage.css to strictly uphold <= 800 lines modularity rule */

.gauth-symbol-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.35rem 0.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gauth-symbol-bar::-webkit-scrollbar { display: none; }
.btn-gauth-symbol {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.6);
  color: var(--text-primary, #1e293b);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-gauth-symbol:hover {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.3);
}
[data-theme="dark"] .btn-gauth-symbol {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}
[data-theme="dark"] .btn-gauth-symbol:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}
.gauth-katex-preview-box {
  min-height: 70px;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text-primary, #0f172a);
}
[data-theme="dark"] .gauth-katex-preview-box {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

/* Sample Question Chips */
.gauth-sample-chips-row {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.gauth-chips-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-gauth-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.7);
  border: 1px solid rgba(203, 213, 225, 0.6);
  color: var(--text-secondary, #475569);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-gauth-chip:hover {
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.3);
}
[data-theme="dark"] .btn-gauth-chip {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}
[data-theme="dark"] .btn-gauth-chip:hover {
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.35);
}

/* Card Bottom Action Bar */
.gauth-workspace-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: rgba(248, 250, 252, 0.6);
  border-top: 1px solid var(--border-subtle, rgba(226, 232, 240, 0.8));
  flex-wrap: wrap;
}
[data-theme="dark"] .gauth-workspace-actions {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.07);
}
.btn-gauth-action-primary {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem;
  border-radius: 12px; background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #00c5df 100%);
  color: #ffffff; font-size: 0.95rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer; box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28); transition: all 0.2s ease;
}
.btn-gauth-action-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #00b4d8 100%);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38); transform: translateY(-1px);
}
[data-theme="dark"] .btn-gauth-action-primary {
  background: linear-gradient(135deg, #0284c7 0%, #00c5df 100%);
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 4px 14px rgba(0, 197, 223, 0.25);
}
.btn-gauth-action-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.25rem;
  border-radius: 12px; background: var(--btn-secondary-bg, rgba(0, 197, 223, 0.1));
  color: var(--btn-secondary-fg, #0284c7); border: 1px solid var(--btn-secondary-border, rgba(0, 197, 223, 0.3));
  font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease;
}
.btn-gauth-action-secondary:hover {
  background: rgba(0, 197, 223, 0.18); border-color: #00c5df; transform: translateY(-1px);
}
[data-theme="dark"] .btn-gauth-action-secondary {
  background: rgba(0, 197, 223, 0.16); color: #22d3ee; border-color: rgba(0, 197, 223, 0.4);
}
.btn-gauth-action-tertiary {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.25rem;
  border-radius: 12px; background: transparent; color: #4f46e5; border: 1px solid rgba(79, 70, 229, 0.3);
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
}
[data-theme="dark"] .btn-gauth-action-tertiary { color: #818cf8; border-color: rgba(99, 102, 241, 0.4); }

/* 5. 3-Step "How It Works" Section */
.gauth-steps-section { margin-bottom: 4rem; }
.gauth-section-header { text-align: center; margin-bottom: 2.5rem; }
.gauth-section-title { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary, #0f172a); margin-bottom: 0.5rem; }
[data-theme="dark"] .gauth-section-title { color: #f8fafc; }
.gauth-section-desc { font-size: 0.95rem; color: var(--text-secondary, #64748b); max-width: 600px; margin: 0 auto; }
.gauth-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gauth-step-card {
  background: var(--surface-card, #ffffff); border-radius: 18px; border: 1px solid var(--border-subtle, rgba(226, 232, 240, 0.8));
  padding: 2rem 1.5rem; text-align: center; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03); transition: all 0.25s ease;
}
.gauth-step-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(79, 70, 229, 0.08); }
[data-theme="dark"] .gauth-step-card { background: #111827; border-color: rgba(255, 255, 255, 0.07); }
.gauth-step-number-pill {
  width: 42px; height: 42px; margin: 0 auto 1.25rem; border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #00c5df 100%); color: #ffffff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 197, 223, 0.35);
}
.gauth-step-heading { font-size: 1.1rem; font-weight: 700; color: var(--text-primary, #0f172a); margin-bottom: 0.5rem; }
[data-theme="dark"] .gauth-step-heading { color: #f8fafc; }
.gauth-step-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary, #64748b);
}

/* 6. Bento Grid 6 Core Pillars */
.gauth-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.gauth-bento-card {
  background: var(--surface-card, #ffffff);
  border-radius: 20px;
  border: 1px solid var(--border-subtle, rgba(226, 232, 240, 0.8));
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  cursor: pointer;
  user-select: none;
  position: relative;
  text-decoration: none;
}
.gauth-bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.12);
}
.gauth-bento-card:active {
  transform: translateY(-1px);
}
[data-theme="dark"] .gauth-bento-card { background: #111827; border-color: rgba(255, 255, 255, 0.07); }
[data-theme="dark"] .gauth-bento-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.gauth-bento-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle, rgba(226, 232, 240, 0.6));
}
[data-theme="dark"] .gauth-bento-footer {
  border-color: rgba(255, 255, 255, 0.06);
}
.gauth-bento-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.2s ease;
}
.gauth-bento-card:hover .gauth-bento-cta {
  transform: translateX(4px);
}
[data-theme="dark"] .gauth-bento-cta {
  color: #818cf8;
}
.gauth-bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.gauth-icon-indigo { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.gauth-icon-cyan { background: rgba(6, 182, 212, 0.1); color: #0891b2; }
.gauth-icon-emerald { background: rgba(16, 185, 129, 0.1); color: #059669; }
.gauth-icon-amber { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.gauth-icon-rose { background: rgba(244, 63, 94, 0.1); color: #e11d48; }
.gauth-icon-violet { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.gauth-bento-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin-bottom: 0.5rem;
}
[data-theme="dark"] .gauth-bento-title { color: #f8fafc; }
.gauth-bento-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary, #64748b);
  margin-bottom: 1.25rem;
}
.gauth-bento-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(241, 245, 249, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary, #475569);
  width: fit-content;
}
[data-theme="dark"] .gauth-bento-tag { background: rgba(255, 255, 255, 0.06); color: #94a3b8; }

/* 7. Teacher Login Container Section */
.gauth-login-section {
  max-width: 520px;
  margin: 0 auto 3rem;
  background: var(--surface-card, #ffffff);
  border-radius: 24px;
  border: 1px solid var(--border-subtle, rgba(226, 232, 240, 0.9));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 2.25rem;
  box-sizing: border-box;
}
[data-theme="dark"] .gauth-login-section {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.gauth-login-header { text-align: center; margin-bottom: 1.75rem; }
.gauth-login-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin-bottom: 0.35rem;
}
[data-theme="dark"] .gauth-login-title { color: #f8fafc; }
.gauth-login-desc { font-size: 0.875rem; color: var(--text-secondary, #64748b); }
