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

body{
  font-family:'Poppins',sans-serif;
  background:#f4f7fb;
  display:flex;
  color:#222;
}

/* SIDEBAR */

.sidebar{
  width:250px;
  height:100vh;
  background:linear-gradient(to bottom,#006400,#00aa55);
  color:white;
  padding:20px;
  position:fixed;
  overflow-y:auto;
}

.logo{
  width:80px;
  margin-bottom:10px;
}

.logo-area{
  text-align:center;
  margin-bottom:40px;
}

.logo-area h2{
  font-size:24px;
}

.logo-area p{
  opacity:0.8;
  font-size:14px;
}

/* MENU */

.menu{
  list-style:none;
}

.menu li{
  padding:15px;
  border-radius:10px;
  margin-bottom:10px;
  cursor:pointer;
  transition:0.3s;
  font-weight:500;
}

.menu li:hover{
  background:rgba(255,255,255,0.2);
}

/* MAIN CONTENT */

.main-content{
  margin-left:250px;
  width:calc(100% - 250px);
  padding:20px;
}

/* TOPBAR */

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:30px;
  gap:20px;
}

.topbar h1{
  font-size:30px;
}

.top-btn{
  background:#006400;
  color:white;
}

/* SECTIONS */

.section{
  display:none;
}

.section.active{
  display:block;
}

/* HERO */

.hero{
  background:linear-gradient(135deg,#00aa55,#00cc88);
  border-radius:20px;
  color:white;
  padding:40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
}

.hero img{
  width:220px;
}

.hero-text{
  max-width:500px;
}

.hero-text h2{
  font-size:40px;
  margin-bottom:15px;
}

.hero-text p{
  line-height:1.7;
}

/* GRIDS */

.stats-grid,
.subject-grid,
.library-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin-top:30px;
}

#missionsContainer{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:20px;
  margin-top:25px;
}

/* CARDS */

.card,
.subject-card,
.resource-card,
.quiz-box,
.profile-card,
.ai-box{
  background:white;
  border-radius:18px;
  padding:20px;
  box-shadow:0 4px 14px rgba(0,0,0,0.08);
}

.card,
.subject-card{
  transition:transform .3s ease, box-shadow .3s ease;
}

.card:hover,
.subject-card:hover{
  transform:translateY(-6px);
  box-shadow:0 15px 30px rgba(0,0,0,.18);
}

/* BUTTONS */

button{
  border:none;
  padding:12px 20px;
  border-radius:10px;
  background:#006400;
  color:white;
  cursor:pointer;
  transition:0.3s;
  margin-top:15px;
  font-size:15px;
  font-weight:600;
}

button:hover{
  background:#00aa55;
  transform:translateY(-2px);
}

/* QUIZ */

.quiz-box{
  max-width:700px;
}

.answer-btn{
  display:block;
  width:100%;
  margin:10px 0;
  background:#f1f1f1;
  color:black;
}

.answer-btn:hover{
  background:#ddd;
}

/* AI */

.ai-box{
  max-width:800px;
}

.ai-box select,
.ai-box textarea,
.quiz-box select{
  width:100%;
  padding:14px;
  margin:10px 0;
  border-radius:10px;
  border:1px solid #ccc;
  font-size:16px;
  outline:none;
}

.ai-box textarea{
  min-height:130px;
  resize:vertical;
}

.ai-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:12px 0;
}

.ai-actions button{
  margin-top:0;
  background:#0f766e;
}

.ai-actions button:hover{
  background:#14b8a6;
}

.ai-answer{
  margin-top:20px;
  background:#f8fafc;
  border-left:5px solid #006400;
  padding:18px;
  border-radius:12px;
  line-height:1.7;
  white-space:pre-wrap;
}

/* MISSIONS */

