/* ══════════════════════════════════════════════════════════════
   eduCore Portal — Style Sheet
   Extracted from Kolibri AuthBase.vue, adapted for static HTML
   ══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: #1a1c1c;
  background-color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Split Layout ───────────────────────────────────────────── */
.layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── Hero Panel (left 58%) ──────────────────────────────────── */
.hero-panel {
  position: relative;
  display: flex;
  flex: 0 0 58.333%;
  flex-direction: column;
  min-height: 100vh;
  padding: 48px 64px;
  overflow: hidden;
  background: linear-gradient(145deg, #0e5b41 0%, #06402d 100%);
}

/* Chevrons background image */
.hero-chevrons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(100%);
}

/* Ambient glow blob (bottom-left) */
.hero-glow {
  position: absolute;
  bottom: -96px;
  left: -96px;
  width: 384px;
  height: 384px;
  pointer-events: none;
  background: #007a5e;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  z-index: 2;
}

/* Texture grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  z-index: 3;
}

/* Logo area */
.hero-top {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-logo-img {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hero-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* Hero body */
.hero-body {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0;
}

.hero-overline {
  display: block;
  margin-bottom: 24px;
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(149, 245, 210, 0.8);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-headline {
  margin: 0 0 32px;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(149, 245, 210, 0.7);
}

/* Stats bar */
.hero-stats {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-stack {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.avatar {
  width: 36px;
  height: 36px;
  margin-left: -10px;
  border: 2px solid #005f48;
  border-radius: 50%;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar-1 {
  background: linear-gradient(135deg, #79d8b7 0%, #005f48 100%);
}

.avatar-2 {
  background: linear-gradient(135deg, #ffd31a 0%, #715c00 100%);
}

.avatar-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #002117;
  background: #95f5d2;
}

.stats-text {
  font-size: 0.8125rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* ── Form Panel (right 42%) ─────────────────────────────────── */
.form-panel {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 100vh;
  overflow-y: auto;
  background-color: #f8faf9;
}

.form-scroll {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.form-inner {
  width: 100%;
  max-width: 520px;
}

/* ── Right panel heading ────────────────────────────────────── */
.form-title {
  margin: 0 0 8px;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1c1c;
  letter-spacing: -0.02em;
  text-align: center;
}

.form-subtitle {
  margin: 0 0 40px;
  font-size: 0.9375rem;
  color: #6b7280;
  text-align: center;
}

/* ── Product Grid ───────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.product-card:hover {
  border-color: #005f48;
  box-shadow: 0 4px 16px rgba(0, 95, 72, 0.08);
}

/* Product icon circle */
.product-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.product-icon--lingjiao {
  background-color: #e8f5f0;
}

.product-icon--yike {
  background-color: #e8f5f0;
}

.product-icon--zhihui {
  background-color: #e8f5f0;
}

.product-icon--yunshu {
  background-color: #eef1f6;
}

.product-name {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1c1c;
}

.product-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
  min-height: 2.4em;
}

/* Arrow button */
.product-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #005f48;
  color: #005f48;
  margin-top: auto;
  align-self: flex-end;
  transition: background-color 0.2s, color 0.2s;
}

.product-card:hover .product-arrow {
  background-color: #005f48;
  color: #ffffff;
}

/* ── Footer ─────────────────────────────────────────────────── */
.form-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 20px 32px;
  background-color: #ffffff;
  border-top: 1px solid #eeeeee;
}

.footer-links {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.75rem;
  color: #6b7280;
}

.footer-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #374151;
  text-decoration: underline;
}

.footer-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background-color: #bdc9c2;
  border-radius: 50%;
}

/* ── Language Switcher ──────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.875rem;
}

.lang-globe {
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  color: #6b7280;
  padding: 2px 4px;
  transition: color 0.2s;
}

.lang-btn:hover {
  color: #374151;
}

.lang-btn.active {
  color: #1a1c1c;
  font-weight: 500;
}

/* ── Responsive: collapse hero on small screens ─────────────── */
@media (max-width: 768px) {
  .hero-panel {
    display: none;
  }

  .layout {
    flex-direction: column;
  }

  .form-panel {
    min-height: 100vh;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .form-inner {
    max-width: 100%;
  }
}

/* ── Medium screens ─────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-panel {
    flex: 0 0 45%;
    padding: 32px 40px;
  }

  .hero-headline {
    font-size: 2.75rem;
  }

  .form-scroll {
    padding: 32px 24px;
  }
}
