/**
 * SHA Student Portal - Design System Component Styles
 */

/* ==========================================================================
   1. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
  line-height: 1.2;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--color-brand-purple);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--color-brand-purple-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--color-brand-purple-glow);
}

.btn-blue {
  background-color: var(--color-brand-blue);
  color: #FFFFFF;
}

.btn-blue:hover {
  background-color: var(--color-brand-blue-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--color-brand-blue-glow);
}

.btn-secondary {
  background-color: var(--color-navy-950);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background-color: var(--color-navy-850);
  color: #FFFFFF;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-border-subtle);
  color: var(--color-text-primary);
}

.btn-outline:hover {
  background-color: var(--color-surface-muted);
  border-color: var(--color-border-hover);
}

.btn-outline-purple {
  background-color: transparent;
  border-color: var(--color-brand-purple);
  color: var(--color-brand-purple);
}

.btn-outline-purple:hover {
  background-color: var(--color-brand-purple-subtle);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-500) 0%, var(--color-gold-600) 100%);
  color: #FFFFFF;
  border: 1px solid var(--color-gold-600);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--color-gold-600) 0%, var(--color-gold-700) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  background-color: var(--color-surface-muted);
  color: var(--color-text-primary);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   2. Text Links
   ========================================================================== */
.link {
  color: var(--color-brand-blue);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.link:hover {
  color: var(--color-brand-blue-hover);
  text-decoration: underline;
}

.link-purple {
  color: var(--color-brand-purple);
}

.link-purple:hover {
  color: var(--color-brand-purple-hover);
}

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

.link-muted:hover {
  color: var(--color-text-primary);
}

/* ==========================================================================
   3. Cards
   ========================================================================== */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-border-subtle);
}

.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-950);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  background-color: var(--color-canvas);
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   4. Form Elements & Inputs
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy-950);
}

.form-label .required {
  color: var(--color-danger);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--color-border-hover);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px var(--color-brand-blue-glow);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: var(--color-danger);
}

.form-group.has-error .form-error {
  display: block;
}

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

/* Responsive Two-Column Form Grid */
.form-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (max-width: 600px) {
  .form-grid-2col {
    grid-template-columns: 1fr;
  }
}

.input-icon-wrapper .input-icon {
  position: absolute;
  left: var(--space-3);
  color: var(--color-text-muted);
  pointer-events: none;
}

.input-icon-wrapper .form-input {
  padding-left: 2.5rem;
}

.input-icon-wrapper .input-icon-right {
  position: absolute;
  right: var(--space-3);
  cursor: pointer;
  color: var(--color-text-muted);
  background: none;
  border: none;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   5. Status Badges
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.625rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  line-height: 1;
  white-space: nowrap;
}

.badge-purple {
  background-color: var(--color-brand-purple-subtle);
  color: var(--color-brand-purple);
}

.badge-blue {
  background-color: var(--color-brand-blue-subtle);
  color: var(--color-brand-blue);
}

.badge-cyan {
  background-color: var(--color-brand-cyan-subtle);
  color: #0d9488;
}

.badge-gold {
  background-color: var(--color-gold-50);
  color: var(--color-gold-700);
  border: 1px solid var(--color-gold-border);
}

.badge-success {
  background-color: var(--color-success-subtle);
  color: #065F46;
}

.badge-warning {
  background-color: var(--color-warning-subtle);
  color: #92400E;
}

.badge-danger {
  background-color: var(--color-danger-subtle);
  color: #991B1B;
}

.badge-muted {
  background-color: var(--color-surface-muted);
  color: var(--color-text-secondary);
}

/* Upcoming Course Cards */
.course-card-upcoming {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
}
.course-card-upcoming:hover {
  border-color: var(--color-brand-purple);
  box-shadow: var(--shadow-md);
}
.course-card-upcoming-header {
  padding: var(--space-6);
}
.course-card-upcoming-footer {
  padding: var(--space-4) var(--space-6);
  background: var(--color-canvas);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* ==========================================================================
   6. Alerts & Callouts
   ========================================================================== */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.alert-success {
  background-color: var(--color-success-subtle);
  border-color: var(--color-success-border);
  color: #065F46;
}

.alert-warning {
  background-color: var(--color-warning-subtle);
  border-color: var(--color-warning-border);
  color: #92400E;
}

.alert-danger {
  background-color: var(--color-danger-subtle);
  border-color: var(--color-danger-border);
  color: #991B1B;
}

.alert-info {
  background-color: var(--color-info-subtle);
  border-color: var(--color-info-border);
  color: #075985;
}

/* ==========================================================================
   7. Dividers
   ========================================================================== */
.divider {
  height: 1px;
  background-color: var(--color-border);
  margin: var(--space-6) 0;
  border: none;
}

.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: var(--space-6) 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}

