*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-grad: linear-gradient(135deg, #CDE8FF 0%, #96CAF9 100%);
  --blue-grad-deep: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
  --bg: #FFFFFF;
  --text: #232323;
  --text-secondary: #6B7280;
  --card-bg: #FFFFFF;
  --card-shadow: 0 2px 16px rgba(37, 99, 235, 0.08);
  --border: #EEF2FF;
  --radius: 20px;
  --radius-sm: 12px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ---- LOGIN ---- */
.login-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(ellipse 60% 50% at 50% 0%, #CDE8FF55 0%, transparent 70%);
}

.login-box {
  background: var(--white);
  border-radius: 28px;
  padding: 52px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 48px rgba(37, 99, 235, 0.10);
  border: 1px solid #EEF2FF;
}

.login-logo {
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin-bottom: 36px;
  justify-content: center;
}

.logo-dsgn {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -1px;
}

.logo-academy {
  font-size: 26px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -1px;
}

.login-box h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
  letter-spacing: -0.5px;
  color: var(--text);
}

.login-sub {
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
  margin-bottom: 32px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #F9FAFB;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus {
  border-color: var(--blue);
  background: #fff;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.1s;
}

.btn-login:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }

.login-error {
  color: #EF4444;
  font-size: 13px;
  margin-bottom: 10px;
  text-align: center;
  background: #FEF2F2;
  padding: 8px 12px;
  border-radius: 8px;
}

/* ---- HEADER ---- */
.header-banner {
  background: var(--bg);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #F3F4F6;
}

.header-logo {
  display: flex;
  gap: 6px;
  align-items: baseline;
  text-decoration: none;
}

.header-dsgn {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.header-academy {
  font-size: 20px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.welcome-text {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.btn-logout {
  background: #F3F4F6;
  color: var(--text);
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-logout:hover { background: #E5E7EB; }

/* ---- MAIN ---- */
.main-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 32px 64px;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-grad);
  border-radius: 100px;
  padding: 7px 18px 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1D4ED8;
  margin-bottom: 28px;
}

.hero-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text);
}

.hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 400;
}

/* Gradient divider */
.hero-visual {
  margin: 48px auto 0;
  max-width: 700px;
  height: 6px;
  background: var(--blue-grad);
  border-radius: 100px;
  opacity: 0.6;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
}

/* ---- SECTIONS GRID ---- */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.section-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 30px;
  cursor: pointer;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid #EEF2FF;
}

.section-card:hover {
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.14);
  transform: translateY(-3px);
  border-color: #BFDBFE;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon svg {
  width: 22px;
  height: 22px;
  stroke: #1D4ED8;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.2px;
  color: var(--text);
}

.section-count {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.section-arrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- SECTION PAGE ---- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  margin-bottom: 32px;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.back-btn:hover { opacity: 0.7; }

.section-hero {
  background: var(--blue-grad);
  border-radius: var(--radius);
  padding: 40px 44px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.section-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
}

.section-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.section-hero-icon svg {
  width: 26px;
  height: 26px;
  stroke: #1D4ED8;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-hero h1 {
  font-size: 30px;
  font-weight: 800;
  color: #1a3a6e;
  letter-spacing: -0.8px;
  margin-bottom: 6px;
}

.section-hero p {
  font-size: 14px;
  color: #2d5a9e;
  font-weight: 500;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.material-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1.5px solid #EEF2FF;
}

.material-card:hover {
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
  border-color: #BFDBFE;
}

.material-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.35;
  letter-spacing: -0.1px;
  color: var(--text);
}

.material-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}

.material-link:hover { gap: 9px; }

/* ---- UTIL ---- */
.hidden { display: none !important; }

@media (max-width: 640px) {
  .sections-grid, .materials-grid { grid-template-columns: 1fr; }
  .header-banner { padding: 0 20px; }
  .main-container { padding: 32px 16px 48px; }
  .hero h1 { font-size: 36px; letter-spacing: -1.5px; }
  .section-hero { padding: 28px 24px; }
}
