﻿*{box-sizing:border-box}
:root{--green:#39b54a;--dark:#003b19;--ink:#17231c;--line:#e4e7e5}
html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;color:var(--ink)}
a{text-decoration:none;color:inherit}
.welcome-body,.login-body{min-height:100vh;background:#f9faf9}
.welcome-page{min-height:100vh;max-width:480px;margin:auto;position:relative;overflow:hidden;
background:linear-gradient(180deg,#fff 0%,#f5fbf5 20%,#48bd59 53%,#003a19 100%);
display:flex;align-items:center;flex-direction:column;padding:55px 20px 22px}
.brand-logo{text-align:center;display:flex;align-items:center;gap:5px;justify-content:center}
.brand-symbol{font-size:64px;line-height:1;filter:saturate(.85)}
.brand-name{font-family:Georgia,serif;font-size:30px;font-weight:bold;color:#36a94d}
.welcome-title{font-size:22px;text-align:center;line-height:1.25;margin-top:20px;max-width:360px}
.welcome-subtitle{font-size:12px;text-align:center;max-width:290px;line-height:1.5;margin:8px 0 0}
.orbit-area{position:relative;width:min(100%,390px);height:340px;margin-top:20px}
.orbit{position:absolute;border:1px solid rgba(255,255,255,.65);border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%)}
.orbit-one{width:120px;height:120px}.orbit-two{width:205px;height:205px}.orbit-three{width:300px;height:300px}
.school-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:65px;height:65px;
border-radius:50%;background:#173b2b;color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid #fff}
.school-center span{font-size:27px}.school-center small{font-size:10px}
.person{position:absolute;display:flex;flex-direction:column;align-items:center;font-size:31px}
.person small{font-size:10px;color:#fff;background:#111;padding:3px 12px;border-radius:15px;border:1px solid white}
.person-teacher{left:3%;top:27%}.person-admin{right:8%;top:12%}.person-parent{left:4%;bottom:8%}.person-student{right:2%;bottom:17%}
.primary-button{background:#39b54a;color:#fff;border:0;border-radius:8px;min-height:46px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:bold;cursor:pointer}
.welcome-button{width:100%;max-width:360px;margin-top:auto}
.powered{color:#dce9df;font-size:11px;margin-top:12px}
.login-body{background:linear-gradient(180deg,#f9fbf9 0%,#f1faf2 22%,#45b957 52%,#002b13 100%)}
.login-page{min-height:100vh;max-width:480px;margin:auto;padding:90px 20px 50px}
.login-logo{text-align:center}.login-logo .brand-symbol{font-size:78px}
.login-page h1{text-align:center;font-size:22px;font-weight:400;margin:14px 0 2px}
.login-subtitle{text-align:center;font-size:12px;margin:0 0 28px}
.login-form{display:flex;flex-direction:column;gap:8px}
.login-form label{font-size:12px;margin-top:5px}
.input-wrap{height:46px;border-radius:9px;background:#fff;display:flex;align-items:center;padding:0 12px;gap:10px;border:1px solid #dce4dd}
.input-wrap input{border:0;outline:0;flex:1;min-width:0;font-size:13px;background:transparent}
.show-password{border:0;background:transparent;font-size:16px;cursor:pointer}
.forgot-row{text-align:right;font-size:11px;color:#fff;margin:0 0 4px}
.login-submit{width:100%;margin-top:3px}
.login-footer{text-align:center;color:white;font-size:11px;margin-top:15px}
.login-footer span{text-decoration:underline}
.error-message{background:#fff0f0;color:#a60000;padding:10px;border-radius:7px;margin-bottom:12px;font-size:13px}
.portal-body{background:#f8f9f8;min-height:100vh;padding-bottom:78px}
.topbar{height:54px;background:#39b54a;color:white;display:flex;align-items:center;padding:0 12px;gap:11px;box-shadow:0 1px 4px #0001}
.avatar{width:34px;height:34px;border-radius:50%;background:#d9eadc;display:grid;place-items:center;font-size:23px}
.student-details{display:flex;flex-direction:column;gap:3px;flex:1}
.student-details strong{font-size:13px;font-weight:500}.student-details small{font-size:10px}
.notification{font-size:22px;position:relative}.notification sup{font-size:9px;background:white;color:#39b54a;border-radius:50%;padding:2px 4px}
.portal-main{padding:10px 9px 20px;max-width:680px;margin:auto}
.menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.menu-card{height:65px;border:1px solid #e1e4e2;border-radius:7px;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:0;width:100%;cursor:pointer}
.menu-icon{font-size:23px;line-height:1.2}
.menu-title{font-size:9px;color:#606660;text-align:center;line-height:1.15}
.logout-card{margin:0;padding:0}
.logout-button{font-family:inherit}
.bottom-nav{height:62px;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e1e4e2;display:flex;justify-content:space-around;align-items:center;z-index:5}
.nav-item{height:100%;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;color:#777}
.nav-item span{font-size:19px}.nav-item small{font-size:9px}
.nav-item.active{color:#27a943;border-top:2px solid #27b247}
.back-button{font-size:30px;color:white;line-height:1}
.section-main{max-width:600px;margin:auto;padding:45px 20px;text-align:center}
.section-icon{font-size:48px}
.section-main h1{font-size:22px}
.section-main p{font-size:13px;color:#68736b}
.empty-state{margin:35px auto 22px;padding:30px 18px;background:white;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:10px}
.empty-state span{font-size:35px}.empty-state strong{font-size:14px}.empty-state small{font-size:12px;color:#7b847d}
.back-home{max-width:260px;margin:20px auto}
@media(min-width:600px){
 .portal-main{padding:20px}.menu-grid{gap:10px}.menu-card{height:105px}.menu-icon{font-size:32px}.menu-title{font-size:12px}
 .topbar{height:62px;padding:0 22px}
}
@media(max-height:720px){
 .welcome-page{padding-top:25px}.orbit-area{height:290px;margin-top:10px}
 .login-page{padding-top:45px}
}

/* ORIGINAL BRAINSTAKE LOGO */
.brainstake-logo {
    display: block;
    width: 112px;
    height: 112px;
    object-fit: contain;
    margin: 0 auto;
    background: transparent;
}

.brand-logo .brainstake-logo {
    width: 75px;
    height: 75px;
}

.login-logo .brainstake-logo {
    width: 112px;
    height: 112px;
}


/* ==========================================
   BRAINSTAKE - ORIGINAL LOGIN DESIGN
   ========================================== */

html, body {
    margin: 0;
    min-height: 100%;
}

body.exact-login {
    min-height: 100vh;
    min-height: 100svh;
    background:
      linear-gradient(
        to bottom,
        #fafafa 0%,
        #fafafa 19%,
        #edf7ef 22%,
        #a4d8ac 31%,
        #39b54a 48%,
        #21843b 60%,
        #06451f 76%,
        #001308 100%
      );
    color: #080808;
    font-family: Arial, Helvetica, sans-serif;
}

.exact-login-page {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    min-height: 100svh;
    margin: auto;
    padding: 19.5vh 28px 65px;
    box-sizing: border-box;
}

.exact-logo-area {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.exact-brainstake-logo {
    display: block;
    width: 116px;
    height: 116px;
    object-fit: contain;
}

.exact-heading {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 38px;
}

.exact-heading h1 {
    font-size: 29px;
    font-weight: 400;
    margin: 0 0 7px;
    color: #050505;
}

.exact-heading p {
    font-size: 14px;
    margin: 0;
    letter-spacing: .2px;
    color: #111;
}

.exact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exact-form label {
    font-size: 15px;
    margin: 0 0 9px;
    color: #101010;
}

.exact-input {
    width: 100%;
    height: 42px;
    border: 1px solid #cbd2ce;
    border-radius: 11px;
    background: #fafafa;
    display: flex;
    align-items: center;
    padding: 0 13px;
    box-sizing: border-box;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px #00000012;
}

.exact-input:focus-within {
    border-color: #39b54a;
    box-shadow: 0 0 0 2px #39b54a35;
}

.exact-input input {
    flex: 1;
    width: 0;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #222;
    font-size: 14px;
    padding: 0 9px;
    font-family: inherit;
}

.exact-input input::placeholder {
    color: #777;
    opacity: 1;
}

.field-icon {
    color: #888;
    font-size: 20px;
    width: 22px;
    text-align: center;
}

.lock-icon {
    font-size: 19px;
}

.password-toggle {
    border: 0;
    background: transparent;
    color: #777;
    padding: 3px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.exact-forgot {
    display: flex;
    justify-content: flex-end;
    margin-top: -3px;
    margin-bottom: 27px;
}

.exact-forgot a {
    color: #f5fff5;
    text-decoration: none;
    font-size: 13px;
}

.exact-login-button {
    height: 42px;
    width: 100%;
    background: #39b54a;
    color: white;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px #00000018;
}

.exact-login-button:hover {
    background: #31a944;
}

.exact-register {
    color: #f4fff5;
    font-size: 13px;
    text-align: center;
    margin-top: 27px;
    white-space: nowrap;
}

.exact-register a {
    color: #f4fff5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.exact-error {
    color: #a00000;
    background: #fff;
    border-radius: 7px;
    padding: 9px;
    margin-bottom: 15px;
    font-size: 13px;
}

@media(max-width: 380px) {
    .exact-login-page {
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media(max-height: 700px) {
    .exact-login-page {
        padding-top: 12vh;
        padding-bottom: 35px;
    }

    .exact-heading {
        margin-bottom: 25px;
    }

    .exact-register {
        margin-top: 20px;
    }
}


/* ============================================================
   BRAINSTAKE COMPLETE RESPONSIVE DESIGN SYSTEM
   Full-screen desktop, tablet and mobile
   ============================================================ */

:root {
    --bs-green: #39b54a;
    --bs-green-dark: #075020;
    --bs-green-deep: #001408;
    --bs-white: #ffffff;
    --bs-text: #111711;
    --bs-muted: #777f78;
    --bs-border: #e2e7e3;
    --bs-surface: #fafbfa;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

button, input, select, textarea {
    font: inherit;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   1. WELCOME SCREEN
   ============================================================ */

body.welcome-body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: #f8faf8;
}

.welcome-page {
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding:
        clamp(35px, 9vh, 95px)
        clamp(20px, 5vw, 65px)
        max(24px, env(safe-area-inset-bottom)) !important;

    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;

    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f8fbf8 18%,
        #e3f3e5 25%,
        #8dd49a 39%,
        #39b54a 57%,
        #126b2d 76%,
        #001308 100%
    );
}

.brand-logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brand-name {
    color: #36aa4b;
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: clamp(25px, 4vw, 38px);
}

.brand-logo .brainstake-logo {
    width: clamp(65px, 9vw, 95px);
    height: clamp(65px, 9vw, 95px);
    object-fit: contain;
}

.welcome-title {
    max-width: 650px;
    width: 100%;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.3;
    text-align: center;
    margin-top: clamp(15px, 3vh, 30px);
}

.welcome-subtitle {
    max-width: 440px;
    font-size: clamp(12px, 1.5vw, 16px);
    line-height: 1.5;
    text-align: center;
}

.orbit-area {
    width: min(90vw, 490px);
    height: clamp(270px, 43vh, 440px);
    flex-shrink: 1;
    margin: clamp(10px, 3vh, 30px) auto;
}

.welcome-button {
    width: min(100%, 560px) !important;
    min-height: 46px;
    margin-top: auto;
    flex-shrink: 0;
}

.powered {
    margin-top: 13px;
    font-size: 12px;
    flex-shrink: 0;
}

/* ============================================================
   2. LOGIN SCREEN - MATCH ORIGINAL DESIGN
   ============================================================ */

body.login-body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: linear-gradient(
        to bottom,
        #fafafa 0%,
        #fafafa 18%,
        #f2f9f3 22%,
        #b1dfb7 31%,
        #65c875 42%,
        #39b54a 52%,
        #21843b 65%,
        #06451f 81%,
        #001308 100%
    );
}

.exact-login-page {
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 auto !important;

    padding:
        clamp(65px, 17.5vh, 190px)
        clamp(24px, 7.8vw, 100px)
        max(55px, env(safe-area-inset-bottom)) !important;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.exact-logo-area {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.exact-brainstake-logo {
    width: clamp(112px, 17vw, 150px) !important;
    height: clamp(112px, 17vw, 150px) !important;
    object-fit: contain;
}

.exact-heading {
    width: 100%;
    text-align: center;
    margin-top: clamp(12px, 2vh, 22px) !important;
    margin-bottom: clamp(40px, 8vh, 85px) !important;
}

.exact-heading h1 {
    font-size: clamp(29px, 4vw, 39px) !important;
    font-weight: 400 !important;
    line-height: 1.2;
    margin: 0 0 8px !important;
    color: #050505;
}

.exact-heading p {
    font-size: clamp(14px, 2vw, 18px) !important;
    margin: 0;
    color: #111;
}

.exact-form {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.exact-form label {
    display: block;
    font-size: clamp(15px, 2vw, 21px) !important;
    margin-bottom: 12px !important;
    color: #101010;
}

.exact-input {
    width: 100%;
    height: clamp(48px, 8vh, 82px) !important;
    border-radius: 12px !important;
    padding: 0 clamp(12px, 2vw, 22px) !important;
    margin-bottom: clamp(20px, 3vh, 27px) !important;
    background: #fafafa;
    border: 1px solid #d0d5d1;
}

.exact-input input {
    font-size: clamp(15px, 2.2vw, 24px) !important;
    padding: 0 12px !important;
}

.field-icon {
    font-size: clamp(18px, 2.5vw, 25px) !important;
}

.password-toggle svg {
    width: clamp(20px, 3vw, 27px);
    height: clamp(20px, 3vw, 27px);
}

.exact-forgot {
    margin-top: -3px !important;
    margin-bottom: clamp(25px, 4vh, 38px) !important;
}

.exact-forgot a {
    font-size: clamp(13px, 2vw, 19px) !important;
    color: #f5fff5 !important;
}

.exact-login-button {
    width: 100%;
    min-height: clamp(48px, 8vh, 70px) !important;
    border-radius: 12px !important;
    font-size: clamp(15px, 2vw, 21px) !important;
    background: #39b54a !important;
    color: white !important;
    transition: background .2s ease, transform .2s ease;
}

.exact-login-button:active {
    transform: scale(.99);
    background: #2d9f40 !important;
}

.exact-register {
    width: 100%;
    text-align: center;
    white-space: normal !important;
    font-size: clamp(12px, 1.8vw, 19px) !important;
    margin-top: clamp(25px, 3vh, 35px) !important;
    color: #f4fff5 !important;
}

.exact-register a {
    color: #f4fff5 !important;
}

/* ============================================================
   3. STUDENT PORTAL HEADER
   ============================================================ */

body.portal-body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 0 calc(75px + env(safe-area-inset-bottom)) !important;
    background: #f8f9f8;
    overflow-x: hidden;
}

.topbar {
    width: 100%;
    height: clamp(58px, 8vh, 76px) !important;
    padding: 0 clamp(12px, 2.5vw, 30px) !important;
    gap: 12px;
    background: #39b54a !important;
    color: #fff;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.avatar {
    width: clamp(36px, 4vw, 46px);
    height: clamp(36px, 4vw, 46px);
    flex-shrink: 0;
}

.student-details strong {
    font-size: clamp(13px, 1.4vw, 17px) !important;
}

.student-details small {
    font-size: clamp(10px, 1.1vw, 13px) !important;
}

.notification {
    margin-left: auto;
}

/* ============================================================
   4. STUDENT MENU - RESPONSIVE FULL WIDTH GRID
   ============================================================ */

.portal-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding:
        clamp(9px, 1.5vw, 20px)
        clamp(9px, 1.5vw, 24px)
        25px !important;
}

.menu-grid {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(5px, 1vw, 12px) !important;
}

.menu-card {
    width: 100%;
    min-width: 0;
    height: clamp(82px, 12vw, 130px) !important;
    border: 1px solid #e1e4e2;
    border-radius: 8px !important;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: clamp(5px, .8vw, 9px);
    transition: background .15s ease, border-color .15s ease;
}

.menu-card:active {
    background: #effaf0;
    border-color: #39b54a;
}

.menu-icon {
    font-size: clamp(25px, 3vw, 37px) !important;
    line-height: 1.2;
}

.menu-title {
    font-size: clamp(9px, 1.1vw, 13px) !important;
    line-height: 1.25;
    color: #626962;
    text-align: center;
    padding: 0 3px;
}

.logout-card {
    width: 100%;
    margin: 0;
}

.logout-button {
    font-family: inherit;
}

/* ============================================================
   5. BOTTOM NAVIGATION
   ============================================================ */

.bottom-nav {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: calc(65px + env(safe-area-inset-bottom)) !important;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid #e2e6e3;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.nav-item {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: #747b75;
}

.nav-item span {
    font-size: clamp(19px, 2.2vw, 25px) !important;
}

.nav-item small {
    font-size: clamp(9px, 1vw, 12px) !important;
}

.nav-item.active {
    color: #27a943;
    border-top: 2px solid #27b247;
}

/* ============================================================
   6. ALL SECTION PAGES
   ============================================================ */

.section-main {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 135px);
    min-height: calc(100dvh - 135px);
    margin: 0 !important;
    padding:
        clamp(35px, 7vh, 80px)
        clamp(18px, 5vw, 70px) !important;
    text-align: center;
}

.section-main h1 {
    font-size: clamp(22px, 3vw, 34px);
}

.section-main p {
    font-size: clamp(13px, 1.5vw, 17px);
}

.section-icon {
    font-size: clamp(42px, 6vw, 65px);
}

.empty-state {
    width: 100%;
    max-width: 900px;
    min-height: 180px;
    margin: 35px auto;
    padding: clamp(25px, 5vw, 55px);
    border-radius: 12px;
}

.back-home {
    width: 100%;
    max-width: 400px !important;
    min-height: 48px;
}

/* ============================================================
   7. DESKTOP LAYOUT
   ============================================================ */

@media (min-width: 900px) {

    .menu-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .menu-card {
        height: clamp(120px, 17vh, 175px) !important;
    }

    .portal-main {
        padding: 22px 28px !important;
    }

    .exact-login-page {
        padding-top: clamp(65px, 12vh, 140px) !important;
        padding-bottom: 60px !important;
    }

    .exact-logo-area {
        margin-top: 0;
    }

    .exact-brainstake-logo {
        width: 135px !important;
        height: 135px !important;
    }

    .exact-heading {
        margin-bottom: 55px !important;
    }

    .welcome-page {
        justify-content: flex-start;
    }

    .orbit-area {
        height: min(42vh, 440px);
    }
}

/* ============================================================
   8. LARGE DESKTOP
   ============================================================ */

@media (min-width: 1400px) {

    .menu-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    .menu-card {
        height: 155px !important;
    }

    .portal-main {
        padding: 30px 36px !important;
    }

    .exact-login-page {
        padding-top: 100px !important;
    }

    .exact-form {
        max-width: 760px;
    }
}

/* ============================================================
   9. MOBILE - ORIGINAL THREE-COLUMN DESIGN
   ============================================================ */

@media (max-width: 600px) {

    .menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    .menu-card {
        height: 65px !important;
    }

    .menu-icon {
        font-size: 23px !important;
    }

    .menu-title {
        font-size: 9px !important;
    }

    .portal-main {
        padding: 9px !important;
    }

    .topbar {
        height: 54px !important;
    }

    .bottom-nav {
        height: calc(62px + env(safe-area-inset-bottom)) !important;
    }

    .exact-login-page {
        padding:
            19.5vh
            28px
            max(55px, env(safe-area-inset-bottom)) !important;
    }

    .exact-brainstake-logo {
        width: 116px !important;
        height: 116px !important;
    }

    .exact-heading {
        margin-top: 12px !important;
        margin-bottom: 38px !important;
    }

    .exact-heading h1 {
        font-size: 29px !important;
    }

    .exact-heading p {
        font-size: 14px !important;
    }

    .exact-form label {
        font-size: 15px !important;
    }

    .exact-input {
        height: 48px !important;
        margin-bottom: 20px !important;
    }

    .exact-input input {
        font-size: 15px !important;
    }

    .exact-login-button {
        min-height: 48px !important;
        font-size: 15px !important;
    }

    .exact-register {
        font-size: 13px !important;
    }
}

/* ============================================================
   10. SHORT PHONE SCREENS
   ============================================================ */

@media (max-height: 720px) and (max-width: 600px) {

    .exact-login-page {
        padding-top: 9vh !important;
    }

    .exact-heading {
        margin-bottom: 24px !important;
    }

    .exact-input {
        margin-bottom: 14px !important;
    }

    .exact-forgot {
        margin-bottom: 18px !important;
    }

    .exact-register {
        margin-top: 19px !important;
    }

    .welcome-page {
        padding-top: 25px !important;
    }

    .orbit-area {
        height: 270px;
    }
}

/* ============================================================
   11. TABLET
   ============================================================ */

@media (min-width: 601px) and (max-width: 899px) {

    .menu-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .menu-card {
        height: 105px !important;
    }

    .exact-login-page {
        padding-left: 8vw !important;
        padding-right: 8vw !important;
    }
}

/* ============================================================
   12. ACCESSIBILITY AND OVERFLOW PROTECTION
   ============================================================ */

img {
    max-width: 100%;
}

input, button {
    max-width: 100%;
}

.portal-body,
.login-body,
.welcome-body {
    overflow-x: hidden;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #167b31;
    outline-offset: 3px;
}



/* =====================================================
   BRAINSTAKE ADVANCED LUCIDE ICON SYSTEM
   ===================================================== */

.menu-icon {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: #36ae4b;
}

.menu-icon svg {
    width: clamp(25px, 3vw, 35px);
    height: clamp(25px, 3vw, 35px);
    stroke-width: 1.7;
    stroke: currentColor;
    transition: transform .2s ease, color .2s ease;
}

.menu-card:hover .menu-icon svg {
    transform: translateY(-3px);
    color: #168532;
}

.menu-card:active .menu-icon svg {
    transform: scale(.93);
}

.avatar {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.2) !important;
    color: white;
    border: 1px solid rgba(255,255,255,.4);
}

.avatar svg {
    width: 25px;
    height: 25px;
    stroke-width: 1.8;
}

.notification {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.notification svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.8;
}

.back-button svg {
    width: 25px;
    height: 25px;
}

.section-icon {
    color: #36ae4b;
}

.section-icon svg {
    width: 54px;
    height: 54px;
    stroke-width: 1.5;
}

.logout-button .menu-icon {
    color: #399bdb;
}

.menu-card {
    box-shadow: 0 1px 2px rgba(20,40,25,.025);
}

.menu-card:hover {
    border-color: #b6dfbe;
    box-shadow: 0 4px 14px rgba(35,150,65,.09);
}

@media(max-width:600px) {
    .menu-icon svg {
        width: 24px;
        height: 24px;
    }
}
/* =========================================================
   BRAINSTAKE STUDENT HOME - MENU CARDS USING THE USER'S
   ORIGINAL EXTRACTED SCREENSHOT ICONS
   Add this to the END of static/style.css
   ========================================================= */

.brainstake-student-home {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: #f8f9f8;
}

.brainstake-student-home .portal-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 9px;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.brainstake-student-home .menu-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    align-items: stretch;
}

.brainstake-student-home .menu-card {
    width: 100%;
    min-width: 0;
    min-height: 65px;
    padding: 7px 4px 6px;
    border: 1px solid #e1e4e2;
    border-radius: 7px;
    background: #fff;
    color: #626962;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    transition: border-color .16s ease, background .16s ease;
}

.brainstake-student-home .menu-card:hover {
    border-color: #b9dfc0;
    background: #fcfffc;
}

.brainstake-student-home .menu-card:active {
    background: #f0faf2;
}

.brainstake-student-home .menu-icon {
    width: 100%;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.brainstake-student-home .menu-icon-image {
    display: block;
    width: 28px;
    height: 27px;
    object-fit: contain;
    object-position: center;
}

.brainstake-student-home .menu-title {
    display: block;
    max-width: 100%;
    padding: 0 2px;
    color: #626962;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.brainstake-student-home .logout-card {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: block;
}

.brainstake-student-home .logout-button {
    font: inherit;
}

.brainstake-student-home .topbar {
    width: 100%;
    min-height: 45px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #39b54a;
    color: #fff;
}

.brainstake-student-home .avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    color: #fff;
}

.brainstake-student-home .avatar svg {
    width: 19px;
    height: 19px;
}

.brainstake-student-home .student-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brainstake-student-home .student-details strong {
    font-size: 11px;
    font-weight: 500;
}

.brainstake-student-home .student-details small {
    font-size: 9px;
}

.brainstake-student-home .notification {
    position: relative;
    margin-left: auto;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brainstake-student-home .notification svg {
    width: 19px;
    height: 19px;
}

.brainstake-student-home .notification sup {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 12px;
    height: 12px;
    padding: 0 3px;
    border-radius: 10px;
    background: #fff;
    color: #269a3d;
    font-size: 8px;
    line-height: 12px;
    text-align: center;
}

.brainstake-student-home .bottom-nav {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: calc(63px + env(safe-area-inset-bottom));
    padding: 5px 0 env(safe-area-inset-bottom);
    border-top: 1px solid #e2e6e3;
    background: #fff;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
}

.brainstake-student-home .nav-item {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #777e78;
    text-decoration: none;
}

.brainstake-student-home .nav-item svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.5;
}

.brainstake-student-home .nav-item small {
    font-size: 8px;
    line-height: 1.2;
}

.brainstake-student-home .nav-item.active {
    color: #20a33d;
    border-top: 2px solid #20b447;
}

@media (min-width: 600px) {
    .brainstake-student-home .portal-main {
        padding: 16px 18px 90px;
    }

    .brainstake-student-home .menu-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .brainstake-student-home .menu-card {
        min-height: 112px;
        border-radius: 10px;
        gap: 9px;
    }

    .brainstake-student-home .menu-icon {
        height: 43px;
    }

    .brainstake-student-home .menu-icon-image {
        width: 43px;
        height: 43px;
    }

    .brainstake-student-home .menu-title {
        font-size: 12px;
    }

    .brainstake-student-home .topbar {
        min-height: 62px;
        padding: 8px 20px;
    }

    .brainstake-student-home .avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .brainstake-student-home .student-details strong {
        font-size: 14px;
    }

    .brainstake-student-home .student-details small {
        font-size: 11px;
    }

    .brainstake-student-home .bottom-nav {
        min-height: 68px;
    }

    .brainstake-student-home .nav-item svg {
        width: 21px;
        height: 21px;
    }

    .brainstake-student-home .nav-item small {
        font-size: 11px;
    }
}

@media (min-width: 1100px) {
    .brainstake-student-home .menu-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
    }

    .brainstake-student-home .menu-card {
        min-height: 145px;
    }

    .brainstake-student-home .menu-icon-image {
        width: 52px;
        height: 52px;
    }

    .brainstake-student-home .menu-title {
        font-size: 13px;
    }
}


/* BRAINSTAKE HD ICON STYLES */
.menu-icon-image {
    width: 88px;
    height: 88px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
    transition: transform .25s ease;
}
.menu-card:hover .menu-icon-image {
    transform: translateY(-5px) scale(1.06);
}
.menu-card {
    overflow: hidden;
}
@media(max-width:768px) {
    .menu-icon-image {
        width: 70px;
        height: 70px;
    }
}
@media(max-width:480px) {
    .menu-icon-image {
        width: 60px;
        height: 60px;
    }
}
/* END BRAINSTAKE HD ICON STYLES */

/* BRAINSTAKE LARGE ICON SIZE FIX */
.menu-icon-image {
    width: 125px !important;
    height: 125px !important;
    max-width: 100%;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 14px !important;
}

.menu-card {
    min-height: 205px;
    padding: 20px 14px !important;
}

@media (max-width: 768px) {
    .menu-icon-image {
        width: 105px !important;
        height: 105px !important;
    }
}

@media (max-width: 480px) {
    .menu-icon-image {
        width: 88px !important;
        height: 88px !important;
    }
}
/* END BRAINSTAKE LARGE ICON SIZE FIX */

/* BRAINSTAKE OFFICIAL LOGO STYLES */
.brainstake-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    font-size: 21px;
}

.brainstake-brand-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
}

.brainstake-login-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
}

@media(max-width:600px) {
    .brainstake-brand-logo img {
        width: 46px;
        height: 46px;
    }

    .brainstake-login-logo {
        width: 125px;
        height: 125px;
    }
}
/* END BRAINSTAKE OFFICIAL LOGO STYLES */