.divider-text:not(:empty)::before {
  margin-right: var(--space-4);
}

.divider-text:not(:empty)::after {
  margin-left: var(--space-4);
}

/* ==========================================================================
   8. Basic Tables
   ========================================================================== */
/* Table Scroll Hint (Mobile UX indicator) */
.table-scroll-hint {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  padding: 4px 2px;
}

.table-scroll-hint svg {
  flex-shrink: 0;
  color: var(--color-brand-blue);
}

@media (max-width: 768px) {
  .table-scroll-hint {
    display: flex;
  }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: #FFFFFF;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--font-size-sm);
}

.data-table th {
  background-color: var(--color-canvas);
  color: var(--color-navy-950);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  vertical-align: middle;
}

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

.data-table tr:hover td {
  background-color: var(--color-surface-hover);
}

/* ==========================================================================
   9. Empty-State Placeholders
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-muted);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.empty-state-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-950);
  margin-bottom: var(--space-2);
}

.empty-state-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  max-width: 400px;
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   10. Loading Indicators (Spinner & Skeletons)
   ========================================================================== */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-brand-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner-blue {
  border-top-color: var(--color-brand-blue);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-rect {
  height: 120px;
  width: 100%;
  border-radius: var(--radius-md);
}

.skeleton-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

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

/* ==========================================================================
   11. Accessible Modal Styling Foundations
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 25, 44, 0.7);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.modal-backdrop.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-950);
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: var(--space-1);
  display: flex;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-lg);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--color-navy-950);
  background-color: var(--color-surface-muted);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  background-color: var(--color-canvas);
}


/* ==========================================================================
   12. Premium Hero Mockup & Interactive Composition
   ========================================================================== */
.hero-mockup-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero-mockup-card {
  background-color: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(6, 13, 26, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  color: #FFFFFF;
}

.hero-mockup-topbar {
  background-color: rgba(6, 13, 26, 0.7);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.red { background-color: #EF4444; }
.mockup-dot.yellow { background-color: #F59E0B; }
.mockup-dot.green { background-color: #10B981; }

.mockup-title {
  font-family: var(--font-family-mono);
  font-size: 11px;
  color: #94A3B8;
  letter-spacing: 0.05em;
}

.hero-mockup-body {
  padding: var(--space-6);
}

.hero-floating-cert {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: #FFFFFF;
  color: var(--color-navy-950);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  z-index: 3;
  animation: floatSubtle 6s ease-in-out infinite;
}

.hero-floating-badge {
  position: absolute;
  top: -16px;
  left: -16px;
  background-color: var(--color-navy-900);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-lg);
  z-index: 3;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

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

@media (max-width: 768px) {
  .hero-floating-cert {
    position: static;
    margin-top: var(--space-4);
  }
  .hero-floating-badge {
    position: static;
    display: inline-flex;
    margin-bottom: var(--space-3);
  }
}

/* ==========================================================================
   13. Refined Course Cards
   ========================================================================== */
.course-card {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  height: 100%;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-purple);
  box-shadow: var(--shadow-card-hover);
}

.course-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--color-navy-900);
  overflow: hidden;
}

.course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.course-card:hover .course-card-thumb img {
  transform: scale(1.05);
}

.course-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
}

.course-card-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.course-card-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tech-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.tech-tag {
  font-family: var(--font-family-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background-color: var(--color-surface-muted);
  color: var(--color-text-secondary);
}

/* Upcoming Course Cards */
.course-card-upcoming {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
}
.course-card-upcoming:hover {
  border-color: var(--color-brand-purple);
  box-shadow: var(--shadow-md);
}
.course-card-upcoming-header {
  padding: var(--space-6);
}
.course-card-upcoming-footer {
  padding: var(--space-4) var(--space-6);
  background: var(--color-canvas);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* ==========================================================================
   14. Restrained Bento Grid Layout
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.bento-card {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.bento-card.dark {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.bento-card.dark:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.45);
}

.bento-card.col-8 { grid-column: span 8; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-12 { grid-column: span 12; }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.bento-icon.purple { background-color: var(--color-brand-purple-subtle); color: var(--color-brand-purple); }
.bento-icon.blue { background-color: var(--color-brand-blue-subtle); color: var(--color-brand-blue); }
.bento-icon.cyan { background-color: var(--color-brand-cyan-subtle); color: #0d9488; }
.bento-icon.gold { background-color: var(--color-gold-50); color: var(--color-gold-600); }

@media (max-width: 1024px) {
  .bento-card.col-8,
  .bento-card.col-4,
  .bento-card.col-6 {
    grid-column: span 12;
  }
}

/* ==========================================================================
   15. Learning Platform Hero Dashboard Visual (SHA Aesthetic)
   ========================================================================== */
.hero-dashboard-wrap {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

.hero-dashboard-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.35) 0%, rgba(37, 99, 235, 0.2) 45%, transparent 70%);
  filter: blur(32px);
  border-radius: var(--radius-2xl);
  pointer-events: none;
  z-index: 1;
}

.hero-dashboard-frame {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-2xl);
  box-shadow: 0 30px 70px -15px rgba(2, 6, 23, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  color: #FFFFFF;
}

.hero-dashboard-header {
  background: rgba(6, 13, 26, 0.9);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-xs);
}

.dash-nav-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px var(--space-5);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-nav-tabs::-webkit-scrollbar { display: none; }

.dash-tab {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: #94A3B8;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.dash-tab.active {
  background-color: var(--color-brand-purple);
  color: #FFFFFF;
}

.hero-dashboard-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dash-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.dash-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
}

.dash-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

@media (max-width: 580px) {
  .dash-subgrid {
    grid-template-columns: 1fr;
  }
}

.activity-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 52px;
  padding-top: 6px;
}

.activity-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.activity-bar {
  width: 100%;
  max-width: 24px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #8B5CF6 0%, #3B82F6 100%);
  transition: height var(--transition-base);
}

.activity-day {
  font-size: 10px;
  color: #94A3B8;
  font-family: var(--font-family-mono);
}

.trust-strip {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-8);
  font-size: var(--font-size-xs);
  color: #94A3B8;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dash-floating-pill {
  position: absolute;
  bottom: -16px;
  right: 20px;
  background: #FFFFFF;
  color: var(--color-navy-950);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  z-index: 4;
}

