/* Modular CSS slice extracted from style.css (5744-6462) */
.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1d4ed8;
  text-transform: uppercase;
  width: fit-content;
  transition: all 0.2s ease;
}

.auth-brand-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.auth-hero-title {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
}

.text-gradient {
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

/* Feature List */
.auth-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.auth-feature-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(129, 140, 248, 0.25);
  transform: translateX(4px);
}

.auth-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
  color: #38bdf8;
  flex-shrink: 0;
}

.auth-feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-feature-text strong {
  font-size: 0.95rem;
  color: #f1f5f9;
  font-weight: 700;
}

.auth-feature-text span {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Direct Student Link in Hero */
.auth-student-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  color: #cbd5e1;
}

.btn-link-student-portal {
  background: none;
  border: none;
  color: #34d399;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-link-student-portal:hover {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
}

/* Right Login Card */
.auth-gate-card-wrapper {
  display: flex;
  justify-content: center;
}

.auth-gate-card {
  width: 100%;
  max-width: 460px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(79, 70, 229, 0.15);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-card-header {
  text-align: center;
}

.auth-card-icon-lock {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem auto;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.35);
}

.auth-card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
}

.auth-card-header p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

/* Auth Gate Form */
.auth-gate-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.auth-gate-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  animation: authFadeIn 0.2s ease-out;
}

.form-group-gate {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group-gate label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-toggle-pass-text {
  background: none;
  border: none;
  color: #818cf8;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.btn-toggle-pass-text:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

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

.input-gate-icon {
  position: absolute;
  left: 0.95rem;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.input-gate {
  width: 100%;
  padding: 0.75rem 0.95rem 0.75rem 2.65rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.input-gate:focus {
  outline: none;
  border-color: #6366f1;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.input-gate::placeholder {
  color: #475569;
}

.form-row-gate-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-gate-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.btn-gate-primary {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--primary-gradient, linear-gradient(135deg, #0284c7 0%, #00b4d8 50%, #00c5df 100%));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(0, 197, 223, 0.38);
  transition: all 0.2s ease;
  margin-top: 0.35rem;
}

.btn-gate-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #00b4d8 100%);
  box-shadow: 0 6px 22px rgba(0, 197, 223, 0.52);
  transform: translateY(-1px);
}

.btn-gate-primary:active {
  transform: translateY(0);
}

/* Fast Demo Login Section */
.auth-demo-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.auth-demo-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.auth-demo-divider::before,
.auth-demo-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-demo-divider span {
  padding: 0 0.75rem;
}

.auth-demo-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.btn-gate-demo-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.35rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gate-demo-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #818cf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.demo-pill-role {
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 4px;
}

.demo-pill-role.role-gv { color: #60a5fa; }
.demo-pill-role.role-adm { color: #f472b6; }
.demo-pill-role.role-hs { color: #34d399; }

.btn-gate-demo-pill strong {
  font-size: 0.8rem;
  font-family: monospace;
  color: #f1f5f9;
}

.auth-card-footer {
  text-align: center;
  margin-top: -0.25rem;
}

.auth-card-footer p {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .auth-gate-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 580px;
  }
  .auth-hero-title {
    font-size: 2.25rem;
  }
  .auth-gate-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .desktop-only-tool-pill {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .auth-gate-wrapper {
    padding: 0.5rem 0.25rem 2rem;
  }
  .auth-gate-header-bar {
    margin-bottom: 0.85rem;
    padding: 0;
  }
  .pricing-label-desktop {
    display: none !important;
  }
  .pricing-label-mobile {
    display: inline !important;
  }
  .btn-guest-pricing-trigger {
    padding: 0.32rem 0.65rem;
    font-size: 0.76rem;
  }
  .auth-theme-toggle {
    padding: 0.32rem 0.55rem;
  }
  .auth-theme-toggle .theme-toggle-label {
    display: none !important;
  }
  .auth-hero-title {
    font-size: 1.85rem;
  }
  .auth-hero-subtitle {
    font-size: 0.92rem;
  }
  .auth-gate-card {
    padding: 1.5rem 1.15rem;
  }
  .auth-demo-pills-grid {
    grid-template-columns: 1fr;
  }
  .btn-gate-demo-pill {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
  }
  .auth-student-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .auth-footer-links {
    gap: 0.4rem;
    font-size: 0.75rem;
  }
  html.portal-mode #student-portal-view,
  body.portal-mode #student-portal-view,
  body.unauthenticated.portal-mode #student-portal-view {
    margin: 0.5rem auto !important;
    padding: 0 0.75rem !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: none !important;
  }
  .portal-mode .mobile-bottom-dock,
  html.portal-mode .mobile-bottom-dock,
  body.portal-mode .mobile-bottom-dock {
    display: none !important;
  }
}

/* ==========================================================================
   SCIENTIFIC SCORE BREAKDOWN & SUBJECT STRATEGY STYLES
   ========================================================================== */
.subject-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.score-pill-table {
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  display: inline-flex;
  align-items: baseline;
  user-select: none;
}

.score-pill-table:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  filter: brightness(0.96);
}

.score-breakdown-table th {
  font-weight: 700;
  border-bottom: 2px solid var(--border-color, #e2e8f0);
}

.score-breakdown-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  vertical-align: top;
}

.score-breakdown-table tr:hover {
  background: #f8fafc;
}

.q-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.q-status-correct {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.q-status-partial {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.q-status-incorrect {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.q-status-unattempted {
  background: #f4f4f5;
  color: #71717a;
  border: 1px solid #e4e4e7;
}

@media (max-width: 768px) {
  .score-breakdown-modal-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .score-breakdown-modal-content {
    padding: 1rem;
    max-height: 95vh;
  }
  .score-breakdown-table th,
  .score-breakdown-table td {
    padding: 0.5rem 0.4rem;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   ENHANCED RUBRIC ACCORDION & DETAILED GUIDANCE (SPEEDGRADER & MODAL VIEWER)
   ========================================================================== */
.sg-rubric-card {
  flex-shrink: 0;
  min-height: 44px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  margin-bottom: 0.65rem;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sg-rubric-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.sg-rubric-header {
  flex-shrink: 0;
  min-height: 42px;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: #fafafa;
  transition: background 0.15s ease;
}

.sg-rubric-header:hover {
  background: #f1f5f9;
}

.sg-rubric-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
}

.sg-rubric-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sg-rubric-score-badge {
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.sg-rubric-toggle-icon {
  font-size: 0.75rem;
  color: #64748b;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sg-rubric-card.open .sg-rubric-toggle-icon {
  transform: rotate(180deg);
}

.sg-rubric-body {
  display: none;
  padding: 0.85rem;
  border-top: 1px solid var(--border-color, #e2e8f0);
  background: #ffffff;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #334155;
}

.sg-rubric-card.open .sg-rubric-body {
  display: block;
  animation: fadeInAccordion 0.2s ease;
}

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

.rubric-section-block {
  margin-bottom: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
}

.rubric-section-block:last-child {
  margin-bottom: 0;
}

.rubric-block-header {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rubric-section-criteria {
  background: #f8fafc;
  border-left: 3px solid #6366f1;
}
.rubric-section-criteria .rubric-block-header {
  color: #4f46e5;
}

.rubric-section-feedback {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
}
.rubric-section-feedback .rubric-block-header {
  color: #b45309;
}