.mission-empty{
  text-align:center;
  padding:35px;
  background:linear-gradient(135deg,#eef6ff,#ffffff);
  border-radius:20px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.mission-progress{
  width:100%;
  background:#e5e7eb;
  border-radius:20px;
  overflow:hidden;
  margin-bottom:15px;
}

.mission-progress-bar{
  background:linear-gradient(90deg,#16a34a,#22c55e);
  color:white;
  font-weight:bold;
  text-align:center;
  padding:10px;
  transition:width 0.8s ease;
}

.mission-reward{
  background:#fff7d6;
  border-left:5px solid #f59e0b;
  padding:10px;
  margin-bottom:15px;
  border-radius:8px;
  font-weight:bold;
}

.mission-text{
  font-size:17px;
  line-height:1.8;
  animation:missionFade 0.5s ease;
}

@keyframes missionFade{
  from{
    opacity:0;
    transform:translateY(15px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* GEMSTONE SUBJECT THEMES */

.math-card{
  background:linear-gradient(135deg,#0f52ba,#7ec8ff);
  color:white;
}

.science-card{
  background:linear-gradient(135deg,#008c45,#7fffd4);
  color:white;
}

.english-card{
  background:linear-gradient(135deg,#9b111e,#ff8a8a);
  color:white;
}

.social-card{
  background:linear-gradient(135deg,#c17d11,#ffd966);
  color:white;
}

.rme-card{
  background:linear-gradient(135deg,#6a0dad,#d8b4fe);
  color:white;
}

.french-card{
  background:linear-gradient(135deg,#008b8b,#99ffff);
  color:white;
}

.computing-card{
  background:linear-gradient(135deg,#6b7280,#f3f4f6);
  color:#111827;
}

.creative-card{
  background:linear-gradient(135deg,#ff69b4,#ffd1dc);
  color:white;
}

.career-card{
  background:linear-gradient(135deg,#7f1d1d,#fca5a5);
  color:white;
}

.pe-card{
  background:linear-gradient(135deg,#ea580c,#fdba74);
  color:white;
}

.lit-card{
  background:linear-gradient(135deg,#581c87,#c084fc);
  color:white;
}

.subject-card h3,
.subject-card p{
  color:inherit;
}

.subject-card button{
  background:white;
  color:#111827;
}

.subject-card button:hover{
  background:#f3f4f6;
}

/* PROFILE */

.profile-card{
  max-width:400px;
  text-align:center;
}

.profile-img{
  width:120px;
  margin-bottom:15px;
}

.progress-bar{
  width:100%;
  height:20px;
  background:#ddd;
  border-radius:20px;
  overflow:hidden;
  margin:20px 0;
}

.progress{
  width:78%;
  height:100%;
  background:#00aa55;
}

/* AUTH SCREEN */

.auth-screen{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  background:linear-gradient(135deg,#006400,#00aa55);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
  padding:20px;
  overflow-y:auto;
}

.auth-box{
  background:white;
  padding:40px;
  border-radius:20px;
  width:100%;
  max-width:420px;
  text-align:center;
  color:#222;
  box-shadow:0 8px 30px rgba(0,0,0,0.2);
}

.auth-logo{
  width:90px;
  margin-bottom:20px;
}

.auth-box h1{
  margin-bottom:10px;
  font-size:28px;
  color:#006400;
}

.auth-box p{
  margin-bottom:15px;
  color:#555;
  line-height:1.5;
}

/* INPUTS */

.auth-box input,
.auth-box select{
  width:100%;
  padding:14px;
  margin:10px 0;
  border-radius:10px;
  border:1px solid #ccc;
  font-size:16px;
  outline:none;
  background:white;
  color:#222;
}

.auth-box input:focus,
.auth-box select:focus,
.ai-box select:focus,
.ai-box textarea:focus,
.quiz-box select:focus{
  border:1px solid #00aa55;
  box-shadow:0 0 5px rgba(0,170,85,0.3);
}

select{
  appearance:auto;
  background:white;
  color:black;
}

/* LOGIN BUTTON */

.auth-box button{
  width:100%;
  padding:15px;
  margin-top:20px;
  font-size:16px;
  font-weight:bold;
  background:#006400;
}

.auth-box button:hover{
  background:#00aa55;
}

/* PREMIUM BOX */

.premium-info{
  background:#f4f7fb;
  border:1px solid #ddd;
  padding:15px;
  border-radius:10px;
  margin-top:15px;
  margin-bottom:15px;
  text-align:left;
}

.premium-info h3{
  margin-bottom:10px;
  color:#006400;
  font-size:18px;
}

.premium-info p{
  margin-bottom:8px;
  font-size:14px;
}

/* RESPONSIVE */

@media(max-width:900px){

  body{
    flex-direction:column;
  }

  .sidebar{
    width:100%;
    height:auto;
    position:relative;
  }

  .main-content{
    margin-left:0;
    width:100%;
  }

  .hero{
    flex-direction:column;
    text-align:center;
  }

  .hero img{
    margin-top:20px;
    width:180px;
  }

  .topbar{
    flex-direction:column;
    align-items:flex-start;
  }

}

@media(max-width:500px){

  .auth-box{
    padding:25px;
  }

  .hero-text h2{
    font-size:30px;
  }

  .topbar h1{
    font-size:22px;
  }

}

#exerciseResponse{

  margin-top:20px;

  background:#f8fafc;

  padding:15px;

  border-radius:12px;

  border-left:5px solid #2563eb;

}

/* LESSON / LESSON_V2 IMAGE SUPPORT */

.lesson-view{
  line-height:1.8;
}

.lesson-view h2{
  margin-bottom:15px;
  color:#006400;
}

.lesson-view h3{
  margin-top:20px;
  margin-bottom:8px;
  color:#064e3b;
}

.lesson-meta{
  background:#f8fafc;
  border-left:5px solid #00aa55;
  padding:15px;
  border-radius:12px;
  margin:15px 0;
}

.lesson-meta p{
  margin-bottom:6px;
}

.lesson-image-block{
  margin:18px 0;
  background:#f8fafc;
  padding:12px;
  border-radius:14px;
  border:1px solid #e5e7eb;
}

.lesson-img{
  display:block;
  max-width:100%;
  max-height:420px;
  object-fit:contain;
  border-radius:12px;
  margin-top:10px;
  box-shadow:0 5px 18px rgba(0,0,0,0.12);
}

.image-error{
  color:#b91c1c;
  background:#fee2e2;
  padding:10px;
  border-radius:10px;
  margin-top:10px;
}

.lesson-mini-images{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin-top:12px;
}

.lesson-mini-images .lesson-img{
  max-height:180px;
}

.lesson-nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:25px;
  padding-top:15px;
  border-top:1px solid #e5e7eb;
}

.lesson-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}

.lesson-test-panel{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-top:15px;
}

.lesson-list-card h3{
  color:#006400;
}

@media(max-width:600px){

  .lesson-nav{
    flex-direction:column;
  }

  .lesson-actions{
    flex-direction:column;
  }

  .lesson-actions button{
    width:100%;
  }

}


/* PARENT LOGIN MODAL */

.parent-auth-screen{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  background:rgba(0,0,0,0.65);
  z-index:10000;
  justify-content:center;
  align-items:center;
  padding:20px;
}

.parent-auth-screen.active{
  display:flex;
}

.parent-auth-screen .auth-box{
  max-width:420px;
  background:#ffffff;
  padding:35px;
  border-radius:20px;
  text-align:center;
}

.parent-auth-screen input{
  width:100%;
  padding:14px;
  margin:10px 0;
  border-radius:10px;
  border:1px solid #ccc;
}

.parent-auth-screen button{
  width:100%;
  margin-top:12px;
}

.parent-portal-btn{
  background:#1976d2 !important;
}

.parent-portal-btn:hover{
  background:#0d47a1 !important;
}

.parent-hero-card{
  background:linear-gradient(135deg,#e8f5e9,#ffffff);
  border-left:6px solid #006400;
}

.parent-metric-card{
  text-align:center;
}

.parent-big-number{
  font-size:34px;
  font-weight:800;
  color:#006400;
  margin:10px 0;
}

.risk-high{
  border-left:6px solid #dc2626;
  background:#fff1f2;
}

.risk-medium{
  border-left:6px solid #f59e0b;
  background:#fffbeb;
}

.risk-low{
  border-left:6px solid #16a34a;
  background:#f0fdf4;
}

.parent-graph-box{
  margin-top:20px;
}

.parent-bar-row{
  margin:14px 0;
}

.parent-bar-label{
  font-weight:700;
  margin-bottom:6px;
}

.parent-bar-track{
  width:100%;
  height:22px;
  background:#e5e7eb;
  border-radius:20px;
  overflow:hidden;
}

.parent-bar-fill{
  height:100%;
  background:#006400;
  color:white;
  text-align:right;
  padding-right:10px;
  font-size:13px;
  line-height:22px;
  font-weight:bold;
}

.parent-logout-btn{
  background:#dc3545;
  color:white;
  border:none;
  padding:10px 18px;
  border-radius:8px;
  cursor:pointer;
  font-weight:bold;
}

.admin-portal-btn{
  background:#111827 !important;
  color:white !important;
}

.teacher-panel{
  background:#f4f8ff;
  border:1px solid #d9e6ff;
  border-radius:12px;
  padding:15px;
  margin:15px 0;
}

.teacher-panel h3{
  margin-bottom:10px;
}

.teacher-panel select{
  padding:10px;
  margin-right:10px;
  border-radius:8px;
}

.teacher-panel button{
  margin:5px;
}

.teacher-panel{
  background:#f4f8ff;
  border:1px solid #d9e6ff;
  border-radius:14px;
  padding:15px;
  margin:15px 0;
}

.teacher-panel h3{
  margin-bottom:10px;
}

.teacher-panel select{
  padding:10px;
  border-radius:10px;
  margin:5px;
}

.teacher-panel button{
  padding:10px 14px;
  border:none;
  border-radius:10px;
  margin:5px;
  background:#2563eb;
  color:white;
  cursor:pointer;
  font-weight:bold;
}

/* ================================
   GJS NEW LOGIN PAGE DESIGN
================================ */

.auth-screen{
  position:fixed;
  inset:0;
  width:100%;
  min-height:100vh;
  background:linear-gradient(135deg,#064e3b,#16a34a);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
  padding:25px;
  overflow-y:auto;
}

.welcome-layout{
  width:100%;
  max-width:1400px;
  display:grid;
  grid-template-columns:1fr 420px 1fr;
  gap:25px;
  align-items:stretch;
}

.welcome-side{
  background:rgba(255,255,255,0.13);
  color:white;
  border-radius:28px;
  padding:28px;
  box-shadow:0 20px 50px rgba(0,0,0,0.25);
  backdrop-filter:blur(8px);
}

.welcome-side h2{
  font-size:30px;
  line-height:1.25;
  margin-bottom:18px;
  color:white;
}

.welcome-side p{
  color:#ecfdf5;
  line-height:1.6;
  margin-bottom:10px;
}

.mini-card{
  background:white;
  color:#064e3b;
  padding:18px;
  border-radius:18px;
  margin-top:18px;
  box-shadow:0 10px 25px rgba(0,0,0,0.18);
}

.mini-card h3{
  color:#006400;
  margin-bottom:10px;
}

.mini-card p{
  color:#222;
  margin-bottom:8px;
}

.main-login-box{
  max-width:420px;
  border-radius:30px;
  padding:35px;
  box-shadow:0 25px 60px rgba(0,0,0,0.35);
}

.main-login-box .auth-logo{
  width:105px;
}

.main-login-box h1{
  color:#006400;
  font-size:30px;
}

.parent-portal-btn{
  background:#1976d2 !important;
}

.whatsapp-btn{
  display:block;
  width:100%;
  text-align:center;
  background:#25D366;
  color:white;
  padding:14px;
  border-radius:10px;
  text-decoration:none;
  font-weight:bold;
  margin-top:12px;
}

.whatsapp-btn:hover{
  background:#128C7E;
}

@media(max-width:1100px){
  .welcome-layout{
    grid-template-columns:1fr;
  }

  .welcome-side,
  .main-login-box{
    max-width:520px;
    width:100%;
    margin:auto;
  }
}

/**************************************
 PREMIUM GJS LOGIN LANDING PAGE
**************************************/

.auth-screen{
  position:fixed;
  inset:0;
  width:100%;
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(255,215,0,.28), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0,170,85,.35), transparent 30%),
    linear-gradient(135deg,#061b49,#082b63,#006400);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
  padding:28px;
  overflow-y:auto;
}

.auth-screen::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:45px 45px;
  animation:gjsGridMove 18s linear infinite;
  opacity:.45;
}

@keyframes gjsGridMove{
  from{background-position:0 0;}
  to{background-position:90px 90px;}
}

.welcome-layout{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1280px;
  display:grid;
  grid-template-columns:1fr 430px 1fr;
  gap:26px;
  align-items:stretch;
}

.welcome-side,
.main-login-box{
  border-radius:30px;
  padding:32px;
  box-shadow:0 24px 60px rgba(0,0,0,.35);
}

.welcome-side{
  background:rgba(255,255,255,.13);
  color:white;
  border:1px solid rgba(255,255,255,.25);
  backdrop-filter:blur(16px);
}

.welcome-side h2{
  color:#ffd700;
  font-size:30px;
  line-height:1.25;
  margin-bottom:16px;
}

.welcome-side p{
  color:#f8fafc;
  line-height:1.7;
}

.main-login-box{
  background:rgba(255,255,255,.96);
  color:#061b49;
  text-align:center;
  border:1px solid rgba(255,215,0,.35);
  position:relative;
  overflow:hidden;
}

.main-login-box::before{
  content:"AI POWERED • PARENT ANALYTICS • GLOBAL LEARNING";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  background:#061b49;
  color:#ffd700;
  font-size:11px;
  letter-spacing:1.4px;
  padding:8px 0;
  font-weight:800;
}

.auth-logo{
  width:135px;
  margin:25px auto 14px auto;
  display:block;
  animation:gjsFloatLogo 3s ease-in-out infinite;
}

@keyframes gjsFloatLogo{
  0%,100%{transform:translateY(0) scale(1);}
  50%{transform:translateY(-10px) scale(1.03);}
}

.main-login-box h1{
  color:#061b49;
  font-size:31px;
  margin-bottom:6px;
}

.main-login-box p{
  color:#0b3d91;
  font-weight:600;
}

.auth-box input,
.auth-box select{
  border-radius:16px;
  border:1px solid #cbd5e1;
  padding:15px;
  font-size:16px;
  background:#f8fafc;
}

.auth-box input:focus,
.auth-box select:focus{
  border-color:#ffd700;
  box-shadow:0 0 0 4px rgba(255,215,0,.25);
}

.student-login-btn,
.voice-btn,
.parent-portal-btn,
.whatsapp-btn{
  width:100%;
  display:block;
  text-align:center;
  padding:15px;
  border-radius:16px;
  margin-top:13px;
  font-weight:900;
  text-decoration:none;
  border:none;
}

.student-login-btn{
  background:linear-gradient(135deg,#061b49,#0b3d91) !important;
  color:white !important;
  box-shadow:0 12px 25px rgba(6,27,73,.35);
}

.voice-btn{
  background:linear-gradient(135deg,#ffd700,#ffb703) !important;
  color:#061b49 !important;
}

.parent-portal-btn{
  background:linear-gradient(135deg,#0ea5e9,#1d4ed8) !important;
  color:white !important;
}

.whatsapp-btn{
  background:linear-gradient(135deg,#16a34a,#22c55e);
  color:white;
}

.student-login-btn:hover,
.voice-btn:hover,
.parent-portal-btn:hover,
.whatsapp-btn:hover{
  transform:translateY(-3px);
  filter:brightness(1.05);
}

.mini-card{
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.18);
  border-radius:20px;
  padding:18px;
  margin-top:18px;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}

.mini-card h3{
  color:#ffd700;
  margin-bottom:8px;
}

@media(max-width:1050px){
  .welcome-layout{
    grid-template-columns:1fr;
  }

  .welcome-side,
  .main-login-box{
    max-width:560px;
    margin:0 auto;
    width:100%;
  }
}

/**************************************
 GJS LOGIN PAGE 3.0
**************************************/

.auth-screen{
  position:fixed;
  inset:0;
  width:100%;
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(255,193,7,.32), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0,168,107,.38), transparent 30%),
    linear-gradient(135deg,#061b49,#082b63,#003b2f);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
  padding:28px;
  overflow-y:auto;
}

.gjs-live-bg{
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
}

.gjs-live-bg span{
  position:absolute;
  width:170px;
  height:170px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  animation:gjsFloatBubble 12s infinite ease-in-out;
}

.gjs-live-bg span:nth-child(1){top:8%; left:7%;}
.gjs-live-bg span:nth-child(2){top:15%; right:10%; animation-delay:2s;}
.gjs-live-bg span:nth-child(3){bottom:12%; left:18%; animation-delay:4s;}
.gjs-live-bg span:nth-child(4){bottom:8%; right:18%; animation-delay:6s;}

@keyframes gjsFloatBubble{
  0%,100%{transform:translateY(0) scale(1);}
  50%{transform:translateY(-35px) scale(1.12);}
}

.welcome-layout{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1380px;
  display:grid;
  grid-template-columns:1fr 430px 1fr;
  gap:25px;
  align-items:stretch;
}

.welcome-side,
.main-login-box{
  border-radius:30px;
  box-shadow:0 25px 65px rgba(0,0,0,.38);
}

.welcome-side{
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.22);
  color:white;
  padding:28px;
  backdrop-filter:blur(16px);
}

.login-slide-card{
  height:100%;
  min-height:480px;
  position:relative;
  border-radius:25px;
  overflow:hidden;
  background:linear-gradient(135deg,#061b49,#0b3d91);
}

.login-slide-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:.92;
}

.login-slide-overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:28px;
  background:linear-gradient(to top,rgba(6,27,73,.96),rgba(6,27,73,.25),transparent);
}

.login-badge{
  display:inline-block;
  background:#ffc107;
  color:#061b49;
  padding:7px 14px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  margin-bottom:12px;
}

.login-slide-overlay h2{
  color:white;
  font-size:30px;
  line-height:1.2;
  margin-bottom:8px;
}

.login-slide-overlay p{
  color:#eaf2ff;
  line-height:1.6;
}

.login-mini-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:15px;
}

.login-mini-stats div{
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  padding:14px;
  text-align:center;
}

.login-mini-stats strong{
  display:block;
  color:#ffc107;
  font-size:16px;
}

.login-mini-stats span{
  font-size:12px;
  color:#f8fafc;
}

.main-login-box{
  position:relative;
  overflow:hidden;
  background:rgba(255,255,255,.97);
  border:1px solid rgba(255,193,7,.45);
  color:#061b49;
  padding:42px 34px 28px;
  text-align:center;
}

.login-top-strip{
  position:absolute;
  top:0;
  left:0;
  right:0;
  background:#061b49;
  color:#ffc107;
  padding:9px 5px;
  font-size:11px;
  font-weight:900;
  letter-spacing:1px;
}

.auth-logo{
  width:135px;
  margin:18px auto 12px;
  display:block;
  animation:gjsLogoFloat 3s infinite ease-in-out;
}

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

.main-login-box h1{
  color:#061b49;
  font-size:31px;
  margin-bottom:5px;
}

.login-subtitle{
  color:#007a4d !important;
  font-weight:900;
  margin-bottom:8px !important;
}

.login-trust-line{
  background:#fff7d6;
  color:#061b49;
  border-radius:14px;
  padding:10px;
  font-size:13px;
  font-weight:800;
  margin:12px 0 16px;
}

.auth-box input,
.auth-box select{
  width:100%;
  padding:15px;
  margin:9px 0;
  border-radius:16px;
  border:1px solid #cbd5e1;
  background:#f8fafc;
  color:#061b49;
  font-size:16px;
  outline:none;
}

.auth-box input:focus,
.auth-box select:focus{
  border-color:#ffc107;
  box-shadow:0 0 0 4px rgba(255,193,7,.25);
}

.student-login-btn,
.voice-btn,
.parent-portal-btn,
.whatsapp-btn{
  width:100%;
  display:block;
  text-align:center;
  padding:15px;
  border-radius:16px;
  margin-top:12px;
  font-weight:900;
  text-decoration:none;
  border:none;
  transition:.3s ease;
}

.student-login-btn{
  background:linear-gradient(135deg,#061b49,#0b3d91) !important;
  color:white !important;
  box-shadow:0 12px 25px rgba(6,27,73,.35);
}

.voice-btn{
  background:linear-gradient(135deg,#ffc107,#ffb000) !important;
  color:#061b49 !important;
}

.parent-portal-btn{
  background:linear-gradient(135deg,#0ea5e9,#1d4ed8) !important;
  color:white !important;
}

.whatsapp-btn{
  background:linear-gradient(135deg,#16a34a,#22c55e);
  color:white;
}

.student-login-btn:hover,
.voice-btn:hover,
.parent-portal-btn:hover,
.whatsapp-btn:hover{
  transform:translateY(-3px);
  filter:brightness(1.06);
}

.login-feature-marquee{
  margin-top:17px;
  overflow:hidden;
  background:#f1f5f9;
  border-radius:999px;
  padding:9px;
  color:#061b49;
  font-size:12px;
  font-weight:800;
}

.login-feature-marquee span{
  display:inline-block;
  white-space:nowrap;
  animation:gjsMarquee 18s linear infinite;
}

@keyframes gjsMarquee{
  from{transform:translateX(100%);}
  to{transform:translateX(-100%);}
}

.login-insight-panel h2{
  color:#ffc107;
  margin-bottom:16px;
  font-size:25px;
}

.insight-card{
  background:rgba(255,255,255,.95);
  color:#061b49;
  border-radius:22px;
  padding:22px;
  margin-bottom:18px;
}

.insight-card h3{
  color:#061b49;
  margin-bottom:8px;
}

.insight-big{
  font-size:42px;
  font-weight:900;
  color:#007a4d !important;
  margin:8px 0 !important;
}

.mini-card{
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  padding:18px;
  margin-top:15px;
}

.mini-card h3{
  color:#ffc107;
  margin-bottom:8px;
}

.mini-card p{
  color:#f8fafc;
  line-height:1.55;
}

.secure-note{
  margin-top:15px;
  background:#ffc107;
  color:#061b49;
  padding:16px;
  border-radius:18px;
  font-weight:900;
  line-height:1.5;
}

@media(max-width:1100px){
  .welcome-layout{
    grid-template-columns:1fr;
    max-width:620px;
  }

  .login-slide-card{
    min-height:330px;
  }
}

@media(max-width:520px){
  .auth-screen{
    padding:15px;
  }

  .main-login-box,
  .welcome-side{
    padding:22px;
    border-radius:22px;
  }

  .auth-logo{
    width:105px;
  }

  .main-login-box h1{
    font-size:25px;
  }

  .login-mini-stats{
    grid-template-columns:1fr;
  }
}
.payment-backup-card,
.package-fallback-box{
  border:2px solid #ffc107;
  background:linear-gradient(135deg,#fff7d6,#ffffff);
  color:#061b49;
}

.payment-backup-card h3,
.package-fallback-box h3{
  color:#061b49;
}

.payment-backup-card p,
.package-fallback-box p{
  color:#061b49;
  line-height:1.6;
}

.package-fallback-box{
  margin-top:25px;
  padding:22px;
  border-radius:18px;
}

/* =====================================================
   GJS LOGIN PAGE - FINAL RESPONSIVE FIX
   Desktop + Tablet + Mobile
===================================================== */

/* Entire login page */
.auth-screen{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:70px 25px 40px;
    overflow-y:auto;
    overflow-x:hidden;
    box-sizing:border-box;
}

/* Three-column layout */
.welcome-layout{
    width:100%;
    max-width:1650px;
    display:grid;
    grid-template-columns:1fr 520px 1fr;
    gap:30px;
    align-items:start;
}

/* All panels */
.left-panel,
.right-panel,
.main-login-box,
.auth-box{
    align-self:start;
}

/* Login card */
.main-login-box,
.auth-box{
    margin-top:20px;
    background:#ffffff;
    border-radius:24px;
    padding:35px;
    box-shadow:0 20px 60px rgba(0,0,0,.15);
}

/* Logo */
.auth-logo{
    display:block;
    width:110px;
    margin:0 auto 18px;
}

/* Title */
.main-login-box h1,
.auth-box h1{
    margin-top:0;
    margin-bottom:10px;
    text-align:center;
}

/* Inputs */
.auth-box input,
.auth-box select{
    width:100%;
    margin:10px 0;
    padding:15px;
    border-radius:14px;
    font-size:16px;
}

/* Buttons */
.auth-box button{
    width:100%;
    margin-top:12px;
    border-radius:16px;
}

/* Slideshow */
.login-slide-card{
    width:100%;
    height:340px;
    overflow:hidden;
    border-radius:20px;
}

.login-slide-card img,
.login-slide-image{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

/* Parent preview */
.login-insight-panel{
    margin-top:25px;
}

/* ===========================
   TABLET
=========================== */

@media (max-width:1200px){

    .welcome-layout{
        grid-template-columns:1fr;
        max-width:720px;
    }

    .left-panel{
        order:2;
    }

    .main-login-box,
    .auth-box{
        order:1;
    }

    .right-panel{
        order:3;
    }
}

/* ===========================
   MOBILE
=========================== */

@media (max-width:768px){

    .auth-screen{
        padding:25px 12px 25px;
    }

    .welcome-layout{
        display:flex;
        flex-direction:column;
        gap:18px;
    }

    .main-login-box,
    .auth-box{
        width:100%;
        margin-top:0;
        padding:24px 18px;
        border-radius:22px;
    }

    .auth-logo{
        width:85px;
        margin-bottom:15px;
    }

    .auth-box h1{
        font-size:24px;
    }

    .login-slide-card{
        height:230px;
    }

    .login-insight-panel{
        margin-top:0;
    }

    .auth-box input,
    .auth-box select{
        padding:14px;
        font-size:16px;
    }

    .auth-box button{
        padding:14px;
        font-size:16px;
    }
}