/* Workflow Step Cards for "See How It Works" */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.workflow-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: all var(--transition-base);
}

.workflow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-brand-purple);
}

.workflow-step-num {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-brand-purple);
  opacity: 0.85;
  margin-bottom: var(--space-3);
  display: block;
}

@media (max-width: 768px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .dash-floating-pill {
    position: static;
    margin-top: var(--space-3);
    border-radius: var(--radius-lg);
  }
}

/* ==========================================================================
   16. Option B + Option C: Futuristic Tech & Course Showcase Hero Visual
   ========================================================================== */
.showcase-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.tech-ambient-glow {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle at 75% 30%, rgba(139, 92, 246, 0.35) 0%, rgba(37, 99, 235, 0.22) 40%, rgba(6, 182, 212, 0.08) 65%, transparent 75%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 1;
}

.tech-orbit-canvas {
  position: absolute;
  inset: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
}

.course-showcase-stack {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 1025px) {
  .course-showcase-stack {
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform var(--transition-base);
  }
  .course-showcase-stack:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
  }
  .hero-course-card.primary {
    transform: translateZ(16px);
  }
  .hero-course-card.secondary {
    transform: translateZ(0px) translateX(14px);
  }
}

.hero-course-card {
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: 0 25px 60px -15px rgba(2, 6, 23, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.hero-course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.6), rgba(56, 189, 248, 0.6), transparent);
  opacity: 0.7;
}

.hero-course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 30px 70px -15px rgba(2, 6, 23, 0.95), 0 0 20px rgba(139, 92, 246, 0.25);
}

.hero-course-card.primary {
  border-color: rgba(167, 139, 250, 0.3);
}

.hero-course-card.secondary {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(56, 189, 248, 0.25);
  padding: var(--space-4) var(--space-5);
}

.hero-course-card.secondary:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 30px 70px -15px rgba(2, 6, 23, 0.95), 0 0 20px rgba(56, 189, 248, 0.2);
}

.showcase-course-media {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.showcase-thumb-wrap {
  width: 110px;
  height: 74px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.showcase-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 13, 26, 0.6) 100%);
}

.showcase-course-content {
  flex: 1;
  min-width: 0;
}

.showcase-course-title {
  color: #FFFFFF;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.showcase-tag {
  font-size: 10px;
  font-weight: 500;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.showcase-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: var(--font-size-xs);
}

.showcase-link {
  color: var(--color-brand-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.showcase-link:hover {
  color: #FFFFFF;
  gap: 7px;
}

.hero-tech-capsule {
  position: absolute;
  bottom: -18px;
  right: 16px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(167, 139, 250, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #FFFFFF;
  font-weight: var(--font-weight-semibold);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 16px rgba(109, 40, 217, 0.25);
  z-index: 4;
}

@media (max-width: 640px) {
  .showcase-course-media {
    flex-direction: column;
    align-items: flex-start;
  }
  .showcase-thumb-wrap {
    width: 100%;
    height: 120px;
  }
  .showcase-course-title {
    white-space: normal;
  }
  .hero-tech-capsule {
    position: static;
    margin-top: var(--space-3);
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-lg);
  }
}

/* ==========================================================================
   17. Transparent Navbar That Changes On Scroll
   ========================================================================== */
.site-header-transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-sticky);
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header-transparent .brand-title {
  color: #FFFFFF;
}

.site-header-transparent .brand-subtitle {
  color: #C4B5FD;
}

.site-header-transparent .nav-link {
  color: #CBD5E1;
  transition: color var(--transition-fast);
}

.site-header-transparent .nav-link:hover,
.site-header-transparent .nav-link.active {
  color: #FFFFFF;
}

.site-header-transparent .nav-link.active::after {
  background-color: #38BDF8;
}

.site-header-transparent .header-signin-btn {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.site-header-transparent .header-signin-btn:hover {
  border-color: #38BDF8;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
}

.site-header-transparent .mobile-menu-btn {
  color: #FFFFFF;
}

/* Scrolled state: Solid / Translucent Dark Navy with backdrop blur */
.site-header-transparent.scrolled {
  background-color: rgba(6, 9, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.75);
}

@media (max-width: 640px) {
  .site-header-transparent .header-explore-btn {
    display: none;
  }
  .site-header-transparent .header-actions {
    gap: var(--space-2);
  }
}

/* ==========================================================================
   18. Immersive Full-Screen 3D Hero
   ========================================================================== */
.hero-immersive {
  min-height: 100vh;
  position: relative;
  background-color: #060813;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-height) + var(--space-8));
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-immersive-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Perspective Grid Floor & Horizon Glow */
.hero-grid-floor {
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 52%;
  background-image:
    linear-gradient(to right, rgba(167, 139, 250, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(500px) rotateX(68deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 85%);
  pointer-events: none;
  z-index: 1;
}

.hero-horizon-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(139, 92, 246, 0.4) 25%, rgba(56, 189, 248, 0.75) 50%, rgba(139, 92, 246, 0.4) 75%, transparent 95%);
  box-shadow: 0 0 24px 3px rgba(56, 189, 248, 0.35);
  pointer-events: none;
  z-index: 1;
}

/* Ambient Top-Right Atmospheric Aura */
.hero-ambient-aura {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.32) 0%, rgba(37, 99, 235, 0.18) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

/* Right Side: 3D Sculpture Stage */
.hero-sculpture-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sculpture-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-3d-sculpture {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle at 50% 50%, #000000 42%, rgba(0, 0, 0, 0.6) 58%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000000 42%, rgba(0, 0, 0, 0.6) 58%, transparent 72%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-3d-sculpture {
    animation: floatSculpture 7s ease-in-out infinite alternate;
  }
}

@keyframes floatSculpture {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-16px) scale(1.02); }
}

.sculpture-radial-mask {
  display: none;
}

.sculpture-wireframe-lines {
  position: absolute;
  inset: -15%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Left Side: Learning Benefits 3-Column Strip */
.hero-metrics-row {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  position: relative;
  z-index: 2;
}

.hero-metric-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-num {
  font-family: var(--font-family-headings);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: var(--font-size-xs);
  color: #94A3B8;
  line-height: 1.4;
  max-width: 170px;
}

.hero-metric-divider {
  width: 1px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1024px) {
  .hero-immersive {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-12);
  }
  .hero-immersive-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .sculpture-wrap {
    max-width: 440px;
  }
}

@media (max-width: 640px) {
  .hero-metrics-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  .hero-metric-divider {
    display: none;
  }
  .sculpture-wrap {
    max-width: 320px;
  }
}

/* ==========================================================================
   19. Authentication Split-Screen Experience & Form Controls
   ========================================================================== */
html.auth-html,
body.auth-body {
  height: 100% !important;
  height: 100vh !important;
  height: 100svh !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.auth-split-wrapper {
  height: 100% !important;
  height: 100vh !important;
  height: 100svh !important;
  max-height: 100vh !important;
  max-height: 100svh !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  background-color: #060813;
  color: #FFFFFF;
  position: relative;
}

/* Left Panel: High-Impact Authentication Form Canvas */
.auth-form-side {
  flex: 1 1 520px;
  max-width: 580px;
  height: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  padding: clamp(10px, 2.2vh, 26px) clamp(16px, 3.5vw, 40px);
  background: rgba(8, 13, 26, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
  position: relative;
  overflow: hidden !important;
}

.auth-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  margin-bottom: clamp(4px, 1.2vh, 14px);
}

.auth-header-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.auth-header-brand:hover {
  opacity: 0.9;
}

.auth-header-brand img {
  width: clamp(26px, 3.5vh, 32px);
  height: clamp(26px, 3.5vh, 32px);
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.auth-brand-title {
  font-family: var(--font-family-headings);
  font-weight: var(--font-weight-bold);
  font-size: clamp(13px, 1.6vh, 15px);
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.auth-brand-subtitle {
  font-size: clamp(10px, 1.2vh, 11px);
  color: #94A3B8;
  font-weight: var(--font-weight-medium);
}

.auth-nav-back-btn {
  color: #94A3B8 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  font-size: 11.5px !important;
  padding: 4px 10px !important;
  min-height: 28px !important;
  height: 28px !important;
}

.auth-card-inner {
  width: 100%;
  max-width: 410px;
  margin: auto auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 1;
}

.auth-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(109, 40, 217, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-cyan);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: clamp(3px, 0.8vh, 6px);
  align-self: flex-start;
}

.auth-title {
  font-family: var(--font-family-headings);
  font-size: clamp(1.35rem, 2.7vh, 1.85rem);
  font-weight: var(--font-weight-extrabold);
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: clamp(2px, 0.5vh, 4px);
}

.auth-subtitle {
  font-size: clamp(11.5px, 1.35vh, 13px);
  color: #94A3B8;
  line-height: 1.4;
  margin-bottom: clamp(8px, 1.6vh, 14px);
}

.auth-demo-helper {
  display: block;
  margin-top: 3px;
  color: #C4B5FD;
  font-size: 11px;
}

.auth-demo-link {
  background: none;
  border: none;
  color: #38BDF8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 2px;
  text-decoration: underline;
}

.auth-demo-link:hover {
  color: #7DD3FC;
}

/* Form Controls & Labels */
.auth-form-group {
  margin-bottom: clamp(5px, 1.2vh, 10px);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-label {
  font-size: 11.5px;
  font-weight: 500;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-label .required {
  color: #F87171;
}

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

.auth-input {
  width: 100%;
  height: clamp(34px, 4.2vh, 38px);
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  font-size: 13.5px;
  color: #FFFFFF;
  background-color: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  font-family: var(--font-family-body);
  transition: all var(--transition-fast);
}

.auth-input-wrapper .auth-input {
  padding-right: 2.5rem;
}

.auth-input::placeholder {
  color: #64748B;
  font-size: 12.5px;
}

.auth-input:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.auth-input:focus {
  outline: none;
  border-color: #8B5CF6;
  background-color: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.35);
}

.auth-pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94A3B8;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.auth-pwd-toggle:hover {
  color: #FFFFFF;
}

.auth-remember-row {
  margin-bottom: clamp(6px, 1.3vh, 12px);
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #94A3B8;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 3px;
  background-color: rgba(15, 23, 42, 0.8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  margin: 0;
  vertical-align: middle;
}

.auth-checkbox:checked {
  background-color: var(--color-brand-purple);
  border-color: var(--color-brand-purple-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

.auth-forgot-link {
  color: #93C5FD;
  font-size: 11.5px;
  text-decoration: none;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-form-side .btn-primary {
  width: 100%;
  height: clamp(34px, 4.4vh, 38px);
  min-height: 34px;
  padding: 0.4rem 0.85rem;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-md);
}

/* Subtle "OR" Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: clamp(5px, 1.2vh, 12px) 0;
  color: #64748B;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.12);
}

/* Google OAuth Button */
.auth-oauth-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: clamp(34px, 4.4vh, 38px);
  min-height: 34px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-family: var(--font-family-body);
  box-sizing: border-box;
}

.auth-oauth-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.auth-switch-link {
  margin-top: clamp(6px, 1.3vh, 12px);
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
}

.auth-link-bold {
  color: #C4B5FD;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.auth-link-bold:hover {
  text-decoration: underline;
}

.auth-terms-note {
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: clamp(6px, 1.3vh, 10px);
  line-height: 1.35;
}

.auth-terms-note a {
  color: #C4B5FD;
  text-decoration: underline;
}

/* Password Strength Indicator */
.auth-strength-meter {
  margin-top: 3px;
}

.auth-strength-track {
  display: flex;
  gap: 3px;
  height: 3px;
  margin-bottom: 2px;
}

.auth-strength-segment {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: background-color 0.25s ease;
}

.auth-strength-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #94A3B8;
}

/* Feedback & Alert Banners */
.auth-alert {
  display: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  line-height: 1.4;
  margin-bottom: clamp(6px, 1.2vh, 10px);
  animation: fadeInAuthAlert 0.2s ease-out;
}

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

.auth-alert-danger {
  background-color: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.auth-alert-info {
  background-color: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #93C5FD;
}

.auth-alert-warning {
  background-color: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FDE68A;
}

/* Footer Nav */
.auth-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #64748B;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.auth-footer-nav a {
  color: #64748B;
  text-decoration: none;
}

.auth-footer-nav a:hover {
  color: #94A3B8;
}

/* Right Panel: Showcase Stage with 3D Infinity Sculpture & Core Platform Value */
.auth-showcase-side {
  flex: 1 1 50%;
  height: 100% !important;
  max-height: 100% !important;
  position: relative;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(16px, 3vh, 36px);
  box-sizing: border-box;
  background: radial-gradient(ellipse at 70% 30%, rgba(109, 40, 217, 0.28) 0%, rgba(37, 99, 235, 0.16) 45%, #060813 85%);
}

.auth-showcase-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 75%);
  pointer-events: none;
}

.auth-showcase-card {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 440px;
  background: rgba(11, 17, 33, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 2.5vh, 26px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.auth-showcase-sculpture-wrap {
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  width: clamp(260px, 40vh, 440px);
  height: clamp(260px, 40vh, 440px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.auth-showcase-sculpture {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle at 50% 50%, #000 38%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 38%, transparent 70%);
}

@media (prefers-reduced-motion: no-preference) {
  .auth-showcase-sculpture {
    animation: floatSculpture 8s ease-in-out infinite alternate;
  }
}

.auth-showcase-bullets {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vh, 14px);
  margin-top: clamp(10px, 1.8vh, 16px);
}

.auth-showcase-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.auth-showcase-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(109, 40, 217, 0.2);
  color: #C4B5FD;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Responsive Rules for Mobile and Tablet */
@media (max-width: 1024px) {
  .auth-showcase-side {
    display: none !important;
  }
  .auth-form-side {
    max-width: 100% !important;
    border-right: none !important;
    padding: clamp(10px, 2vh, 20px) clamp(16px, 4vw, 28px) !important;
  }
}

@media (max-height: 720px) {
  .auth-form-side {
    padding: 8px clamp(12px, 3vw, 24px) !important;
  }
  .auth-header-nav {
    margin-bottom: 4px !important;
  }
  .auth-card-inner {
    max-width: 380px !important;
  }
  .auth-title {
    font-size: 1.3rem !important;
    margin-bottom: 2px !important;
  }
  .auth-subtitle {
    font-size: 11.5px !important;
    margin-bottom: 6px !important;
  }
  .auth-form-group {
    margin-bottom: 5px !important;
    gap: 2px !important;
  }
  .auth-label {
    font-size: 11px !important;
  }
  .auth-input,
  .auth-oauth-btn,
  .auth-form-side .btn {
    height: 34px !important;
    min-height: 34px !important;
    font-size: 12.5px !important;
    padding: 0.3rem 0.65rem !important;
  }
  .auth-divider {
    margin: 5px 0 !important;
    font-size: 9.5px !important;
  }
  .auth-switch-link {
    margin-top: 5px !important;
    font-size: 11.5px !important;
  }
  .auth-footer-nav {
    padding-top: 4px !important;
    font-size: 10px !important;
  }
  .auth-badge-pill {
    padding: 2px 7px !important;
    font-size: 9px !important;
    margin-bottom: 2px !important;
  }
}
