@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

:root{
      --green:#00563f;
      --green-dark:#003d2d;
      --green-soft:#edf6f1;
      --gold:#c9a227;
      --gold-soft:#fbf5df;
      --ink:#1f2933;
      --muted:#667085;
      --line:#dfe7e2;
      --white:#fff;
      --danger:#c62828;
      --danger-soft:#fff1f1;
      --warning:#9a6700;
      --warning-soft:#fff8e5;
      --success:#087443;
      --shadow:0 12px 35px rgba(0,55,40,.09);
      --radius:16px;
      font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    }
    *{box-sizing:border-box}
    body{margin:0;background:#f6f9f7;color:var(--ink)}
    button,input,select,textarea{font:inherit}
    button{cursor:pointer}
    a{color:inherit}
    .hidden{display:none!important}
    .app-shell{min-height:100vh;display:flex}
    .sidebar{width:255px;background:linear-gradient(180deg,var(--green),#003c2d);color:#fff;position:fixed;left:0;top:0;bottom:0;padding:22px 15px;z-index:20;overflow:auto}
    .brand{text-align:center;padding:5px 5px 20px;border-bottom:1px solid rgba(255,255,255,.18)}
    .brand-mark{width:72px;height:72px;margin:0 auto 10px;border:2px solid #fff;clip-path:polygon(50% 0,100% 100%,0 100%);display:grid;place-items:center;font-weight:800;font-size:15px}
    .brand h1{font-family:Georgia,serif;font-size:20px;line-height:1.1;margin:0}
    .brand p{margin:6px 0 0;color:#f3d56c;font-weight:700;font-size:13px}
    .brand small{display:block;margin-top:7px;color:#e7f0eb}
    .nav{padding-top:18px}
    .nav button{width:100%;border:0;background:transparent;color:#fff;text-align:left;padding:12px 13px;border-radius:11px;margin:3px 0;display:flex;align-items:center;gap:10px}
    .nav button:hover,.nav button.active{background:#fff;color:var(--green)}
    .nav-icon{width:23px;text-align:center}
    .sidebar-footer{margin-top:30px;border-top:1px solid rgba(255,255,255,.18);padding-top:18px;font-size:12px;color:#dbe9e2}
    .main{margin-left:255px;flex:1;min-width:0;min-height:100vh;display:flex;flex-direction:column}
    .topbar{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:10}
    .topbar h2{margin:0;font-family:Georgia,serif;color:var(--green);font-size:25px}
    .topbar p{margin:4px 0 0;color:var(--muted);font-size:14px}
    .user-chip{display:flex;align-items:center;gap:10px}
    .avatar{width:40px;height:40px;border-radius:50%;background:var(--green-soft);border:1px solid #d6e8de;display:grid;place-items:center;color:var(--green);font-weight:800}
    .content{padding:28px;max-width:1550px;margin:auto}
    .card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
    .card-pad{padding:22px}
    .hero{display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden;min-height:315px}
    .hero-copy{padding:34px}
    .hero-copy h1{font:700 30px Georgia,serif;color:var(--green);margin:0 0 16px}
    .hero-copy p{line-height:1.7;color:#4b5563}
    .hero-image{min-height:315px;background:linear-gradient(135deg,#e7f1ec,#d5e6dc);position:relative;overflow:hidden}
    .hero-image:before{content:"ST. JOSEPH'S";position:absolute;inset:0;display:grid;place-items:center;font:700 46px Georgia,serif;color:rgba(0,86,63,.12);letter-spacing:2px}
    .btn{border:0;border-radius:10px;padding:12px 18px;font-weight:700;transition:.15s}
    .btn-primary{background:var(--green);color:#fff}
    .btn-primary:hover{background:var(--green-dark)}
    .btn-secondary{background:#fff;color:var(--green);border:1px solid var(--green)}
    .btn-danger{background:var(--danger);color:#fff}
    .btn-warning{background:#fff4d4;color:#704f00;border:1px solid #efd68d}
    .btn-sm{padding:8px 11px;font-size:13px}
    .btn-row{display:flex;gap:10px;flex-wrap:wrap}
    .notice{padding:16px 18px;border-radius:12px;background:var(--green-soft);border:1px solid #d7e9df}
    .notice.warning{background:var(--warning-soft);border-color:#f0db9a}
    .notice.danger{background:var(--danger-soft);border-color:#efcaca}
    .profile-strip{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:0;overflow:hidden}
    .profile-cell{padding:18px 20px;border-right:1px solid var(--line)}
    .profile-cell:last-child{border-right:0}
    .profile-label{font-size:12px;color:var(--muted);margin-bottom:5px}
    .profile-value{font-weight:700}
    .section-title{font:700 22px Georgia,serif;color:var(--green);margin:0 0 15px}
    .section-title small{font:400 13px system-ui;color:var(--muted);font-family:inherit}
    .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
    .stat{padding:19px;border-radius:14px;background:#fff;border:1px solid var(--line)}
    .stat .label{color:var(--muted);font-size:13px}
    .stat .value{font-size:30px;font-weight:800;color:var(--green);margin:5px 0}
    .stat .sub{font-size:12px;color:var(--muted)}
    .grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
    .grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
    .grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
    .mt{margin-top:18px}
    .mt-lg{margin-top:28px}
    .login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}
    .login-brand{background:linear-gradient(145deg,#f0f7f3,#fff);padding:55px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;position:relative;overflow:hidden}
    .login-brand:after{content:"60";position:absolute;font:900 310px Georgia,serif;color:rgba(0,86,63,.045);right:-20px;bottom:-80px}
    .login-logo{width:155px;height:155px;border:3px solid var(--green);clip-path:polygon(50% 0,100% 100%,0 100%);display:grid;place-items:center;color:var(--green);font-weight:900;font-size:34px;background:#fff}
    .login-brand h1{font:700 43px Georgia,serif;color:var(--green);margin:25px 0 5px}
    .login-brand h2{font:700 25px Georgia,serif;color:var(--green);margin:0}
    .login-brand p{color:#52605a}
    .login-panel{display:flex;align-items:center;justify-content:center;padding:35px;background:#fff}
    .login-card{width:min(520px,100%);padding:38px;border-radius:20px;border:1px solid var(--line);box-shadow:var(--shadow)}
    .login-card h1{font:700 34px Georgia,serif;color:var(--green);margin:0 0 8px}
    .login-card .subtitle{color:var(--muted);margin-bottom:25px}
    .field{margin-bottom:16px}
    .field label{display:block;font-weight:700;font-size:13px;margin-bottom:7px}
    .field input,.field select,.field textarea{width:100%;border:1px solid #cfd8d3;border-radius:10px;padding:12px 13px;outline:none;background:#fff}
    .field textarea{min-height:115px;resize:vertical}
    .field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(0,86,63,.08)}
    .help-text{font-size:12px;color:var(--muted);line-height:1.5}
    .login-error{padding:11px 13px;border-radius:9px;background:var(--danger-soft);color:#9b1c1c;margin-bottom:14px;font-size:13px}
    .login-info{padding:13px;background:var(--green-soft);border-radius:10px;font-size:12px;color:#355247;line-height:1.6;margin-top:16px}
    .form-header{padding:22px;background:linear-gradient(135deg,#fbfdfb,#f2f7f4);border:1px solid var(--line);border-radius:14px}
    .question{padding:19px 0;border-bottom:1px solid var(--line)}
    .question:last-child{border-bottom:0}
    .q-title{display:flex;gap:11px;font-weight:750;line-height:1.45}
    .q-number{width:27px;height:27px;min-width:27px;border-radius:7px;background:var(--green);color:#fff;display:grid;place-items:center}
    .options{display:flex;flex-wrap:wrap;gap:12px 25px;margin:14px 0 0 38px}
    .option{display:flex;align-items:flex-start;gap:7px;font-size:14px}
    .option input{margin-top:3px;accent-color:var(--green)}
    .status-badge{display:inline-flex;padding:5px 9px;border-radius:99px;font-size:11px;font-weight:800}
    .status-submitted{background:#e8f7ef;color:#087443}
    .status-pending{background:#fff5d9;color:#8a6300}
    .table-wrap{overflow:auto}
    table{width:100%;border-collapse:collapse;min-width:720px}
    th,td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);font-size:13px}
    th{background:#f7faf8;color:#42534c;font-size:12px}
    tr:hover td{background:#fbfdfc}
    .filters{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;align-items:end}
    .chart-box{height:280px;display:flex;align-items:flex-end;gap:16px;padding:20px}
    .bar-wrap{flex:1;height:100%;display:flex;align-items:flex-end;justify-content:center;gap:7px}
    .bar{width:100%;max-width:54px;background:var(--green);border-radius:8px 8px 0 0;min-height:3px;position:relative}
    .bar span{position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);font-size:11px;font-weight:700}
    .bar-labels{display:flex;gap:16px;padding:0 20px 15px}
    .bar-labels div{flex:1;text-align:center;font-size:11px;color:var(--muted)}
    .donut{width:205px;height:205px;border-radius:50%;display:grid;place-items:center;margin:auto;position:relative;background:conic-gradient(var(--green) 0deg 188deg,#f2ae25 188deg 273deg,#e14a3b 273deg 335deg,#b8c0c8 335deg 360deg)}
    .donut:after{content:"";width:115px;height:115px;border-radius:50%;background:#fff;position:absolute}
    .donut-center{z-index:2;text-align:center;font-weight:800;color:var(--green)}
    .legend{display:grid;gap:8px;margin-top:18px}
    .legend-row{display:flex;align-items:center;justify-content:space-between;font-size:12px}
    .dot{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:7px}
    .modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:100;display:grid;place-items:center;padding:20px}
    .modal{width:min(680px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 30px 70px rgba(0,0,0,.2)}
    .modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
    .icon-btn{border:0;background:#f1f5f3;width:35px;height:35px;border-radius:9px}
    .empty{padding:35px;text-align:center;color:var(--muted)}
    .footer{padding:22px;text-align:center;color:var(--muted);font-size:12px}
    .mobile-menu{display:none}
    .toast{position:fixed;right:20px;bottom:20px;background:var(--green-dark);color:#fff;padding:13px 17px;border-radius:10px;box-shadow:var(--shadow);z-index:200;font-size:13px}
    @media(max-width:1100px){
      .stats{grid-template-columns:repeat(2,1fr)}
      .profile-strip{grid-template-columns:1fr 1fr}
      .filters{grid-template-columns:repeat(2,1fr)}
      .grid-4{grid-template-columns:1fr 1fr}
    }
    @media(max-width:820px){
      .sidebar{transform:translateX(-100%);transition:.2s}
      .sidebar.open{transform:translateX(0)}
      .main{margin-left:0;min-height:100vh;display:flex;flex-direction:column}
      .mobile-menu{display:block;border:0;background:transparent;font-size:24px}
      .topbar{padding:0 16px}
      .content{padding:17px}
      .hero,.login-page,.grid-2,.grid-3{grid-template-columns:1fr}
      .login-brand{padding:35px 20px;min-height:420px}
      .login-brand h1{font-size:32px}
      .login-logo{width:110px;height:110px}
      .stats{grid-template-columns:1fr 1fr}
    }
    @media(max-width:520px){
      .stats,.grid-4,.profile-strip,.filters{grid-template-columns:1fr}
      .login-card{padding:24px}
      .topbar h2{font-size:19px}
      .topbar p{display:none}
      .topbar-school-logo{
        width:38px;
        height:38px;
      }
      .options{margin-left:0}
    }

    /* ===== Parent Dashboard - Reference Layout (Part 2) ===== */
    .parent-profile-card{
      display:grid;
      grid-template-columns:1.25fr 1fr 1fr 1fr 1fr;
      overflow:hidden;
      min-height:110px;
      margin-top:0;
    }
    .welcome-block{
      display:flex;
      align-items:center;
      gap:18px;
      padding:20px 22px;
    }
    .welcome-icon{
      width:58px;height:58px;border-radius:50%;
      background:#eaf3ee;color:#0c5b46;border:1px solid #dce9e2;
      display:grid;place-items:center;font-size:27px;flex:none;
    }
    .welcome-block h3{font:700 17px Georgia,serif;margin:0;color:#174d3d}
    .welcome-block p{font-size:10px;line-height:1.5;color:#596560;margin:7px 0 0}
    .profile-detail{
      border-left:1px solid #dfe5e2;padding:18px 17px;
      display:flex;align-items:center;gap:11px;min-width:0;
    }
    .profile-detail label{display:block;font-size:9px;color:#5e6763;margin-bottom:3px}
    .profile-detail b{display:block;font-size:10px;color:#172c25;line-height:1.35;word-break:break-word}
    .mini-icon{font-size:20px;color:#233b33;flex:none}
    .child-detail{align-items:center}
    .child-class-label{margin-top:9px!important}

    .parent-hero-card{
      margin-top:10px;
      background:#fff;
      border:1px solid #dfe7e2;
      border-radius:9px;
      display:grid;
      grid-template-columns:31% 39% 30%;
      height:315px;
      min-height:315px;
      overflow:hidden;
    }
    .campus-photo{position:relative;overflow:hidden;height:315px;min-height:315px}
    .campus-photo img{width:100%;height:315px;object-fit:cover;display:block}
    .campus-photo:after{
      display:none;
    }
    .hero-copy-ref{padding:28px 30px 20px}
    .hero-copy-ref h1{font:700 26px Georgia,serif;color:#15513e;margin:0 0 9px}
    .gold-rule{height:1px;background:#d4b457;width:150px;margin-bottom:17px;position:relative}
    .gold-rule:after{content:"◆";position:absolute;right:45%;top:-7px;color:#c9a227;font-size:8px;background:#fff;padding:0 5px}
    .hero-copy-ref p{font-size:12px;line-height:1.65;color:#4e5a55;margin:12px 0}
    .why-card{
      margin:18px 20px 18px 0;
      border:1px solid #e1e9e4;border-radius:8px;
      background:#fbfcfb;padding:17px 18px;
    }
    .why-card h3{font:700 17px Georgia,serif;color:#14503d;margin:0 0 12px}
    .why-card ul{padding:0;margin:0;list-style:none}
    .why-card li{font-size:11px;color:#45524c;line-height:1.55;margin:9px 0;padding-left:22px;position:relative}
    .why-card li:before{content:"✓";position:absolute;left:0;top:0;color:#177452;font-weight:800;font-size:14px}

    @media(max-width:1100px){
      .parent-profile-card{grid-template-columns:1fr 1fr}
      .welcome-block{grid-column:1/-1}
      .parent-hero-card{grid-template-columns:1fr;height:auto;min-height:0}
      .campus-photo,.campus-photo img{height:260px;min-height:260px}
      .why-card{margin:15px 18px}
    }
    @media(max-width:820px){
      .parent-profile-card{grid-template-columns:1fr}
      .welcome-block{grid-column:auto}
      .profile-detail{border-left:0;border-top:1px solid #dfe5e2}
      .parent-hero-card{grid-template-columns:1fr}
      .campus-photo,.campus-photo img{height:230px;min-height:230px}
      .hero-copy-ref{padding:24px 22px}
    }


    /* =========================================================
       Parent Dashboard — exact reference layout
       ========================================================= */
    .app-shell{min-height:100vh;background:#f7faf8}
    .sidebar{width:275px;padding:24px 16px 20px;background:linear-gradient(180deg,#005b43 0%,#003e2f 100%)}
    .main{margin-left:275px;min-height:100vh;display:flex;flex-direction:column}
    .topbar{height:101px;padding:0 32px;background:#fff}
    .topbar-title{display:flex;align-items:center;gap:12px}
    .topbar-school-logo{
      width:70px;
      height:70px;
      object-fit:contain;
      flex:none;
    }
    .topbar-heading{min-width:0}
    .topbar h2{font-size:28px;line-height:1.05}
    .topbar p{font-size:15px;margin-top:7px}
    .topbar-actions{display:flex;align-items:center;gap:18px}
    .header-icon{position:relative;border:0;background:#fff;color:#163b30;font-size:22px;width:34px;height:40px}
    .notification-dot{position:absolute;right:3px;top:4px;width:7px;height:7px;border-radius:50%;background:#e33;border:1px solid #fff}
    .role-label{font-size:10px;color:#98a29e;margin-top:2px}
    .user-chip{gap:11px}
    .avatar{width:43px;height:43px;background:#edf6f1;border-color:#d6e8de}
    .icon-btn{background:#f1f5f3;width:34px;height:34px;border-radius:9px}
    .content{padding:19px 32px 0;max-width:none;margin:0;flex:1}
    .brand{padding:0 0 18px}
    .brand-logo{display:block;width:158px;height:158px;object-fit:contain;margin:0 auto 14px}
    .brand h1{font-size:20px;line-height:1.08}
    .brand p{font-size:13px;margin-top:7px}
    .brand small{font-size:13px}
    .nav{padding-top:19px}
    .nav button{font-size:15px;padding:13px 13px;margin:4px 0;gap:13px;border-radius:11px}
    .nav-icon{width:23px;font-size:20px;line-height:1;text-align:center}
    .nav-logout{margin-top:22px!important}
    .sidebar-footer{position:absolute;left:16px;right:16px;bottom:20px;margin:0;padding-top:18px;font-size:11px;line-height:1.35}
    .help-card{position:absolute;left:30px;right:30px;bottom:114px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);border-radius:11px;padding:15px 14px;display:flex;align-items:center;gap:12px}
    .help-icon{width:36px;height:36px;border:1px solid rgba(255,255,255,.55);border-radius:50%;display:grid;place-items:center;font-size:18px}
    .help-card b,.help-card span{display:block}.help-card b{font-size:13px}.help-card span{font-size:11px;color:#e2ece8;margin-top:3px}
    .parent-profile-card{grid-template-columns:1.82fr .98fr .99fr .99fr 1.19fr;min-height:147px;height:147px;border-radius:10px;box-shadow:0 7px 22px rgba(0,55,40,.05)}
    .welcome-block{padding:20px 27px;gap:20px}
    .welcome-icon{width:78px;height:78px;font-size:31px}
    .welcome-block h3{font-size:22px}
    .welcome-block p{font-size:12px;line-height:1.55;margin-top:8px}
    .profile-detail{padding:18px 24px;gap:14px}
    .profile-detail label{font-size:11px}.profile-detail b{font-size:13px}
    .mini-icon{font-size:25px}.child-class-label{margin-top:13px!important}
    .parent-hero-card{margin-top:20px;grid-template-columns:31.5% 37.5% 31%;height:282px;min-height:282px;border-radius:9px;box-shadow:0 6px 20px rgba(0,55,40,.045)}
    .campus-photo,.campus-photo img{height:282px;min-height:282px}
    .campus-photo img{object-fit:cover}
    .campus-photo:after{width:31%;clip-path:ellipse(72% 88% at 100% 50%);background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.88) 72%,#fff 100%)}
    .hero-copy-ref{padding:29px 29px 18px}
    .hero-copy-ref h1{font-size:25px;margin-bottom:9px}
    .gold-rule{width:180px;margin-bottom:17px}
    .hero-copy-ref p{font-size:12px;line-height:1.65;margin:12px 0}
    .why-card{margin:20px 20px 20px 0;padding:19px 19px;background:#fbfcfb}
    .why-card h3{font-size:17px;margin-bottom:13px}.why-card li{font-size:12px;margin:10px 0;line-height:1.45}
    .deadline-card{
      height:85px;
      margin-top:20px;
      border:1px solid #d7e7df;
      border-radius:10px;
      background:linear-gradient(90deg,#edf6f1 0%,#f7faf8 48%,#eef6f2 100%);
      border:1px solid #d9e7e0;
      box-shadow:0 4px 14px rgba(0,86,63,.06);
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:0 20px;
      gap:20px;
    }
    .deadline-left{
      display:flex;
      align-items:center;
      gap:12px;
      min-width:0;
    }
    .deadline-icon{
      width:46px;
      height:46px;
      flex:none;
      border-radius:50%;
      border:0;
      background:#e7f1ec;
      display:grid;
      place-items:center;
      color:#075b43;
      font-size:20px;
    }
    .deadline-left span{
      display:block;
      font-size:10px;
      line-height:1.15;
      color:#37443f;
    }
    .deadline-left strong{
      display:block;
      font:700 18px Georgia,serif;
      line-height:1.05;
      color:#07563f;
      margin-top:2px;
    }
    .deadline-left sup{font-size:9px}
    .deadline-divider{display:none}
    .deadline-card p{display:none}
    .deadline-card .btn{
      margin-left:auto;
      height:38px;
      min-width:168px;
      padding:0 16px;
      border-radius:6px;
      font-size:12px;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:18px;
    }
    .deadline-card .btn .deadline-arrow{
      font-size:19px;
      line-height:1;
      font-weight:400;
    }
    .journey-card{height:165px;margin-top:20px;padding:19px 27px;border-radius:10px;box-shadow:none}.journey-card h2{font:700 20px Georgia,serif;color:#12513d;margin:0 0 19px}.journey-row{display:flex;align-items:center;gap:15px}.journey-step{display:flex;align-items:center;gap:11px;flex:1;min-width:0}.journey-icon{width:47px;height:47px;border-radius:50%;background:#edf5f1;border:1px solid #dbe8e1;display:grid;place-items:center;color:#075b43;font-size:21px;flex:none}.journey-step b{display:block;font-size:11px;color:#133c30}.journey-step span{display:block;font-size:10px;line-height:1.45;color:#53605b;margin-top:5px}.journey-arrow{font-size:23px;color:#596962;flex:none}.secure-box{width:190px;height:76px;background:#edf5f1;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:11px;flex:none}.secure-icon{width:32px;height:32px;border-radius:50%;border:1px solid #d9e8e0;display:grid;place-items:center;color:#0b5a43}.secure-box b,.secure-box span{display:block;font-size:10px}.secure-box span{margin-top:3px;color:#4b5c54}
    .feedback-ready{height:85px;margin-top:20px;border:1px solid #d7e7df;border-radius:10px;background:linear-gradient(90deg,#fbfdfb,#f3f8f5);display:flex;align-items:center;padding:0 28px;gap:18px}.ready-icon{font-size:40px;color:#c9a227;width:54px;text-align:center}.feedback-ready h3{margin:0;color:#0a513d;font-size:18px}.feedback-ready p{margin:5px 0 0;color:#394941;font-size:12px}.feedback-ready .btn{margin-left:auto;min-width:245px;height:53px;font-size:15px}.feedback-submitted{background:#fffaf0;border-color:#ecd69b}
    /* =========================================================
       COMMON FOOTER — shown at the bottom of every shell page
       ========================================================= */
    .parent-footer{
      flex-shrink:0;
      width:100%;
      min-height:42px;
      margin-top:auto;
      padding:0 28px;
      background:#fff;
      border-top:1px solid #dfe5e2;
      box-shadow:0 -2px 8px rgba(0,55,40,.06);
      display:flex;
      align-items:center;
      justify-content:space-between;
      color:#53605b;
      font-size:12px;
      line-height:1;
      white-space:nowrap;
    }

    .footer-left{display:flex;align-items:center;height:100%;gap:14px}
    .footer-item{display:flex;align-items:center;gap:7px;color:#59645f}
    .footer-icon{width:17px;height:17px;display:grid;place-items:center;color:#0a5b44;font-size:13px;line-height:1;flex:none}
    .footer-confidential{color:#59645f}
    .footer-divider{width:1px;height:18px;background:#d7ddd9;flex:none}
    .footer-right{color:#5d6763;text-align:right;font-size:12px}

    @media(max-width:1100px){
      .parent-footer{
        height:auto;
        min-height:42px;
        padding:9px 20px;
        gap:12px;
        flex-wrap:wrap;
      }
      .footer-left{flex-wrap:wrap;height:auto;gap:10px}
      .footer-right{margin-left:auto}
    }

    @media(max-width:820px){
      .parent-footer{
        padding:12px 17px;
        white-space:normal;
        justify-content:center;
        text-align:center;
      }
      .footer-left{justify-content:center}
      .footer-right{width:100%;text-align:center;margin-left:0}
    }
    @media(max-width:1250px){.deadline-card{padding:0 14px}.journey-row{gap:9px}.secure-box{width:170px}.parent-profile-card{grid-template-columns:1.55fr 1fr 1fr 1fr 1.1fr}}
    @media(max-width:1100px){.sidebar{width:255px}.main{margin-left:255px}.content{padding-left:24px;padding-right:24px}.deadline-card{padding:0 14px}.parent-profile-card{height:auto;min-height:147px;grid-template-columns:1fr 1fr}.welcome-block{grid-column:1/-1}.journey-card{height:auto}.journey-row{flex-wrap:wrap}.secure-box{margin-left:auto}}
    @media(max-width:820px){.sidebar{width:275px}.main{margin-left:0}.content{padding:17px}.topbar{height:78px}.parent-profile-card{grid-template-columns:1fr;height:auto}.welcome-block{grid-column:auto}.profile-detail{border-left:0;border-top:1px solid #dfe5e2}.parent-hero-card{grid-template-columns:1fr;height:auto}.campus-photo,.campus-photo img{height:230px;min-height:230px}.deadline-card{height:auto;min-height:55px;padding:10px 14px;flex-wrap:wrap}.deadline-card .btn{margin-left:auto}.journey-row{display:grid;grid-template-columns:1fr}.journey-arrow{display:none}.secure-box{width:100%;margin:0}.feedback-ready{height:auto;padding:20px;flex-wrap:wrap}.feedback-ready .btn{margin-left:0;width:100%}}
    /* ================================
       USER PROFILE DROPDOWN
    ================================ */

    .user-menu {
      position: relative;
      display: flex;
      align-items: center;
    }

    .user-chip {
      display: flex;
      align-items: center;
      gap: 12px;
      background: transparent;
      border: 0;
      cursor: pointer;
      padding: 6px 10px;
      border-radius: 12px;
      font-family: inherit;
    }

    .user-chip:hover {
      background: #f4f7f5;
    }

    .user-info {
      text-align: left;
      line-height: 1.15;
    }

    .user-info b {
      display: block;
      font-size: 14px;
      color: #17201c;
      white-space: nowrap;
    }

    .role-label {
      margin-top: 4px;
      font-size: 10px;
      color: #718078;
      letter-spacing: .04em;
    }

    .user-chevron {
      font-size: 16px;
      color: #59655f;
      margin-left: 2px;
    }


    /* Dropdown */

    .user-dropdown {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;

      width: 270px;

      background: #ffffff;

      border: 1px solid #e4e9e6;

      border-radius: 10px;

      box-shadow:
        0 10px 30px rgba(0,0,0,.12),
        0 2px 8px rgba(0,0,0,.05);

      overflow: hidden;

      opacity: 0;
      visibility: hidden;
      transform: translateY(-6px);

      transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;

      z-index: 9999;
    }

    .user-dropdown.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }


    /* Dropdown header */

    .dropdown-user-info {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
    }

    .dropdown-avatar {
      width: 42px;
      height: 42px;

      border-radius: 50%;

      background: #eef5f1;

      color: #006b4f;

      display: flex;
      align-items: center;
      justify-content: center;

      font-weight: 700;
      font-size: 16px;

      flex-shrink: 0;
    }

    .dropdown-user-info > div:nth-child(2) {
      min-width: 0;
      flex: 1;
    }

    .dropdown-user-info strong {
      display: block;
      font-size: 14px;
      color: #1c2521;
      margin-bottom: 4px;
    }

    .dropdown-user-info span {
      display: block;
      font-size: 12px;
      color: #7b8580;

      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .dropdown-user-info small {
      font-size: 9px;
      font-weight: 700;

      color: #ffffff;
      background: #006b4f;

      padding: 4px 7px;
      border-radius: 5px;

      flex-shrink: 0;
    }


    /* Divider */

    .dropdown-divider {
      height: 1px;
      background: #edf0ee;
    }


    /* Dropdown buttons */

    .dropdown-item {
      width: 100%;

      display: flex;
      align-items: center;

      gap: 12px;

      padding: 14px 16px;

      border: 0;
      background: #ffffff;

      color: #303936;

      font-family: inherit;
      font-size: 14px;

      text-align: left;

      cursor: pointer;
    }

    .dropdown-item:hover {
      background: #f5f8f6;
    }

    .dropdown-item-icon {
      width: 20px;

      display: inline-flex;
      justify-content: center;

      color: #60716a;
      font-size: 16px;
    }

    .logout-item {
      color: #b3261e;
    }

    .logout-item .dropdown-item-icon {
      color: #b3261e;
    }

    .logout-item:hover {
      background: #fff5f4;
    }
    .mini-icon {
      width: 25px;
      min-width: 25px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #123d30;
    }

    .mini-icon svg {
      width: 22px;
      height: 22px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* =========================================================
       FINAL DEADLINE CARD — reference image match
       Only this section is changed. Other font sizes/styles remain untouched.
       ========================================================= */

    .deadline-card.deadline-reference{
      height:80px;
      min-height:56px;
      margin-top:20px;
      padding:0 14px 0 16px;
      gap:16px;
      border:1px solid #d9e7e0;
      border-radius:8px;
      background:linear-gradient(
        90deg,
        #edf6f1 0%,
        #f8fbf9 42%,
        #ffffff 72%,
        #edf6f1 100%
      );
      box-shadow:none;
    }

    .deadline-reference .deadline-left{
      display:flex;
      align-items:center;
      gap:12px;
      min-width:0;
    }

    .deadline-reference .deadline-icon{
      width:52px;
      height:52px;
      flex:0 0 52px;
      border-radius:50%;
      background:#e7f2ec;
      border:0;
      color:#075b43;
      display:grid;
      place-items:center;
      font-size:20px;
    }

    .deadline-reference .deadline-icon svg{
      width:22px;
      height:22px;
    }

    .deadline-reference .deadline-left span{
      display:block;
      font-size:10px;
      line-height:1.15;
      color:#37443f;
    }

    .deadline-reference .deadline-left strong{
      display:block;
      font:700 18px Georgia,serif;
      line-height:1.05;
      color:#07563f;
      margin-top:2px;
    }

    .deadline-reference .deadline-left sup{
      font-size:9px;
    }

    .deadline-reference > .btn{
      margin-left:auto;
      height:45px;
      min-width:195px;
      padding:0 18px;
      border-radius:7px;
      font-size:14px;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:17px;
      flex:none;
    }

    .deadline-reference .deadline-arrow{
      font-size:18px;
      line-height:1;
      font-weight:400;
    }

    /* Keep the compact reference layout on smaller screens */
    @media(max-width:820px){
      .deadline-card.deadline-reference{
        height:auto;
        min-height:56px;
        padding:7px 12px;
      }

      .deadline-reference > .btn{
        margin-left:auto;
      }
    }
    /* ===== Sidebar Navigation Icons ===== */

.nav-icon{
  width:23px;
  min-width:23px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:currentColor;
}

.nav-icon svg{
  width:18px;
  height:18px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.nav button.active .nav-icon{
  color:var(--green);
}

.nav button:hover .nav-icon{
  color:var(--green);
}

.sidebar-quote::after{
  content:"";
  position:absolute;
  right:-8px;
  bottom:-12px;
  width:115px;
  height:155px;

  background-image:url("assets/sidebar-leaves.png");
  background-repeat:no-repeat;
  background-size:contain;
  background-position:center;

  opacity:.16;
  pointer-events:none;
}

.quote-mark{
  position:relative;
  z-index:2;

  font-family:Georgia,serif;
  font-size:32px;
  line-height:20px;
  font-weight:700;

  color:#e2b52b;
  margin-bottom:8px;
}

.sidebar-quote p{
  position:relative;
  z-index:2;

  margin:0;
  color:#fff;

  font-size:14px;
  line-height:1.55;
}

.sidebar-quote span{
  position:relative;
  z-index:2;

  display:block;
  
  margin-top:18px;

  color:#fff;
  font-size:14px;
  line-height:1.3;
}
.nav-divider{
  height:1px;
  background:rgba(255,255,255,0.22);
  margin:10px 8px 9px;
}

/* ===== Exact Journey Icons ===== */
.journey-icon svg{
  width:21px;
  height:21px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.secure-icon svg{
  width:17px;
  height:17px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* =========================================================
   GUIDED PARENT FEEDBACK FORM
   Horizontal progress at the TOP.
   Sidebar and existing portal styling are not modified.
   ========================================================= */

.guided-feedback-page{
  width:100%;
  max-width:none;
  margin:0 auto;
}

/* ---------- Horizontal progress ---------- */

.guided-progress-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:17px 20px 18px;
  box-shadow:0 6px 20px rgba(0,55,40,.045);
  margin-bottom:18px;
}

.guided-progress-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:17px;
}

.guided-progress-label{
  color:var(--green);
  font-size:14px;
  font-weight:800;
}

.guided-progress-count{
  color:#5f6d67;
  font-size:11px;
  font-weight:700;
  margin-top:3px;
}

.guided-progress-track{
  display:flex;
  align-items:center;
  width:100%;
}

.guided-progress-item{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}

.guided-progress-node{
  width:34px;
  height:34px;
  min-width:34px;
  border-radius:50%;
  background:#fff;
  border:1px solid #cbdad3;
  color:#718079;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:800;
  transition:.2s ease;
}

.guided-progress-item.current .guided-progress-node,
.guided-progress-item.completed .guided-progress-node{
  background:var(--green);
  border-color:var(--green);
  color:#fff;
}

.guided-progress-text{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.guided-progress-text b{
  font-size:10px;
  color:#596761;
  line-height:1.2;
}

.guided-progress-text span{
  font-size:11px;
  color:#1c332a;
  font-weight:700;
  white-space:nowrap;
  margin-top:2px;
}

.guided-progress-item.current .guided-progress-text span{
  color:var(--green);
}

.guided-progress-connector{
  height:2px;
  flex:1;
  min-width:25px;
  margin:0 10px;
  background:#dce5e1;
  position:relative;
}

.guided-progress-connector.completed{
  background:var(--green);
}

/* ---------- Main feedback card ---------- */

.guided-feedback-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:25px 27px 21px;
}

.guided-form-heading{
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}

.guided-step-label{
  color:var(--green);
  font-size:12px;
  font-weight:800;
  margin-bottom:4px;
}

.guided-form-heading h1{
  margin:0;
  color:#17211e;
  font:700 29px Georgia,serif;
}

.guided-heading-rule{
  width:45px;
  height:3px;
  background:var(--gold);
  margin-top:10px;
}

.guided-form-heading p{
  margin:13px 0 0;
  color:#52605a;
  font-size:12px;
  line-height:1.6;
}

.guided-profile-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-bottom:1px solid var(--line);
  padding:15px 0;
  gap:20px;
}

.guided-profile-strip span{
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-bottom:4px;
}

.guided-profile-strip b{
  display:block;
  color:#172c25;
  font-size:12px;
}

.guided-question{
  padding:19px 0;
  border-bottom:1px solid var(--line);
}

.guided-question-title{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:#18211e;
  font-size:14px;
  font-weight:750;
  line-height:1.45;
}

.guided-question-title em{
  color:#c62828;
  font-style:normal;
}

.guided-q-number{
  width:29px;
  height:29px;
  min-width:29px;
  border-radius:7px;
  background:var(--green);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:800;
}

/* ---------- Answer cards ---------- */

.guided-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
  margin-top:14px;
}

.guided-option{
  position:relative;
  min-height:76px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 42px 11px 12px;
  border:1px solid #dce5e1;
  border-radius:11px;
  background:#fff;
  cursor:pointer;
  transition:.15s ease;
}

.guided-option:hover{
  border-color:#a9c9bb;
  box-shadow:0 4px 12px rgba(0,86,63,.06);
}

.guided-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.guided-option-icon{
  width:40px;
  height:40px;
  min-width:40px;
  border-radius:50%;
  background:#edf7f1;
  color:var(--green);
  display:grid;
  place-items:center;
  font-size:18px;
  font-weight:800;
}

.guided-option-text{
  min-width:0;
}

.guided-option-text b{
  display:block;
  color:#26352f;
  font-size:12px;
  line-height:1.35;
}

.guided-option-text small{
  display:block;
  color:#66736d;
  font-size:10px;
  line-height:1.4;
  margin-top:4px;
}

.guided-option-radio{
  position:absolute;
  right:14px;
  top:50%;
  width:17px;
  height:17px;
  transform:translateY(-50%);
  border:1.5px solid #87958f;
  border-radius:50%;
  background:#fff;
}

.guided-option input[type="checkbox"] ~ .guided-option-radio{
  border-radius:4px;
}

.guided-option input:checked ~ .guided-option-radio{
  background:var(--green);
  border-color:var(--green);
}

.guided-option input:checked ~ .guided-option-radio::after{
  content:"✓";
  position:absolute;
  color:#fff;
  font-size:11px;
  font-weight:800;
  left:3px;
  top:0;
}

.guided-option:has(input:checked){
  border-color:var(--green);
  background:#f4faf7;
  box-shadow:0 0 0 2px rgba(0,86,63,.06);
}

.guided-option:has(input:checked) .guided-option-icon{
  background:#dff1e7;
}

/* Multi-select questions can use the same card layout */
.guided-options-multi{
  grid-template-columns:repeat(3,1fr);
}

.guided-options-multi .guided-option{
  min-height:65px;
}

/* ---------- Text question ---------- */

.guided-text-area{
  margin:14px 0 0 39px;
}

.guided-text-area textarea{
  width:100%;
  min-height:145px;
  resize:vertical;
  border:1px solid #cfd8d3;
  border-radius:10px;
  padding:13px;
  outline:none;
  background:#fff;
}

.guided-text-area textarea:focus{
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(0,86,63,.08);
}

/* ---------- Confidential notice ---------- */

.guided-confidential{
  display:flex;
  align-items:center;
  gap:11px;
  margin-top:17px;
  padding:12px 14px;
  background:#f1f8f4;
  border:1px solid #d5e5dd;
  border-radius:10px;
}

.guided-confidential-icon{
  width:34px;
  height:34px;
  min-width:34px;
  border-radius:50%;
  background:var(--green);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:14px;
}

.guided-confidential b{
  display:block;
  color:var(--green);
  font-size:11px;
}

.guided-confidential span{
  display:block;
  color:#66736d;
  font-size:10px;
  margin-top:3px;
}

.guided-confirm{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:13px;
  color:#43524c;
  font-size:11px;
  line-height:1.5;
}

.guided-confirm input{
  margin-top:2px;
  accent-color:var(--green);
}

/* ---------- Buttons ---------- */

.guided-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--line);
}

.guided-next-button{
  min-width:120px;
  font-size:13px;
}

/* ---------- Responsive ---------- */

@media(max-width:1050px){
  .guided-options-multi{
    grid-template-columns:1fr 1fr;
  }

  .guided-progress-text span{
    white-space:normal;
  }
}

@media(max-width:820px){
  .guided-progress-card{
    padding:15px;
    overflow-x:auto;
  }

  .guided-progress-track{
    min-width:650px;
  }

  .guided-feedback-card{
    padding:20px 18px;
  }

  .guided-profile-strip{
    grid-template-columns:1fr 1fr;
  }

  .guided-options,
  .guided-options-multi{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:600px){
  .guided-profile-strip{
    grid-template-columns:1fr;
    gap:11px;
  }

  .guided-options,
  .guided-options-multi{
    grid-template-columns:1fr;
  }

  .guided-text-area{
    margin-left:0;
  }

  .guided-form-heading h1{
    font-size:25px;
  }

  .guided-question-title{
    font-size:13px;
  }

  .guided-actions{
    position:sticky;
    bottom:0;
    background:#fff;
    padding-bottom:5px;
  }
}

/* =========================================================
   LOGIN PAGE — FULL HEIGHT 50/50 IMAGE LAYOUT
   The desktop login page is split exactly into two equal
   viewport halves. The school image fills the entire left
   half; the login card occupies the right half.
   ========================================================= */

.login-page{
  width:100%;
  min-height:100vh;
  height:100vh;
  display:grid;
  grid-template-columns:50% 50%;
  grid-template-rows:100%;
  background:#fff;
  overflow:hidden;
}

/* LEFT IMAGE PANEL */
.login-brand{
  position:relative;
  width:100%;
  height:100%;
  min-width:0;
  min-height:100vh;
  padding:0;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#eef5f1;
  isolation:isolate;
}

.login-brand::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.82) 0%,
      rgba(255,255,255,.48) 45%,
      rgba(255,255,255,.08) 82%,
      rgba(0,70,50,.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,.22) 0%,
      rgba(255,255,255,0) 55%,
      rgba(0,40,30,.10) 100%
    );
}

.login-brand-image{
  position:absolute;
  inset:0;
  z-index:0;
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:cover;
  object-position:center center;
}

.login-brand-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255,255,255,.30) 0%,
      rgba(255,255,255,0) 52%
    );
}

.login-brand-content{
  position:relative;
  z-index:4;
  width:min(88%,560px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:30px;
}

.login-brand-logo{
  width:150px;
  height:150px;
  object-fit:contain;
  display:block;
  margin:0 auto 18px;
  filter:drop-shadow(0 5px 12px rgba(0,50,35,.16));
}

.login-brand h1{
  margin:0 0 3px;
  color:#00563f;
  font:700 42px/1.05 Georgia,serif;
  letter-spacing:.3px;
  text-shadow:0 1px 2px rgba(255,255,255,.7);
}

.login-brand h2{
  margin:0;
  color:#00563f;
  font:700 25px/1.15 Georgia,serif;
  letter-spacing:.2px;
  text-shadow:0 1px 2px rgba(255,255,255,.7);
}

.login-location{
  margin:9px 0 0!important;
  color:#07523e!important;
  font-size:14px!important;
  font-weight:800;
  letter-spacing:.4px;
}

.login-affiliation{
  margin:5px 0 0!important;
  color:#425a50!important;
  font-size:12px!important;
}

.login-jubilee{
  margin-top:34px;
  color:#00563f;
  font:800 18px/1.2 Georgia,serif;
  letter-spacing:.3px;
}

.login-transition{
  margin-top:8px;
  color:#5d6b65;
  font-size:13px;
}

/* RIGHT LOGIN PANEL */
.login-panel{
  position:relative;
  width:100%;
  height:100%;
  min-width:0;
  min-height:100vh;
  padding:35px clamp(28px,5vw,80px);
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  overflow:auto;
}

.login-card{
  width:min(520px,100%);
  max-height:calc(100vh - 70px);
  overflow:auto;
  padding:38px;
  border-radius:20px;
  border:1px solid #dfe7e2;
  background:#fff;
  box-shadow:0 18px 45px rgba(0,55,40,.10);
}

.login-portal-label{
  font-size:13px;
  color:var(--gold);
  font-weight:800;
  letter-spacing:.08em;
  margin-bottom:7px;
}

.login-card h1{
  margin:0 0 8px;
  font:700 34px/1.12 Georgia,serif;
  color:var(--green);
}

.login-card .subtitle{
  color:var(--muted);
  line-height:1.55;
  margin-bottom:25px;
}

.login-submit{
  width:100%;
  min-height:48px;
  font-size:16px;
}

/* Desktop only: make sure nothing from the older layout
   creates a second image/branding area. */
@media(min-width:821px){
  .login-page{
    grid-template-columns:50vw 50vw;
  }

  .login-brand,
  .login-panel{
    width:50vw;
  }
}

/* Tablet/mobile: stack the two panels instead of squeezing
   the 50/50 desktop composition. */
@media(max-width:820px){
  .login-page{
    height:auto;
    min-height:100vh;
    grid-template-columns:1fr;
    grid-template-rows:minmax(390px,48vh) auto;
    overflow:visible;
  }

  .login-brand{
    width:100%;
    min-height:390px;
    height:48vh;
  }

  .login-brand-logo{
    width:100px;
    height:100px;
    margin-bottom:12px;
  }

  .login-brand h1{
    font-size:31px;
  }

  .login-brand h2{
    font-size:20px;
  }


  .login-transition{
    font-size:11px;
  }

  .login-panel{
    width:100%;
    min-height:auto;
    height:auto;
    padding:28px 18px 35px;
    overflow:visible;
  }

  .login-card{
    max-height:none;
    padding:26px;
  }
}

@media(max-width:520px){
  .login-page{
    grid-template-rows:330px auto;
  }

  .login-brand{
    min-height:330px;
    height:330px;
  }

  .login-brand-content{
    padding:18px;
  }

  .login-brand-logo{
    width:78px;
    height:78px;
  }

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

  .login-brand h2{
    font-size:17px;
  }

  .login-location{
    font-size:11px!important;
  }

  .login-affiliation{
    font-size:10px!important;
  }

  .login-transition{
    font-size:9px;
  }

  .login-panel{
    padding:18px 12px 25px;
  }

  .login-card{
    padding:22px 18px;
    border-radius:15px;
  }

  .login-card h1{
    font-size:29px;
  }
}


/* =========================================================
   FINAL LOGIN RESPONSIVE OVERRIDE
   ---------------------------------------------------------
   Added after the existing CSS so it safely overrides the
   older login rules without changing the rest of the portal.

   Desktop : exact 50% / 50%
   Tablet  : fluid stacked layout
   Mobile  : fluid stacked layout
   Landscape mobile/tablet : adapts automatically
   ========================================================= */

/* ---------- Base fluid login layout ---------- */

.login-page{
  width:100%;
  min-width:0;
  min-height:100dvh;
  height:100dvh;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-template-rows:100%;
  background:#fff;
  overflow:hidden;
}

.login-brand{
  position:relative;
  width:100%;
  min-width:0;
  min-height:100dvh;
  height:100%;
  padding:clamp(18px,3vw,55px);
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#eef5f1;
  isolation:isolate;
}

.login-brand-image{
  position:absolute;
  inset:0;
  z-index:0;
  display:block;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover;
  object-position:center center;
}

.login-brand-content{
  position:relative;
  z-index:4;
  width:min(88%,560px);
  max-width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:clamp(12px,2.5vw,30px);
  transform:none !important;
}

.login-brand-logo{
  width:clamp(76px,10vw,150px);
  height:clamp(76px,10vw,150px);
  max-width:40%;
  object-fit:contain;
  display:block;
  margin:0 auto clamp(10px,1.5vw,18px);
}

.login-brand h1{
  margin:0 0 3px;
  font-size:clamp(26px,3vw,42px);
  line-height:1.05;
}

.login-brand h2{
  margin:0;
  font-size:clamp(17px,1.8vw,25px);
  line-height:1.15;
}

.login-location{
  margin-top:clamp(6px,1vw,9px) !important;
  font-size:clamp(10px,1vw,14px) !important;
}

.login-affiliation{
  margin-top:5px !important;
  font-size:clamp(9px,.9vw,12px) !important;
}


.login-transition{
  margin-top:clamp(5px,1vw,8px);
  font-size:clamp(9px,.95vw,13px);
}

.login-panel{
  position:relative;
  width:100% !important;
  min-width:0;
  min-height:100dvh;
  height:100%;
  padding:clamp(18px,4vw,55px);
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  overflow:auto;
}

.login-card{
  width:min(520px,100%);
  max-width:100%;
  max-height:calc(100dvh - 40px);
  overflow:auto;
  padding:clamp(22px,3vw,38px);
  border-radius:clamp(14px,1.4vw,20px);
}

/* ---------- Desktop: strict 50 / 50 ---------- */

@media (min-width:821px){

  .login-page{
    width:100% !important;
    height:100dvh !important;
    min-height:100dvh !important;
    grid-template-columns:50% 50% !important;
    grid-template-rows:100% !important;
    overflow:hidden !important;
  }

  .login-brand,
  .login-panel{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }

  .login-brand{
    height:100dvh !important;
    min-height:100dvh !important;
    padding:clamp(18px,3vw,55px) !important;
  }

  .login-brand-image{
    width:100% !important;
    height:100% !important;
    inset:0 !important;
    object-fit:cover !important;
  }

  .login-panel{
    height:100dvh !important;
    min-height:100dvh !important;
    padding:clamp(18px,4vw,70px) !important;
  }

  .login-card{
    width:min(520px,88%) !important;
    max-height:calc(100dvh - 40px) !important;
  }

  .login-brand-content{
    transform:none !important;
  }
}

/* ---------- Medium screens / tablets ---------- */

@media (min-width:601px) and (max-width:820px){

  .login-page{
    width:100%;
    height:auto;
    min-height:100dvh;
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:minmax(300px,48dvh) auto;
    overflow-y:auto;
    overflow-x:hidden;
  }

  .login-brand{
    width:100%;
    height:48dvh;
    min-height:300px;
    max-height:none;
    padding:20px;
  }

  .login-brand-image{
    width:100% !important;
    height:100% !important;
    inset:0 !important;
    object-fit:cover !important;
  }

  .login-brand-content{
    width:min(90%,560px);
    padding:18px;
    transform:none !important;
  }

  .login-brand-logo{
    width:clamp(85px,13vw,120px);
    height:clamp(85px,13vw,120px);
    max-width:none;
  }

  .login-panel{
    width:100% !important;
    height:auto;
    min-height:auto;
    padding:clamp(25px,5vw,45px) clamp(18px,6vw,60px) 45px;
    overflow:visible;
  }

  .login-card{
    width:min(100%,520px);
    max-height:none;
    overflow:visible;
  }
}

/* ---------- Mobile portrait ---------- */

@media (max-width:600px){

  .login-page{
    width:100%;
    height:auto;
    min-height:100dvh;
    display:flex;
    flex-direction:column;
    overflow-x:hidden;
    overflow-y:visible;
  }

  .login-brand{
    width:100%;
    height:clamp(260px,72vw,390px);
    min-height:260px;
    max-height:390px;
    flex:none;
    padding:12px;
  }

  .login-brand-image{
    position:absolute;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    object-fit:cover !important;
    object-position:center center !important;
  }

  .login-brand-content{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    padding:15px clamp(10px,5vw,25px);
    transform:none !important;
  }

  .login-brand-logo{
    width:clamp(64px,20vw,100px);
    height:clamp(64px,20vw,100px);
    max-width:none;
    max-height:none;
    margin-bottom:clamp(7px,2vw,13px);
  }

  .login-brand h1{
    font-size:clamp(22px,7vw,31px);
    line-height:1.05;
  }

  .login-brand h2{
    font-size:clamp(15px,4.5vw,21px);
    line-height:1.15;
  }

  .login-location{
    font-size:clamp(9px,2.8vw,12px) !important;
  }

  .login-affiliation{
    font-size:clamp(8px,2.4vw,10px) !important;
  }

  .login-transition{
    font-size:clamp(8px,2.5vw,11px);
  }

  .login-panel{
    width:100% !important;
    height:auto;
    min-height:auto;
    padding:clamp(15px,5vw,28px) clamp(10px,4vw,20px) 30px;
    overflow:visible;
  }

  .login-card{
    width:100%;
    max-width:520px;
    max-height:none;
    overflow:visible;
    padding:clamp(18px,5vw,26px) clamp(15px,5vw,22px);
    border-radius:clamp(12px,3vw,16px);
  }

  .login-card h1{
    font-size:clamp(24px,7vw,30px);
  }

  .login-card .subtitle{
    font-size:clamp(11px,3.2vw,13px);
  }

  .login-card .field input{
    min-height:clamp(42px,12vw,47px);
  }

  .login-submit{
    min-height:clamp(43px,12vw,48px);
    font-size:clamp(13px,3.8vw,15px);
  }
}

/* ---------- Very small phones ---------- */

@media (max-width:360px){

  .login-brand{
    height:clamp(245px,76vw,290px);
    min-height:245px;
    max-height:290px;
  }

  .login-brand-logo{
    width:64px;
    height:64px;
  }

  .login-brand h1{
    font-size:22px;
  }

  .login-brand h2{
    font-size:15px;
  }

  .login-card{
    padding:18px 14px;
  }
}

/* ---------- Landscape phones ---------- */

@media (max-width:820px) and (orientation:landscape){

  .login-page{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-rows:100dvh;
    height:100dvh;
    min-height:100dvh;
    overflow:hidden;
  }

  .login-brand{
    width:100%;
    height:100dvh;
    min-height:100dvh;
    max-height:none;
    padding:10px;
  }

  .login-brand-image{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }

  .login-brand-content{
    width:90%;
    padding:8px;
    transform:none !important;
  }

  .login-brand-logo{
    width:clamp(55px,13vh,85px);
    height:clamp(55px,13vh,85px);
    margin-bottom:6px;
  }

  .login-brand h1{
    font-size:clamp(20px,5vh,27px);
  }

  .login-brand h2{
    font-size:clamp(14px,3.5vh,18px);
  }

  .login-location{
    font-size:clamp(8px,2vh,10px) !important;
  }

  .login-transition{
    font-size:clamp(7px,1.8vh,9px);
  }

  .login-panel{
    width:100% !important;
    height:100dvh;
    min-height:100dvh;
    padding:12px clamp(12px,4vw,40px);
    overflow-y:auto;
  }

  .login-card{
    width:min(100%,520px);
    max-height:calc(100dvh - 24px);
    overflow-y:auto;
    padding:clamp(15px,3vh,24px);
  }

  .login-card h1{
    font-size:clamp(22px,5vh,29px);
  }

  .login-card .subtitle{
    font-size:clamp(10px,2vh,12px);
    margin-bottom:10px;
  }

  .login-card .field{
    margin-bottom:8px;
  }

  .login-card .field input{
    min-height:38px;
    padding:8px 10px;
  }

  .login-submit{
    min-height:40px;
  }

  .login-info{
    margin-top:8px;
    padding:8px;
    font-size:9px;
  }
}

/* ===== MODERN PARENT PORTAL LOGIN — FINAL OVERRIDES ===== */
.login-modern{--lg:#006b52;--lgdark:#004c3a;--gold:#d4aa32;width:100%;min-height:100dvh;height:100dvh;display:grid;grid-template-columns:48% 52%;overflow:hidden;background:#f8fbf9}
.login-modern .login-brand{position:relative;width:100%;height:100%;min-height:100dvh;padding:0;display:flex;align-items:center;justify-content:center;overflow:hidden;isolation:isolate;background:#003f30}
.login-modern .login-brand-image{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center;filter:saturate(.96) contrast(1.02);z-index:0}
.login-modern .login-brand::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(0,47,36,.14),rgba(0,30,23,.64)),linear-gradient(90deg,rgba(0,48,36,.18),rgba(0,48,36,.03) 62%,rgba(0,35,27,.22))}
.login-modern .login-brand::after{content:"";position:absolute;left:0;right:0;bottom:0;height:34%;z-index:2;background:linear-gradient(180deg,transparent,rgba(0,35,27,.65));pointer-events:none}
.login-modern .login-brand-overlay{position:absolute;inset:0;z-index:2;background:radial-gradient(circle at 75% 18%,rgba(255,255,255,.2),transparent 34%);pointer-events:none}
.login-modern .login-brand-content{position:relative;z-index:4;width:min(88%,650px);padding:clamp(28px,4vw,58px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;color:#fff}
.login-modern .login-logo-wrap{width:88px;height:88px;border-radius:24px;background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.9);box-shadow:0 16px 35px rgba(0,0,0,.2);display:grid;place-items:center}
.login-modern .login-brand-logo{width:68px;height:68px;max-width:none;margin:0;object-fit:contain;filter:none}
.login-modern .login-school-main{font:700 clamp(38px,4.1vw,66px)/.96 Georgia,serif;letter-spacing:.01em;text-shadow:0 2px 14px rgba(0,0,0,.28)}
.login-modern .login-school-sub{margin-top:8px;font:700 clamp(21px,2.1vw,32px)/1.05 Georgia,serif;color:#f0c958;letter-spacing:.03em}
.login-modern .login-location{margin:13px 0 0!important;color:rgba(255,255,255,.92)!important;font-size:clamp(12px,1vw,15px)!important;font-weight:700;letter-spacing:.13em}
.login-modern .login-brand-rule{position:relative;width:170px;height:1px;margin:27px 0 15px;background:rgba(240,201,88,.78)}
.login-modern .login-brand-rule span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:0 8px;color:#f0c958;background:rgba(0,57,43,.48);font-size:9px}
.login-modern .login-tagline{margin:0;color:rgba(255,255,255,.9);font-size:clamp(13px,1.1vw,17px);letter-spacing:.03em;font-style:italic}
.login-modern .login-feature-grid{width:min(100%,610px);margin-top:38px;padding:13px;display:grid;grid-template-columns:repeat(4,1fr);border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(0,58,44,.58);box-shadow:0 18px 42px rgba(0,0,0,.16);backdrop-filter:blur(12px)}
.login-modern .login-feature{min-width:0;padding:12px 13px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;border-right:1px solid rgba(255,255,255,.15)}
.login-modern .login-feature:last-child{border-right:0}.login-modern .login-feature-icon{width:32px;height:32px;border:1px solid rgba(240,201,88,.62);border-radius:50%;display:grid;place-items:center;color:#f0c958;font-size:14px}.login-modern .login-feature b{display:block;color:#fff;font-size:11px}.login-modern .login-feature span{display:block;margin-top:4px;color:rgba(255,255,255,.7);font-size:9px;line-height:1.25}
.login-modern .login-panel{position:relative;width:100%!important;height:100%;min-height:100dvh;padding:clamp(22px,5vw,70px);display:flex;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(circle at 95% 7%,rgba(0,107,82,.1),transparent 28%),radial-gradient(circle at 4% 95%,rgba(212,170,50,.07),transparent 24%),#f8fbf9}
.login-modern .login-panel-decoration{position:absolute;border:1px solid rgba(0,107,82,.09);border-radius:50%;pointer-events:none}.login-modern .login-panel-decoration-one{width:260px;height:260px;right:-145px;top:-125px}.login-modern .login-panel-decoration-two{width:190px;height:190px;left:-125px;bottom:-100px}
.login-modern .login-card{position:relative;z-index:2;width:min(520px,100%);max-height:calc(100dvh - 44px);overflow:auto;padding:clamp(28px,3.3vw,46px);border:1px solid rgba(210,224,217,.88);border-radius:28px;background:rgba(255,255,255,.95);box-shadow:0 25px 65px rgba(0,64,47,.11),0 4px 14px rgba(0,64,47,.05);backdrop-filter:blur(16px)}
.login-modern .login-portal-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid #dcebe4;border-radius:999px;background:#f2f8f5;color:#006b52;font-size:11px;font-weight:850;letter-spacing:.12em}.login-modern .login-card-heading{margin-top:24px}.login-modern .login-card-heading h1{margin:0;color:#18241f;font:700 clamp(32px,3vw,43px)/1.05 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.035em}.login-modern .login-card-heading p{max-width:440px;margin:13px 0 0;color:#74817c;font-size:14px;line-height:1.65}
.login-modern .login-field{margin-top:24px;margin-bottom:0}.login-modern .login-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.login-modern .login-field label{margin:0;color:#24322c;font-size:13px;font-weight:800}.login-modern .login-show-password{border:0;background:transparent;color:#71807a;padding:2px 0;font-size:11px;font-weight:700}.login-modern .login-input-wrap{position:relative}.login-modern .login-input-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#7b8983;font-size:15px;pointer-events:none}.login-modern .login-field input{width:100%;min-height:52px;padding:0 45px;border:1px solid #d7e2dd;border-radius:13px;background:#fff;color:#1d2b25;font-size:14px;outline:none;transition:.18s}.login-modern .login-field input:focus{border-color:#14916f;background:#fbfefd;box-shadow:0 0 0 4px rgba(20,145,111,.09)}
.login-modern .login-submit{width:100%;min-height:55px;margin-top:27px;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:28px;background:linear-gradient(135deg,#006b52,#00845f);box-shadow:0 10px 24px rgba(0,107,82,.18);font-size:15px}.login-modern .login-submit:hover{background:linear-gradient(135deg,#005b45,#007453);transform:translateY(-1px)}.login-modern .login-submit-arrow{font-size:21px;font-weight:400}
.login-modern .login-help-divider{height:25px;margin:23px 0 10px;display:flex;align-items:center;justify-content:center;color:#7c8984;font-size:11px}.login-modern .login-help-divider:before,.login-modern .login-help-divider:after{content:"";height:1px;background:#e6ece9;flex:1}.login-modern .login-help-divider span{padding:0 13px;background:#fff}.login-modern .login-help-card{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid #e0ece6;border-radius:13px;background:#f1f8f5}.login-modern .login-help-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#dff0e9;color:#006b52;font-size:16px}.login-modern .login-help-card b,.login-modern .login-help-card span{display:block}.login-modern .login-help-card b{color:#3b4b45;font-size:11px}.login-modern .login-help-card span{margin-top:3px;color:#72807a;font-size:10px;line-height:1.4}.login-modern .login-security{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:21px;color:#82908a;font-size:10px}.login-modern .login-security span:first-child{width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:#e3f3ec;color:#087b5b;font-weight:900}.login-modern .login-security i{width:1px;height:12px;background:#dbe4df}.login-modern .login-card .footer{padding:18px 0 0;color:#97a29e;font-size:10px}.login-modern #loginError{margin-top:17px}
.login-modern .login-error{border:1px solid #f1cccc;background:#fff5f5;color:#a32424;padding:11px 13px;border-radius:10px;font-size:12px}
@media(max-width:1100px){.login-modern{grid-template-columns:46% 54%}.login-modern .login-feature-grid{grid-template-columns:1fr 1fr}.login-modern .login-feature:nth-child(2){border-right:0}.login-modern .login-feature:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.15)}}
@media(max-width:820px){.login-modern{height:auto;min-height:100dvh;grid-template-columns:1fr;grid-template-rows:minmax(420px,52dvh) auto;overflow:visible}.login-modern .login-brand{min-height:420px;height:52dvh}.login-modern .login-panel{min-height:auto;height:auto;padding:34px 20px 42px;overflow:visible}.login-modern .login-card{max-height:none;overflow:visible}}
@media(max-width:600px){.login-modern{grid-template-rows:360px auto}.login-modern .login-brand{min-height:360px;height:360px}.login-modern .login-brand-content{width:94%;padding:20px}.login-modern .login-logo-wrap{width:66px;height:66px;border-radius:18px}.login-modern .login-brand-logo{width:50px;height:50px}.login-modern .login-school-main{font-size:31px}.login-modern .login-school-sub{font-size:17px}.login-modern .login-location{font-size:10px!important}.login-modern .login-brand-rule{width:125px;margin:17px 0 10px}.login-modern .login-tagline{font-size:11px}.login-modern .login-feature-grid{margin-top:20px;padding:7px;border-radius:13px}.login-modern .login-feature{padding:8px 5px;gap:5px}.login-modern .login-feature-icon{width:25px;height:25px;font-size:11px}.login-modern .login-feature b{font-size:8px}.login-modern .login-feature span{display:none}.login-modern .login-panel{padding:20px 12px 28px}.login-modern .login-card{padding:25px 19px;border-radius:21px}.login-modern .login-card-heading{margin-top:19px}.login-modern .login-card-heading h1{font-size:30px}.login-modern .login-card-heading p{font-size:12px}.login-modern .login-field{margin-top:20px}.login-modern .login-field input{min-height:49px}}

/* =========================================================
   FINAL FIX — REMOVE THE HORIZONTAL BRAND SEAM
   The older stylesheet contains multiple .login-brand
   pseudo-elements. They can create a visible horizontal
   boundary over the campus image. Disable them completely
   for the modern login.
   ========================================================= */

.login-modern .login-brand{
  position:relative !important;
  overflow:hidden !important;
  background:#003f30 !important;
}

.login-modern .login-brand::before,
.login-modern .login-brand::after{
  content:none !important;
  display:none !important;
  background:none !important;
}

.login-modern .login-brand-overlay{
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  pointer-events:none !important;
  background:
    linear-gradient(
      180deg,
      rgba(0,45,35,.06) 0%,
      rgba(0,45,35,.12) 55%,
      rgba(0,38,29,.42) 100%
    ) !important;
}

.login-modern .login-brand-image{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:center center !important;
  filter:saturate(.98) contrast(1.02) !important;
}

.login-modern .login-brand-content{
  position:relative !important;
  z-index:3 !important;
}


/* ============================================================
   SJCS LOGIN — FINAL BRANDING PLACEMENT
   ------------------------------------------------------------
   IMPORTANT:
   - school-campus-login.jpg = clean campus photograph
   - school-logo.png = school logo
   - School name/location/tagline are HTML overlays
   - No branding is baked into the campus photograph
   - No feature boxes on the left
   ============================================================ */

.login-modern{
  width:100%;
  min-height:100dvh;
  height:100dvh;
  display:grid;
  grid-template-columns:54% 46%;
  overflow:hidden;
  background:#f8fbf9;
}

/* ---------------- LEFT CAMPUS PANEL ---------------- */

.login-modern .login-brand{
  position:relative !important;
  width:100% !important;
  height:100% !important;
  min-height:100dvh !important;
  padding:0 !important;
  margin:0 !important;
  display:block !important;
  overflow:hidden !important;
  isolation:isolate;
  background:#174d3e !important;
}

/* Clean school photograph */
.login-modern .login-brand-image{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center center !important;
  filter:none !important;
}

/* Soft darkening only — NOT a horizontal band */
.login-modern .login-brand-overlay{
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  pointer-events:none !important;
  background:
    linear-gradient(
      90deg,
      rgba(0,35,27,.42) 0%,
      rgba(0,35,27,.18) 48%,
      rgba(0,35,27,.03) 78%,
      rgba(0,35,27,.08) 100%
    ) !important;
}

/* Disable old pseudo-element bands */
.login-modern .login-brand::before,
.login-modern .login-brand::after{
  content:none !important;
  display:none !important;
  background:none !important;
}

/* ---------------- BRANDING POSITION ---------------- */

.login-modern .login-brand-content{
  position:absolute !important;
  z-index:4 !important;

  /* This is the key placement */
  left:10.5% !important;
  top:22% !important;

  width:auto !important;
  max-width:78% !important;
  padding:0 !important;
  margin:0 !important;

  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;

  text-align:left !important;
  color:#fff !important;
}

/* Logo */
.login-modern .login-logo-wrap{
  width:88px !important;
  height:88px !important;
  flex:none !important;

  display:grid !important;
  place-items:center !important;

  margin:0 0 14px 0 !important;
  padding:8px !important;

  border:1px solid rgba(255,255,255,.9) !important;
  border-radius:21px !important;
  background:rgba(255,255,255,.96) !important;
  box-shadow:0 12px 28px rgba(0,0,0,.18) !important;
}

.login-modern .login-brand-logo{
  width:68px !important;
  height:68px !important;
  max-width:none !important;
  margin:0 !important;
  object-fit:contain !important;
  filter:none !important;
}

/* ST. JOSEPH'S */
.login-modern .login-school-name{
  margin:0 !important;
  padding:0 !important;
}

.login-modern .login-school-main{
  margin:0 !important;
  padding:0 !important;

  color:#fff !important;
  font:
    700 clamp(34px,3.45vw,58px)/.96 Georgia,serif !important;

  letter-spacing:.005em !important;
  text-shadow:0 3px 15px rgba(0,0,0,.35) !important;
  white-space:nowrap;
}

/* CONVENT SCHOOL */
.login-modern .login-school-sub{
  margin:8px 0 0 !important;
  padding:0 !important;

  color:#f2c957 !important;
  font:
    700 clamp(20px,1.9vw,31px)/1.05 Georgia,serif !important;

  letter-spacing:.025em !important;
  text-shadow:0 2px 8px rgba(0,0,0,.28) !important;
  white-space:nowrap;
}

/* ROURKELA, ODISHA */
.login-modern .login-location{
  margin:13px 0 0 !important;
  padding:0 !important;

  color:rgba(255,255,255,.96) !important;
  font-size:clamp(11px,.95vw,15px) !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  letter-spacing:.13em !important;
  text-shadow:0 2px 8px rgba(0,0,0,.3) !important;
}

/* Gold divider */
.login-modern .login-brand-rule{
  position:relative !important;
  width:170px !important;
  height:1px !important;
  margin:24px 0 14px !important;
  background:rgba(240,201,88,.9) !important;
}

.login-modern .login-brand-rule span{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  transform:translate(-50%,-50%) !important;

  padding:0 8px !important;
  color:#f0c958 !important;
  background:rgba(0,48,36,.55) !important;
  font-size:8px !important;
}

/* Tagline */
.login-modern .login-tagline{
  margin:0 !important;
  padding:0 !important;

  color:rgba(255,255,255,.94) !important;
  font-size:clamp(12px,1vw,16px) !important;
  line-height:1.35 !important;
  letter-spacing:.025em !important;
  font-style:italic !important;
  text-shadow:0 2px 8px rgba(0,0,0,.35) !important;
}

/* We deliberately do not display the feature grid */
.login-modern .login-feature-grid{
  display:none !important;
}

/* ---------------- RIGHT LOGIN PANEL ---------------- */

.login-modern .login-panel{
  position:relative !important;
  width:100% !important;
  height:100% !important;
  min-height:100dvh !important;

  padding:clamp(24px,4vw,62px) !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  overflow:hidden !important;

  background:
    radial-gradient(circle at 94% 7%,rgba(0,107,82,.09),transparent 27%),
    radial-gradient(circle at 4% 94%,rgba(212,170,50,.06),transparent 24%),
    #f8fbf9 !important;
}

.login-modern .login-card{
  position:relative !important;
  z-index:5 !important;

  width:min(520px,100%) !important;
  max-height:calc(100dvh - 44px) !important;
  overflow:auto !important;

  padding:clamp(28px,3.1vw,45px) !important;

  border:1px solid #dce7e1 !important;
  border-radius:27px !important;

  background:rgba(255,255,255,.97) !important;

  box-shadow:
    0 25px 65px rgba(0,64,47,.11),
    0 4px 14px rgba(0,64,47,.05) !important;
}

/* ---------------- RESPONSIVE ---------------- */

@media(max-width:1100px){
  .login-modern{
    grid-template-columns:52% 48%;
  }

  .login-modern .login-brand-content{
    left:8% !important;
    top:20% !important;
  }

  .login-modern .login-school-main{
    font-size:clamp(30px,3.7vw,47px) !important;
  }

  .login-modern .login-school-sub{
    font-size:clamp(18px,2vw,25px) !important;
  }
}

@media(max-width:820px){
  .login-modern{
    height:auto !important;
    min-height:100dvh !important;
    grid-template-columns:1fr !important;
    grid-template-rows:430px auto !important;
    overflow:visible !important;
  }

  .login-modern .login-brand{
    height:430px !important;
    min-height:430px !important;
  }

  .login-modern .login-brand-content{
    left:8% !important;
    top:18% !important;
    max-width:84% !important;
  }

  .login-modern .login-panel{
    min-height:auto !important;
    height:auto !important;
    padding:34px 20px 42px !important;
    overflow:visible !important;
  }

  .login-modern .login-card{
    max-height:none !important;
    overflow:visible !important;
  }
}

@media(max-width:600px){
  .login-modern{
    grid-template-rows:330px auto !important;
  }

  .login-modern .login-brand{
    height:330px !important;
    min-height:330px !important;
  }

  .login-modern .login-brand-content{
    left:7% !important;
    top:14% !important;
    max-width:88% !important;
  }

  .login-modern .login-logo-wrap{
    width:62px !important;
    height:62px !important;
    padding:6px !important;
    border-radius:16px !important;
    margin-bottom:9px !important;
  }

  .login-modern .login-brand-logo{
    width:48px !important;
    height:48px !important;
  }

  .login-modern .login-school-main{
    font-size:clamp(25px,7.5vw,34px) !important;
  }

  .login-modern .login-school-sub{
    margin-top:5px !important;
    font-size:clamp(16px,4.8vw,22px) !important;
  }

  .login-modern .login-location{
    margin-top:8px !important;
    font-size:10px !important;
  }

  .login-modern .login-brand-rule{
    width:125px !important;
    margin:15px 0 9px !important;
  }

  .login-modern .login-tagline{
    font-size:11px !important;
  }

  .login-modern .login-panel{
    padding:20px 12px 30px !important;
  }

  .login-modern .login-card{
    padding:25px 19px !important;
    border-radius:21px !important;
  }
}

/* ============================================================
   FINAL POSITION ADJUSTMENT
   Move the complete school logo + text branding upward.
   ============================================================ */

.login-modern .login-brand-content{
  top:13% !important;
}

/* Keep the branding compact and balanced after moving upward. */
.login-modern .login-logo-wrap{
  margin-bottom:12px !important;
}

.login-modern .login-brand-rule{
  margin-top:20px !important;
  margin-bottom:12px !important;
}

/* Tablet */
@media(max-width:1100px){
  .login-modern .login-brand-content{
    top:12% !important;
  }
}

/* Mobile */
@media(max-width:820px){
  .login-modern .login-brand-content{
    top:11% !important;
  }
}

@media(max-width:600px){
  .login-modern .login-brand-content{
    top:9% !important;
  }
}


/* ============================================================
   SJCS PARENT PORTAL — FINAL LOGIN DESIGN
   ============================================================ */

.login-modern{
  width:100%; min-height:100dvh; height:100dvh;
  display:grid; grid-template-columns:54% 46%;
  overflow:hidden; background:#f7faf8;
}

.login-modern .login-brand{
  position:relative!important; width:100%!important; height:100%!important;
  min-height:100dvh!important; overflow:hidden!important;
  isolation:isolate; background:#064c3b!important;
}
.login-modern .login-brand-image{
  position:absolute!important; inset:0!important; z-index:0!important;
  width:100%!important; height:100%!important; display:block!important;
  object-fit:cover!important; object-position:center center!important;
  filter:none!important;
}
.login-modern .login-brand-overlay{
  position:absolute!important; inset:0!important; z-index:1!important;
  pointer-events:none!important;
  background:
    linear-gradient(90deg,rgba(0,31,24,.30),rgba(0,31,24,.10) 52%,rgba(0,31,24,.02)),
    linear-gradient(180deg,rgba(0,35,27,.02) 0%,rgba(0,35,27,.02) 57%,rgba(0,57,42,.72) 100%)!important;
}
.login-modern .login-brand::before,
.login-modern .login-brand::after{content:none!important;display:none!important;}

.login-modern .login-brand-content{
  position:absolute!important; z-index:4!important;
  left:9.5%!important; top:9.5%!important;
  max-width:78%!important; margin:0!important; padding:0!important;
  display:flex!important; flex-direction:column!important;
  align-items:flex-start!important; text-align:left!important;
}
.login-modern .login-logo-wrap{
  width:104px!important; height:104px!important;
  margin:0 0 13px!important; padding:0!important;
  display:block!important; border:0!important; border-radius:0!important;
  background:transparent!important; box-shadow:none!important;
}
.login-modern .login-brand-logo{
  width:104px!important; height:104px!important; margin:0!important;
  object-fit:contain!important;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.32))!important;
}
.login-modern .login-school-name{margin:0!important;padding:0!important;}
.login-modern .login-school-main{
  margin:0!important; padding:0!important; color:#fff!important;
  font:700 clamp(35px,3.3vw,57px)/.94 Georgia,serif!important;
  letter-spacing:.005em!important; white-space:nowrap!important;
  text-shadow:0 3px 14px rgba(0,0,0,.35)!important;
}
.login-modern .login-school-sub{
  margin:8px 0 0!important; padding:0!important; color:#f0c451!important;
  font:700 clamp(20px,1.85vw,31px)/1 Georgia,serif!important;
  letter-spacing:.02em!important; white-space:nowrap!important;
  text-shadow:0 2px 9px rgba(0,0,0,.3)!important;
}
.login-modern .login-location{
  margin:12px 0 0!important; padding:0!important; color:#fff!important;
  font-size:clamp(11px,.9vw,15px)!important; font-weight:800!important;
  letter-spacing:.13em!important; text-shadow:0 2px 8px rgba(0,0,0,.35)!important;
}
.login-modern .login-brand-rule{
  position:relative!important; width:180px!important; height:1px!important;
  margin:22px 0 13px!important; background:rgba(239,198,78,.95)!important;
}
.login-modern .login-brand-rule span{
  position:absolute!important; left:50%!important; top:50%!important;
  transform:translate(-50%,-50%)!important; padding:0 8px!important;
  color:#efc64f!important; background:rgba(0,48,36,.45)!important; font-size:8px!important;
}
.login-modern .login-tagline{
  margin:0!important; padding:0!important; color:rgba(255,255,255,.95)!important;
  font-size:clamp(12px,1vw,16px)!important; line-height:1.35!important;
  font-style:italic!important; letter-spacing:.01em!important;
  text-shadow:0 2px 9px rgba(0,0,0,.38)!important;
}

.login-modern .login-feature-grid{
  position:absolute!important; z-index:4!important;
  left:7%!important; right:7%!important; bottom:4.5%!important;
  min-height:155px!important; display:grid!important;
  grid-template-columns:repeat(4,1fr)!important;
  padding:15px 7px 11px!important; border-radius:22px!important;
  background:rgba(0,72,55,.68)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 14px 35px rgba(0,31,24,.20)!important;
  backdrop-filter:blur(7px)!important;
}
.login-modern .login-feature{
  position:relative!important; min-width:0!important; padding:2px 14px 4px!important;
  display:flex!important; flex-direction:column!important; align-items:center!important;
  text-align:center!important;
}
.login-modern .login-feature:not(:last-child)::after{
  content:""!important; position:absolute!important; right:0!important; top:9%!important;
  width:1px!important; height:82%!important; background:rgba(255,255,255,.16)!important;
}
.login-modern .login-feature-icon{
  width:49px!important; height:49px!important; display:grid!important;
  place-items:center!important; margin-bottom:9px!important; border-radius:50%!important;
  background:rgba(0,107,82,.72)!important; color:#efc64f!important;
  border:1px solid rgba(239,198,79,.10)!important; font-size:27px!important;
}
.login-modern .login-feature-title{
  color:#fff!important; font-size:12px!important; font-weight:800!important;
  line-height:1.25!important; white-space:nowrap!important;
}
.login-modern .login-feature-text{
  margin-top:7px!important; color:rgba(255,255,255,.88)!important;
  font-size:10px!important; line-height:1.55!important;
}

.login-modern .login-panel{
  position:relative!important; width:100%!important; height:100%!important;
  min-height:100dvh!important; padding:clamp(22px,3.5vw,58px)!important;
  display:flex!important; align-items:center!important; justify-content:center!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 94% 5%,rgba(0,107,82,.09),transparent 25%),
    radial-gradient(circle at 5% 94%,rgba(212,170,50,.07),transparent 24%),
    #f7faf8!important;
}
.login-modern .login-card{
  position:relative!important; z-index:5!important; width:min(520px,100%)!important;
  max-height:calc(100dvh - 40px)!important; overflow:auto!important;
  padding:clamp(28px,3.2vw,43px)!important;
  border:1px solid #dce7e1!important; border-radius:27px!important;
  background:rgba(255,255,255,.98)!important;
  box-shadow:0 26px 70px rgba(0,64,47,.12),0 5px 18px rgba(0,64,47,.05)!important;
}
.login-modern .login-portal-pill{
  display:inline-flex!important; align-items:center!important; gap:8px!important;
  padding:8px 14px!important; border:1px solid #dcebe4!important;
  border-radius:999px!important; background:#f1f8f5!important;
  color:#006b52!important; font-size:11px!important; font-weight:850!important;
  letter-spacing:.10em!important;
}
.login-modern .login-card-heading{margin-top:24px!important;}
.login-modern .login-card-heading h1{
  margin:0!important; color:#17231f!important;
  font:700 clamp(33px,2.7vw,44px)/1.06 Inter,ui-sans-serif,system-ui,sans-serif!important;
  letter-spacing:-.035em!important;
}
.login-modern .login-card-heading p{
  margin:12px 0 0!important; color:#74817c!important; font-size:14px!important; line-height:1.6!important;
}
.login-modern .login-field{margin-top:23px!important;margin-bottom:0!important;}
.login-modern .login-field label{margin:0 0 8px!important;color:#26342e!important;font-size:13px!important;font-weight:800!important;}
.login-modern .login-label-row{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:8px!important;}
.login-modern .login-show-password{border:0!important;background:transparent!important;color:#74817b!important;padding:0!important;font-size:11px!important;font-weight:700!important;}
.login-modern .login-input-wrap{position:relative!important;}
.login-modern .login-input-icon{position:absolute!important;left:16px!important;top:50%!important;transform:translateY(-50%)!important;color:#74827c!important;font-size:15px!important;pointer-events:none!important;}
.login-modern .login-field input{
  width:100%!important; min-height:52px!important; padding:0 45px!important;
  border:1px solid #d8e3de!important; border-radius:12px!important;
  background:#fff!important;color:#1d2b25!important;font-size:14px!important;outline:none!important;
}
.login-modern .login-field input:focus{border-color:#078762!important;box-shadow:0 0 0 4px rgba(0,135,98,.08)!important;}
.login-modern .login-options{margin-top:12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;}
.login-modern .login-remember{display:flex!important;align-items:center!important;gap:8px!important;color:#5f6d67!important;font-size:12px!important;}
.login-modern .login-remember input{width:17px!important;height:17px!important;accent-color:#007856!important;}
.login-modern .login-forgot{border:0!important;background:transparent!important;color:#087655!important;font-size:12px!important;font-weight:700!important;}
.login-modern .login-submit{
  width:100%!important;min-height:55px!important;margin-top:22px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:25px!important;
  border-radius:12px!important;background:linear-gradient(135deg,#006c52,#52b846)!important;
  box-shadow:0 10px 25px rgba(0,107,82,.20)!important;font-size:15px!important;
}
.login-modern .login-submit:hover{transform:translateY(-1px)!important;}
.login-modern .login-submit-arrow{font-size:21px!important;}
.login-modern .login-help-divider{
  height:25px!important;margin:21px 0 10px!important;display:flex!important;
  align-items:center!important;justify-content:center!important;color:#7b8782!important;font-size:11px!important;
}
.login-modern .login-help-divider::before,.login-modern .login-help-divider::after{
  content:""!important;height:1px!important;flex:1!important;background:#e6ece9!important;
}
.login-modern .login-help-divider span{padding:0 13px!important;background:#fff!important;}
.login-modern .login-help-card{
  display:flex!important;align-items:center!important;gap:12px!important;padding:13px 15px!important;
  border:1px solid #e0ebe6!important;border-radius:12px!important;background:#f2f8f5!important;
}
.login-modern .login-help-icon{
  width:38px!important;height:38px!important;flex:0 0 38px!important;display:grid!important;
  place-items:center!important;border-radius:50%!important;background:#dff0e9!important;color:#006b52!important;
}
.login-modern .login-help-card b,.login-modern .login-help-card span{display:block!important;}
.login-modern .login-help-card b{color:#3c4b45!important;font-size:11px!important;}
.login-modern .login-help-card span{margin-top:3px!important;color:#74817b!important;font-size:10px!important;line-height:1.4!important;}
.login-modern .login-security{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin-top:20px!important;color:#7e8b85!important;font-size:10px!important;}
.login-modern .login-security span:first-child{width:18px!important;height:18px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#e2f2eb!important;color:#08785a!important;font-weight:900!important;}
.login-modern .login-security i{width:1px!important;height:12px!important;background:#dce5e1!important;}
.login-modern .login-card .footer{padding:18px 0 0!important;color:#929e99!important;font-size:10px!important;text-align:center!important;}

@media(max-width:1100px){
  .login-modern{grid-template-columns:52% 48%;}
  .login-modern .login-brand-content{left:7.5%!important;top:8%!important;}
  .login-modern .login-feature-grid{left:4%!important;right:4%!important;}
  .login-modern .login-feature-title{font-size:10px!important;}
}
@media(max-width:820px){
  .login-modern{height:auto!important;min-height:100dvh!important;grid-template-columns:1fr!important;grid-template-rows:430px auto!important;overflow:visible!important;}
  .login-modern .login-brand{height:430px!important;min-height:430px!important;}
  .login-modern .login-brand-content{left:7%!important;top:8%!important;}
  .login-modern .login-feature-grid{left:3%!important;right:3%!important;bottom:4%!important;}
  .login-modern .login-panel{min-height:auto!important;height:auto!important;padding:30px 18px 40px!important;}
  .login-modern .login-card{max-height:none!important;}
}
@media(max-width:600px){
  .login-modern{grid-template-rows:390px auto!important;}
  .login-modern .login-brand{height:390px!important;min-height:390px!important;}
  .login-modern .login-brand-content{left:6%!important;top:6%!important;}
  .login-modern .login-logo-wrap,.login-modern .login-brand-logo{width:72px!important;height:72px!important;}
  .login-modern .login-school-main{font-size:29px!important;}
  .login-modern .login-school-sub{font-size:18px!important;}
  .login-modern .login-location{font-size:9px!important;}
  .login-modern .login-brand-rule{width:130px!important;margin:13px 0 8px!important;}
  .login-modern .login-tagline{font-size:10px!important;}
  .login-modern .login-feature-grid{left:2.5%!important;right:2.5%!important;bottom:3%!important;min-height:110px!important;padding:8px 2px!important;border-radius:15px!important;}
  .login-modern .login-feature{padding:0 5px!important;}
  .login-modern .login-feature-icon{width:33px!important;height:33px!important;margin-bottom:5px!important;font-size:18px!important;}
  .login-modern .login-feature-title{font-size:8px!important;}
  .login-modern .login-feature-text{margin-top:3px!important;font-size:7px!important;}
  .login-modern .login-card{padding:24px 18px!important;border-radius:20px!important;}
  .login-desktop-break{display:none!important;}
}


/* ============================================================
   SJCS LOGIN — REFERENCE IMAGE 2 STYLE
   Final visual override
   ============================================================ */

/* Overall proportions */
.login-modern{
  grid-template-columns:50% 50%!important;
  background:#f6faf8!important;
}

/* ---------------- LEFT: DARKER CINEMATIC CAMPUS ---------------- */

.login-modern .login-brand{
  background:#003f30!important;
}

.login-modern .login-brand-image{
  object-position:center center!important;
  filter:saturate(.94) contrast(1.03) brightness(.88)!important;
}

.login-modern .login-brand-overlay{
  background:
    linear-gradient(90deg,rgba(0,27,20,.46) 0%,rgba(0,27,20,.17) 55%,rgba(0,27,20,.05) 100%),
    linear-gradient(180deg,rgba(0,28,21,.12) 0%,rgba(0,28,21,.02) 43%,rgba(0,52,39,.90) 100%)!important;
}

/* Branding position and hierarchy */
.login-modern .login-brand-content{
  left:9.2%!important;
  top:9.2%!important;
  max-width:82%!important;
}

.login-modern .login-logo-wrap{
  width:112px!important;
  height:112px!important;
  margin:0 0 18px!important;
}

.login-modern .login-brand-logo{
  width:112px!important;
  height:112px!important;
  filter:drop-shadow(0 4px 9px rgba(0,0,0,.38))!important;
}

.login-modern .login-school-main{
  font:700 clamp(40px,3.45vw,60px)/.94 Georgia,serif!important;
  text-shadow:0 3px 14px rgba(0,0,0,.48)!important;
}

.login-modern .login-school-sub{
  margin-top:8px!important;
  font:700 clamp(22px,2.05vw,34px)/1 Georgia,serif!important;
  color:#f4c85b!important;
}

.login-modern .login-location{
  margin-top:13px!important;
  font-size:clamp(12px,1vw,16px)!important;
  letter-spacing:.12em!important;
}

.login-modern .login-brand-rule{
  width:280px!important;
  margin:23px 0 15px!important;
  background:rgba(240,196,78,.95)!important;
}

.login-modern .login-brand-rule span{
  background:rgba(0,52,39,.60)!important;
  color:#f0c451!important;
}

.login-modern .login-tagline{
  font-size:clamp(13px,1.05vw,17px)!important;
  text-shadow:0 2px 8px rgba(0,0,0,.45)!important;
}

/* ---------------- BOTTOM FEATURES: NO BOX ---------------- */

.login-modern .login-feature-grid{
  left:7%!important;
  right:7%!important;
  bottom:4.5%!important;

  min-height:158px!important;
  padding:4px 0 0!important;

  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}

.login-modern .login-feature{
  padding:0 22px 6px!important;
}

.login-modern .login-feature:not(:last-child)::after{
  top:2%!important;
  height:96%!important;
  background:rgba(255,255,255,.22)!important;
}

.login-modern .login-feature-icon{
  width:58px!important;
  height:58px!important;
  margin-bottom:13px!important;
  border-radius:50%!important;

  background:rgba(0,87,66,.78)!important;
  border:1px solid rgba(224,190,67,.16)!important;
  color:#f1c64f!important;

  box-shadow:0 6px 20px rgba(0,0,0,.14)!important;
}

.login-modern .login-feature-icon svg{
  width:34px!important;
  height:34px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.login-modern .login-feature-title{
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:800!important;
  letter-spacing:-.01em!important;
}

.login-modern .login-feature-text{
  margin-top:9px!important;
  color:rgba(255,255,255,.91)!important;
  font-size:12px!important;
  line-height:1.55!important;
}

/* ---------------- RIGHT: REFERENCE CARD ---------------- */

.login-modern .login-panel{
  padding:6.2% 6.5%!important;
  background:
    radial-gradient(circle at 98% 3%,rgba(0,107,82,.075),transparent 25%),
    radial-gradient(circle at 4% 96%,rgba(212,170,50,.055),transparent 24%),
    #f7faf8!important;
}

.login-modern .login-card{
  width:min(500px,100%)!important;
  max-height:91dvh!important;
  padding:42px 34px 30px!important;
  border:1px solid #dce6e1!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.985)!important;

  box-shadow:
    0 20px 42px rgba(0,65,49,.10),
    0 3px 10px rgba(0,65,49,.045)!important;
}

/* Portal pill */
.login-modern .login-portal-pill{
  padding:8px 15px!important;
  background:#edf6f2!important;
  border-color:#dceae4!important;
  color:#176b56!important;
  font-size:12px!important;
  letter-spacing:.06em!important;
}

/* Welcome heading: serif like reference */
.login-modern .login-card-heading{
  margin-top:28px!important;
}

.login-modern .login-card-heading h1{
  color:#1a2420!important;
  font:700 clamp(34px,2.7vw,47px)/1.04 Georgia,serif!important;
  letter-spacing:-.025em!important;
}

.login-modern .login-welcome-green{
  color:#006b52!important;
}

.login-modern .login-card-heading p{
  margin-top:15px!important;
  color:#727f79!important;
  font-size:14px!important;
  line-height:1.65!important;
}

/* Inputs closer to reference */
.login-modern .login-field{
  margin-top:25px!important;
}

.login-modern .login-field label{
  font-size:14px!important;
  font-weight:800!important;
}

.login-modern .login-field input{
  min-height:54px!important;
  border-radius:11px!important;
  border-color:#d7e1dd!important;
  font-size:14px!important;
}

.login-modern .login-input-icon{
  font-size:16px!important;
}

.login-modern .login-show-password{
  font-size:12px!important;
}

/* Remember/Forgot row */
.login-modern .login-options{
  margin-top:12px!important;
}

.login-modern .login-remember{
  font-size:12px!important;
}

.login-modern .login-forgot{
  font-size:12px!important;
}

/* Green button */
.login-modern .login-submit{
  min-height:62px!important;
  margin-top:20px!important;
  border-radius:10px!important;
  background:linear-gradient(100deg,#007455 0%,#4fb847 100%)!important;
  box-shadow:0 12px 25px rgba(0,111,82,.16)!important;
  font-size:16px!important;
}

.login-modern .login-submit-arrow{
  font-size:22px!important;
}

/* Help area */
.login-modern .login-help-divider{
  margin-top:23px!important;
}

.login-modern .login-help-card{
  padding:14px 15px!important;
  border-radius:11px!important;
  background:#f1f7f4!important;
}

.login-modern .login-help-icon{
  width:40px!important;
  height:40px!important;
}

.login-modern .login-security{
  margin-top:22px!important;
  font-size:11px!important;
}

.login-modern .login-card .footer{
  padding-top:18px!important;
  font-size:10px!important;
}

/* ---------------- RESPONSIVE ---------------- */

@media(max-width:1250px){
  .login-modern .login-school-main{
    font-size:clamp(36px,3.4vw,52px)!important;
  }

  .login-modern .login-school-sub{
    font-size:clamp(20px,1.95vw,30px)!important;
  }

  .login-modern .login-feature{
    padding-left:14px!important;
    padding-right:14px!important;
  }

  .login-modern .login-feature-title{
    font-size:12px!important;
  }
}

@media(max-width:820px){
  .login-modern{
    grid-template-columns:1fr!important;
    grid-template-rows:500px auto!important;
  }

  .login-modern .login-brand{
    height:500px!important;
    min-height:500px!important;
  }

  .login-modern .login-brand-content{
    left:7%!important;
    top:7%!important;
  }

  .login-modern .login-feature-grid{
    left:4%!important;
    right:4%!important;
    bottom:5%!important;
  }

  .login-modern .login-panel{
    padding:30px 18px 40px!important;
    min-height:auto!important;
  }

  .login-modern .login-card{
    max-height:none!important;
  }
}

@media(max-width:600px){
  .login-modern{
    grid-template-rows:430px auto!important;
  }

  .login-modern .login-brand{
    height:430px!important;
    min-height:430px!important;
  }

  .login-modern .login-brand-content{
    left:6%!important;
    top:6%!important;
  }

  .login-modern .login-logo-wrap,
  .login-modern .login-brand-logo{
    width:78px!important;
    height:78px!important;
  }

  .login-modern .login-school-main{
    font-size:30px!important;
  }

  .login-modern .login-school-sub{
    font-size:18px!important;
  }

  .login-modern .login-location{
    font-size:9px!important;
  }

  .login-modern .login-brand-rule{
    width:150px!important;
    margin:14px 0 9px!important;
  }

  .login-modern .login-tagline{
    font-size:10px!important;
  }

  .login-modern .login-feature-grid{
    left:2%!important;
    right:2%!important;
    bottom:3%!important;
    min-height:116px!important;
  }

  .login-modern .login-feature{
    padding:0 4px!important;
  }

  .login-modern .login-feature-icon{
    width:38px!important;
    height:38px!important;
    margin-bottom:6px!important;
  }

  .login-modern .login-feature-icon svg{
    width:23px!important;
    height:23px!important;
  }

  .login-modern .login-feature-title{
    font-size:8px!important;
  }

  .login-modern .login-feature-text{
    margin-top:3px!important;
    font-size:7px!important;
  }

  .login-modern .login-card{
    padding:28px 20px 24px!important;
    border-radius:15px!important;
  }

  .login-modern .login-card-heading h1{
    font-size:34px!important;
  }
}

/* ============================================================
   FINAL FULL-PANEL CAMPUS IMAGE FIX
   ============================================================ */

html, body{
  width:100%!important;
  min-width:100%!important;
  margin:0!important;
  padding:0!important;
}

.login-modern{
  position:relative!important;
  width:100vw!important;
  max-width:none!important;
  min-width:100%!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:50% 50%!important;
  grid-template-rows:100%!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

/* LEFT: photograph fills the complete 50% viewport */
.login-modern .login-brand{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

.login-modern .login-brand-image{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:none!important;
}

/* Overlay also covers the entire photograph */
.login-modern .login-brand-overlay{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  z-index:1!important;
  pointer-events:none!important;
}

/* Keep all branding above the photograph */
.login-modern .login-brand-content{
  z-index:4!important;
}

.login-modern .login-feature-grid{
  z-index:5!important;
}

/* RIGHT: exactly the other 50% */
.login-modern .login-panel{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

.login-modern .login-card{
  box-sizing:border-box!important;
  max-width:100%!important;
}

/* Desktop */
@media(min-width:821px){
  .login-modern,
  .login-modern .login-brand,
  .login-modern .login-panel{
    height:100dvh!important;
    min-height:100dvh!important;
  }
}

/* Mobile */
@media(max-width:820px){
  .login-modern{
    width:100%!important;
    height:auto!important;
    min-height:100dvh!important;
    display:grid!important;
    grid-template-columns:100%!important;
    grid-template-rows:500px auto!important;
    overflow:visible!important;
  }

  .login-modern .login-brand{
    width:100%!important;
    height:500px!important;
    min-height:500px!important;
  }

  .login-modern .login-brand-image{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
  }

  .login-modern .login-panel{
    width:100%!important;
    height:auto!important;
    min-height:auto!important;
    overflow:visible!important;
  }
}

@media(max-width:600px){
  .login-modern{
    grid-template-rows:430px auto!important;
  }

  .login-modern .login-brand{
    height:430px!important;
    min-height:430px!important;
  }
}


/* ============================================================
   FINAL COMPOSITION — FULL-PAGE SCHOOL IMAGE
   The school photograph is the COMPLETE viewport background.
   The login card floats above it on the right.
   ============================================================ */

html,
body{
  width:100%!important;
  min-width:100%!important;
  height:100%!important;
  min-height:100%!important;
  margin:0!important;
  padding:0!important;
}

.login-modern{
  position:relative!important;
  display:block!important;
  width:100vw!important;
  height:100dvh!important;
  min-width:100%!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#003f30!important;
}

/* ============================================================
   SCHOOL IMAGE — FULL SCREEN
   ============================================================ */

.login-modern .login-brand{
  position:absolute!important;
  inset:0!important;
  z-index:1!important;

  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;

  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#003f30!important;
}

.login-modern .login-brand-image{
  position:absolute!important;
  inset:0!important;

  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;

  margin:0!important;
  padding:0!important;
  border:0!important;

  object-fit:cover!important;
  object-position:center center!important;
}

/* Dark cinematic treatment across the complete background */
.login-modern .login-brand-overlay{
  position:absolute!important;
  inset:0!important;
  z-index:2!important;

  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;

  background:
    linear-gradient(
      90deg,
      rgba(0,25,19,.20) 0%,
      rgba(0,25,19,.06) 45%,
      rgba(0,25,19,.16) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0,25,19,.04) 0%,
      rgba(0,25,19,.02) 54%,
      rgba(0,55,40,.78) 100%
    )!important;

  pointer-events:none!important;
}

/* ============================================================
   SCHOOL BRANDING — OVER FULL IMAGE
   ============================================================ */

.login-modern .login-brand-content{
  position:absolute!important;
  z-index:4!important;

  left:5%!important;
  top:7%!important;

  max-width:48%!important;
  margin:0!important;
  padding:0!important;
}

/* ============================================================
   FEATURES — OVER FULL IMAGE
   ============================================================ */

.login-modern .login-feature-grid{
  position:absolute!important;
  z-index:5!important;

  left:4%!important;
  right:54%!important;
  bottom:4%!important;

  width:auto!important;
  min-height:150px!important;

  display:grid!important;
  grid-template-columns:repeat(4,1fr)!important;

  margin:0!important;
  padding:0!important;

  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}

/* ============================================================
   LOGIN PANEL — FLOATING ON TOP OF BACKGROUND
   ============================================================ */

.login-modern .login-panel{
  position:absolute!important;
  z-index:10!important;

  top:0!important;
  right:0!important;
  bottom:0!important;
  left:auto!important;

  width:50%!important;
  height:100%!important;
  min-width:0!important;
  min-height:100%!important;

  margin:0!important;
  padding:0!important;

  display:flex!important;
  align-items:center!important;
  justify-content:center!important;

  box-sizing:border-box!important;
  overflow:hidden!important;

  /*
     IMPORTANT:
     No opaque white half-panel anymore.
     The school photograph remains visible underneath.
  */
  background:transparent!important;
}

/* Keep the subtle decorative circles */
.login-modern .login-panel-decoration{
  z-index:1!important;
}

/* Login card itself remains white */
.login-modern .login-card{
  position:relative!important;
  z-index:5!important;

  width:min(500px,calc(100% - 70px))!important;
  max-width:500px!important;
  max-height:calc(100dvh - 70px)!important;

  box-sizing:border-box!important;
}

/* ============================================================
   DESKTOP SIZING
   ============================================================ */

@media(min-width:1200px){
  .login-modern .login-panel{
    width:50%!important;
  }

  .login-modern .login-card{
    width:500px!important;
    max-width:calc(100% - 100px)!important;
  }

  .login-modern .login-brand-content{
    left:5%!important;
    top:7%!important;
  }

  .login-modern .login-feature-grid{
    left:4%!important;
    right:54%!important;
  }
}

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

@media(max-width:1100px) and (min-width:821px){
  .login-modern .login-panel{
    width:48%!important;
  }

  .login-modern .login-brand-content{
    left:4%!important;
    top:6%!important;
    max-width:48%!important;
  }

  .login-modern .login-feature-grid{
    left:3%!important;
    right:53%!important;
  }

  .login-modern .login-card{
    width:calc(100% - 50px)!important;
    max-width:470px!important;
  }
}

/* ============================================================
   MOBILE — BACKGROUND REMAINS FULL WIDTH
   ============================================================ */

@media(max-width:820px){
  .login-modern{
    display:block!important;
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
  }

  .login-modern .login-brand{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
  }

  .login-modern .login-brand-image{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
  }

  .login-modern .login-panel{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
    padding:20px!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
    background:transparent!important;
    overflow:auto!important;
  }

  .login-modern .login-card{
    width:min(500px,100%)!important;
    max-width:500px!important;
    max-height:calc(100dvh - 40px)!important;
    margin:0 auto!important;
  }

  .login-modern .login-brand-content{
    left:6%!important;
    top:5%!important;
    max-width:88%!important;
  }

  .login-modern .login-feature-grid{
    left:4%!important;
    right:4%!important;
    bottom:3%!important;
  }
}

@media(max-width:600px){
  .login-modern .login-brand-content{
    top:4%!important;
  }

  .login-modern .login-feature-grid{
    display:none!important;
  }

  .login-modern .login-panel{
    padding:12px!important;
  }

  .login-modern .login-card{
    width:100%!important;
    max-height:calc(100dvh - 24px)!important;
    padding:25px 19px 22px!important;
  }
}


/* ============================================================
   LOGIN REQUESTED DETAILS — ICONS / ALIGNMENT ONLY
   IMPORTANT: .login-card dimensions are intentionally untouched.
   ============================================================ */

/* PARENT PORTAL centered without changing the card */
.login-modern .login-portal-pill{
  display:flex!important;
  width:max-content!important;
  margin-left:auto!important;
  margin-right:auto!important;
  align-items:center!important;
  justify-content:center!important;
}

.login-modern .login-portal-pill-icon{
  width:15px!important;
  height:15px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.login-modern .login-portal-pill-icon svg{
  width:15px!important;
  height:15px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

/* Welcome, Parents! 👋 — same line on desktop */
.login-modern .login-card-heading h1{
  white-space:nowrap!important;
}

.login-modern .login-waving{
  display:inline-block!important;
  white-space:nowrap!important;
}

/* Feedback sentence centered */
.login-modern .login-card-heading p{
  text-align:center!important;
}

/* Email / Password / Show-password icons */
.login-modern .login-input-icon{
  width:19px!important;
  height:19px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.login-modern .login-input-icon svg{
  width:18px!important;
  height:18px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.7!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.login-modern .login-eye-icon{
  width:15px!important;
  height:15px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.login-modern .login-eye-icon svg{
  width:15px!important;
  height:15px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.7!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

/* Help icon + school support email */
.login-modern .login-help-icon svg{
  width:19px!important;
  height:19px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.7!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.login-modern .login-help-card span a{
  color:#006b52!important;
  font-weight:700!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}

.login-modern .login-help-card span a:hover{
  text-decoration:underline!important;
}

/* Secure Login / Privacy icons */
.login-modern .login-security-icon{
  width:18px!important;
  height:18px!important;
  display:grid!important;
  place-items:center!important;
}

.login-modern .login-security-icon svg{
  width:18px!important;
  height:18px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.7!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.login-modern .login-security-item{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  white-space:nowrap!important;
}

.login-modern .login-security-item svg{
  width:14px!important;
  height:14px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.6!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

/* Only allow text to wrap on very narrow phones; no card sizing changes. */
@media(max-width:520px){
  .login-modern .login-card-heading h1{
    white-space:normal!important;
  }

  .login-modern .login-help-card span a{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  .login-modern .login-security{
    gap:6px!important;
    font-size:9px!important;
  }
}

/* ============================================================
   RESPONSIVE STABILITY PATCH — FINAL
   Based on the current SJCS Parent Feedback Portal code.
   Desktop design/card dimensions are preserved.
   The patch prevents nested scrollbars and horizontal overflow.
   ============================================================ */

html,
body{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:hidden;
}

/* ---------- DESKTOP / LARGE TABLET ---------- */
@media (min-width:821px){

  .login-modern{
    width:100vw!important;
    max-width:100vw!important;
    height:100dvh!important;
    min-height:100dvh!important;
    display:grid!important;
    grid-template-columns:50% 50%!important;
    grid-template-rows:100%!important;
    overflow:hidden!important;
  }

  .login-modern .login-brand{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
    overflow:hidden!important;
  }

  .login-modern .login-brand-image{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
  }

  .login-modern .login-panel{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
    padding:24px!important;
    overflow:hidden!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:
      radial-gradient(circle at 95% 7%,rgba(0,107,82,.08),transparent 28%),
      radial-gradient(circle at 4% 95%,rgba(212,170,50,.06),transparent 24%),
      #f8fbf9!important;
  }

  .login-modern .login-card{
    width:min(500px,calc(100% - 20px))!important;
    max-width:500px!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    flex:none!important;
  }
}

/* 821–1100px: preserve the 50/50 composition while making the card
   narrower when the available width is smaller. */
@media (min-width:821px) and (max-width:1100px){

  .login-modern .login-card{
    width:calc(100% - 20px)!important;
    max-width:470px!important;
    padding:34px 30px 28px!important;
  }

  .login-modern .login-card-heading h1{
    font-size:clamp(30px,3.5vw,40px)!important;
  }

  .login-modern .login-feature-grid{
    left:3%!important;
    right:53%!important;
  }
}

/* Short desktop/laptop screens:
   compress vertical spacing instead of activating a card scrollbar. */
@media (min-width:821px) and (max-height:760px){

  .login-modern .login-card{
    padding:28px 32px 24px!important;
  }

  .login-modern .login-card-heading{
    margin-top:18px!important;
  }

  .login-modern .login-card-heading h1{
    font-size:clamp(29px,2.8vw,39px)!important;
  }

  .login-modern .login-card-heading p{
    margin-top:9px!important;
    line-height:1.45!important;
  }

  .login-modern .login-field{
    margin-top:15px!important;
  }

  .login-modern .login-field input{
    min-height:48px!important;
  }

  .login-modern .login-submit{
    min-height:52px!important;
    margin-top:15px!important;
  }

  .login-modern .login-help-divider{
    margin-top:15px!important;
  }

  .login-modern .login-help-card{
    padding:10px 12px!important;
  }

  .login-modern .login-security{
    margin-top:13px!important;
  }

  .login-modern .login-card .footer{
    padding-top:11px!important;
  }
}

/* ---------- TABLET PORTRAIT ---------- */
@media (min-width:601px) and (max-width:820px){

  html,
  body{
    overflow-x:hidden!important;
  }

  .login-modern{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:100svh!important;
    overflow:visible!important;
    background:#f8fbf9!important;
  }

  .login-modern .login-brand{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:420px!important;
    min-height:420px!important;
    flex:none!important;
    overflow:hidden!important;
  }

  .login-modern .login-brand-image{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
  }

  .login-modern .login-brand-content{
    left:5%!important;
    top:6%!important;
    width:auto!important;
    max-width:62%!important;
  }

  .login-modern .login-school-main{
    font-size:clamp(34px,5vw,52px)!important;
  }

  .login-modern .login-school-sub{
    font-size:clamp(19px,2.8vw,29px)!important;
  }

  .login-modern .login-feature-grid{
    left:4%!important;
    right:4%!important;
    bottom:5%!important;
    min-height:120px!important;
  }

  .login-modern .login-panel{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:30px 24px 42px!important;
    overflow:visible!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#f8fbf9!important;
  }

  .login-modern .login-card{
    width:min(520px,100%)!important;
    max-width:520px!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width:600px){

  html,
  body{
    overflow-x:hidden!important;
  }

  .login-modern{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:100svh!important;
    overflow:visible!important;
    background:#f8fbf9!important;
  }

  /* School image becomes a normal responsive section.
     It is NOT squeezed into a fixed viewport behind the card. */
  .login-modern .login-brand{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:350px!important;
    min-height:350px!important;
    max-height:none!important;
    flex:none!important;
    overflow:hidden!important;
  }

  .login-modern .login-brand-image{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
  }

  .login-modern .login-brand-content{
    left:5%!important;
    top:7%!important;
    width:90%!important;
    max-width:none!important;
    padding:0!important;
  }

  .login-modern .login-logo-wrap{
    width:64px!important;
    height:64px!important;
    border-radius:17px!important;
  }

  .login-modern .login-brand-logo{
    width:50px!important;
    height:50px!important;
  }

  .login-modern .login-school-main{
    font-size:clamp(27px,8.2vw,39px)!important;
    line-height:.98!important;
    white-space:nowrap!important;
  }

  .login-modern .login-school-sub{
    font-size:clamp(16px,4.6vw,23px)!important;
    margin-top:6px!important;
  }

  .login-modern .login-location{
    font-size:9px!important;
    margin-top:9px!important;
  }

  .login-modern .login-brand-rule{
    width:125px!important;
    margin:14px 0 9px!important;
  }

  .login-modern .login-tagline{
    font-size:10px!important;
  }

  /* Keep the four feature options visible on phones, but compact. */
  .login-modern .login-feature-grid{
    display:grid!important;
    left:3%!important;
    right:3%!important;
    bottom:3%!important;
    min-height:88px!important;
    padding:0!important;
    grid-template-columns:repeat(4,1fr)!important;
    background:rgba(0,54,41,.55)!important;
    border-radius:13px!important;
    overflow:hidden!important;
    backdrop-filter:blur(8px)!important;
  }

  .login-modern .login-feature{
    padding:8px 3px!important;
    gap:4px!important;
    border-right:1px solid rgba(255,255,255,.15)!important;
  }

  .login-modern .login-feature-icon{
    width:28px!important;
    height:28px!important;
    margin-bottom:2px!important;
  }

  .login-modern .login-feature-icon svg{
    width:17px!important;
    height:17px!important;
  }

  .login-modern .login-feature-title{
    font-size:7px!important;
    line-height:1.15!important;
  }

  .login-modern .login-feature-text{
    display:none!important;
  }

  /* Login panel follows the image naturally — no internal scrolling. */
  .login-modern .login-panel{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:18px 12px 30px!important;
    overflow:visible!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#f8fbf9!important;
  }

  .login-modern .login-card{
    width:100%!important;
    max-width:500px!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    padding:25px 19px 22px!important;
    border-radius:20px!important;
  }

  .login-modern .login-portal-pill{
    margin-left:auto!important;
    margin-right:auto!important;
  }

  .login-modern .login-card-heading{
    margin-top:19px!important;
  }

  .login-modern .login-card-heading h1{
    font-size:clamp(28px,8.5vw,36px)!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }

  .login-modern .login-card-heading p{
    margin-top:10px!important;
    font-size:12px!important;
    line-height:1.55!important;
  }

  .login-modern .login-desktop-break{
    display:none!important;
  }

  .login-modern .login-field{
    margin-top:19px!important;
  }

  .login-modern .login-field label{
    font-size:12px!important;
  }

  .login-modern .login-field input{
    min-height:49px!important;
    font-size:13px!important;
    padding-left:43px!important;
    padding-right:43px!important;
  }

  .login-modern .login-submit{
    min-height:52px!important;
    margin-top:17px!important;
    font-size:14px!important;
  }

  .login-modern .login-help-divider{
    margin-top:19px!important;
  }

  .login-modern .login-help-card{
    padding:12px!important;
    align-items:flex-start!important;
  }

  .login-modern .login-help-card span a{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  .login-modern .login-security{
    flex-wrap:wrap!important;
    row-gap:7px!important;
    margin-top:17px!important;
    font-size:9px!important;
  }

  .login-modern .login-card .footer{
    padding-top:14px!important;
  }
}

/* ---------- VERY SMALL PHONES ---------- */
@media (max-width:380px){

  .login-modern .login-brand{
    height:315px!important;
    min-height:315px!important;
  }

  .login-modern .login-brand-content{
    top:5%!important;
  }

  .login-modern .login-logo-wrap{
    width:56px!important;
    height:56px!important;
  }

  .login-modern .login-brand-logo{
    width:44px!important;
    height:44px!important;
  }

  .login-modern .login-school-main{
    font-size:27px!important;
  }

  .login-modern .login-school-sub{
    font-size:15px!important;
  }

  .login-modern .login-feature-grid{
    min-height:76px!important;
  }

  .login-modern .login-feature-icon{
    width:25px!important;
    height:25px!important;
  }

  .login-modern .login-feature-title{
    font-size:6.5px!important;
  }

  .login-modern .login-card{
    padding:22px 16px 20px!important;
  }

  .login-modern .login-card-heading h1{
    font-size:27px!important;
  }

  .login-modern .login-card-heading p{
    font-size:11px!important;
  }

  .login-modern .login-security{
    font-size:8px!important;
  }
}

/* ---------- LANDSCAPE PHONES ---------- */
@media (max-width:820px) and (orientation:landscape){

  .login-modern .login-brand{
    height:300px!important;
    min-height:300px!important;
  }

  .login-modern .login-brand-content{
    top:5%!important;
  }

  .login-modern .login-feature-grid{
    bottom:2%!important;
  }
}

/* ---------- SAFETY AGAINST LONG TEXT ---------- */
.login-modern .login-card,
.login-modern .login-help-card,
.login-modern .login-security,
.login-modern .login-card-heading{
  min-width:0!important;
  max-width:100%!important;
}

.login-modern .login-help-card > div:last-child{
  min-width:0!important;
}

.login-modern .login-help-card span{
  overflow-wrap:anywhere!important;
}

.login-modern input,
.login-modern button{
  max-width:100%!important;
}

@media (max-width:600px){
  .login-modern .login-card-heading h1{
    white-space:nowrap!important;
  }
}

/* ============================================================
   DEFINITIVE FULL-PAGE SCHOOL IMAGE
   ------------------------------------------------------------
   The school photograph is ALWAYS the complete viewport.
   The login card floats above it.
   No breakpoint turns the image into a half-page section.
   ============================================================ */

html,
body{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow-x:hidden!important;
}

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

.login-modern{
  position:relative!important;
  width:100vw!important;
  height:100dvh!important;
  min-width:0!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  overflow:hidden!important;
  background:#003f30!important;
}

/* ============================================================
   SCHOOL IMAGE — 100% WIDTH × 100% HEIGHT
   ============================================================ */

.login-modern .login-brand{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:100%!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  overflow:hidden!important;
  background:#003f30!important;
}

.login-modern .login-brand-image{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  object-fit:cover!important;
  object-position:center center!important;
}

/* Cinematic overlay is also full viewport */
.login-modern .login-brand-overlay{
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  pointer-events:none!important;
}

/* ============================================================
   BRANDING OVER IMAGE
   ============================================================ */

.login-modern .login-brand-content{
  position:absolute!important;
  z-index:4!important;
  left:5%!important;
  top:7%!important;
  max-width:44%!important;
  margin:0!important;
  padding:0!important;
}

/* ============================================================
   FEATURES OVER IMAGE
   ============================================================ */

.login-modern .login-feature-grid{
  position:absolute!important;
  z-index:5!important;
  left:4%!important;
  right:54%!important;
  bottom:4%!important;
  width:auto!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* ============================================================
   LOGIN PANEL — FLOATING OVER THE FULL IMAGE
   ============================================================ */

.login-modern .login-panel{
  position:absolute!important;
  z-index:10!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:auto!important;
  width:50%!important;
  height:100%!important;
  min-width:0!important;
  min-height:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
  background:transparent!important;
}

/* Keep the existing login card dimensions/design */
.login-modern .login-card{
  position:relative!important;
  z-index:20!important;
  width:min(500px,calc(100% - 70px))!important;
  max-width:500px!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  margin:0 auto!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}

/* ============================================================
   DESKTOP
   ============================================================ */

@media(min-width:1101px){
  .login-modern .login-panel{
    width:50%!important;
  }

  .login-modern .login-card{
    width:500px!important;
    max-width:calc(100% - 100px)!important;
  }
}

/* ============================================================
   LAPTOP / TABLET LANDSCAPE
   The image STILL fills the entire page.
   ============================================================ */

@media(min-width:601px) and (max-width:1100px){

  .login-modern .login-brand{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
  }

  .login-modern .login-brand-image{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }

  .login-modern .login-panel{
    position:absolute!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:auto!important;
    width:50%!important;
    height:100%!important;
    min-height:100%!important;
    padding:20px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:transparent!important;
    overflow:visible!important;
  }

  .login-modern .login-card{
    width:min(470px,calc(100% - 20px))!important;
    max-width:470px!important;
    max-height:none!important;
    overflow:visible!important;
  }

  .login-modern .login-brand-content{
    left:5%!important;
    top:6%!important;
    max-width:44%!important;
  }

  .login-modern .login-feature-grid{
    left:3%!important;
    right:53%!important;
    bottom:3%!important;
  }
}

/* ============================================================
   MOBILE PORTRAIT
   Image STILL fills the entire page.
   Login card floats in the centre.
   ============================================================ */

@media(max-width:600px){

  .login-modern{
    position:relative!important;
    width:100vw!important;
    height:100dvh!important;
    min-height:100dvh!important;
    display:block!important;
    overflow:hidden!important;
  }

  .login-modern .login-brand{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
    display:block!important;
  }

  .login-modern .login-brand-image{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-width:100%!important;
    min-height:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
  }

  .login-modern .login-brand-overlay{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
  }

  .login-modern .login-brand-content{
    position:absolute!important;
    left:5%!important;
    top:4%!important;
    max-width:90%!important;
  }

  .login-modern .login-feature-grid{
    display:none!important;
  }

  .login-modern .login-panel{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
    padding:14px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:transparent!important;
    overflow:visible!important;
  }

  .login-modern .login-card{
    width:min(500px,calc(100% - 10px))!important;
    max-width:500px!important;
    height:auto!important;
    max-height:none!important;
    margin:0 auto!important;
    overflow:visible!important;
  }

  /* Keep requested title on one line on normal phones */
  .login-modern .login-card-heading h1{
    max-width:100%!important;
    white-space:nowrap!important;
    font-size:clamp(23px,7.4vw,31px)!important;
    letter-spacing:-.04em!important;
    text-align:center!important;
  }
}

/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media(max-width:380px){

  .login-modern .login-card{
    width:calc(100% - 4px)!important;
    max-width:500px!important;
  }

  .login-modern .login-card-heading h1{
    font-size:23px!important;
    white-space:normal!important;
  }
}

/* ============================================================
   SHORT MOBILE SCREENS
   ============================================================ */

@media(max-width:600px) and (max-height:700px){

  .login-modern .login-brand-content{
    top:2.5%!important;
  }

  .login-modern .login-panel{
    padding:8px!important;
  }

  .login-modern .login-card{
    transform:scale(.94)!important;
    transform-origin:center center!important;
  }
}

/* ============================================================
   NO SCROLLBAR / NO HORIZONTAL OVERFLOW
   ============================================================ */

.login-modern .login-card{
  scrollbar-width:none!important;
}

.login-modern .login-card::-webkit-scrollbar{
  display:none!important;
}

.login-modern .login-help-card,
.login-modern .login-help-card > div:last-child,
.login-modern .login-help-card span{
  min-width:0!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}

.login-modern .login-security{
  max-width:100%!important;
  flex-wrap:wrap!important;
}

/* ============================================================
   PASSWORD RECOVERY MODAL
   ============================================================ */

.sjcs-auth-modal-backdrop{
  z-index:500!important;
  padding:20px!important;
}

.sjcs-auth-modal{
  width:min(520px,100%)!important;
  max-width:520px!important;
  max-height:calc(100vh - 40px)!important;
  overflow:auto!important;
  padding:26px!important;
  border:1px solid #dfe7e2!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 30px 80px rgba(0,55,40,.25)!important;
}

.sjcs-auth-modal .section-title{
  color:var(--green)!important;
}

.sjcs-reset-intro{
  display:flex;
  align-items:center;
  gap:12px;
  margin:2px 0 20px;
  padding:13px 14px;
  border:1px solid #dce9e2;
  border-radius:11px;
  background:#f4f9f6;
  color:#365248;
}

.sjcs-reset-intro b,
.sjcs-reset-intro span{
  display:block;
}

.sjcs-reset-intro b{
  font-size:13px;
  color:#174d3d;
  margin-bottom:3px;
}

.sjcs-reset-intro span{
  font-size:11px;
  line-height:1.5;
  color:#596861;
}

.sjcs-reset-icon{
  width:40px;
  height:40px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e4f1eb;
  color:#075b43;
  font-size:20px;
  font-weight:800;
}

.sjcs-reset-note{
  margin:15px 0 0;
  padding:10px 12px;
  border-radius:9px;
  background:#f8faf9;
  color:#6a756f;
  font-size:10px;
  line-height:1.5;
}

.sjcs-password-rules{
  display:grid;
  gap:4px;
  margin-top:10px;
  padding:11px 13px;
  border-radius:9px;
  background:#f7faf8;
  color:#596861;
  font-size:10px;
  line-height:1.4;
}

.sjcs-password-rules b{
  color:#315448;
  font-size:11px;
  margin-bottom:2px;
}

.sjcs-reset-success-modal{
  text-align:center;
}

.sjcs-reset-success-icon{
  width:58px;
  height:58px;
  margin:0 auto;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e6f5ed;
  border:1px solid #cce8da;
  color:#087443;
  font-size:30px;
  font-weight:900;
}

.sjcs-auth-modal input{
  width:100%!important;
  min-height:46px;
}

.sjcs-auth-modal,
.sjcs-auth-modal *{
  max-width:100%;
  min-width:0;
}

@media(max-width:520px){
  .sjcs-auth-modal-backdrop{
    padding:10px!important;
  }

  .sjcs-auth-modal{
    padding:20px!important;
    border-radius:15px!important;
    max-height:calc(100vh - 20px)!important;
  }

  .sjcs-reset-intro{
    align-items:flex-start;
  }

  .sjcs-auth-modal .btn-row{
    flex-direction:column-reverse;
  }

  .sjcs-auth-modal .btn-row .btn{
    width:100%;
  }
}
/* Add this block at the end of your existing CSS file. */

.parent-student-selector{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 22px;
  padding:16px 18px;
  border:1px solid rgba(0,107,79,.16);
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 16px rgba(0,0,0,.05);
}

.parent-student-selector-label{
  font-weight:700;
  font-size:14px;
}

.parent-student-selector-control{
  min-width:280px;
}

.parent-student-selector-control select{
  width:100%;
  min-height:42px;
  padding:9px 38px 9px 12px;
  border:1px solid #d8dfdc;
  border-radius:10px;
  background:#fff;
  font:inherit;
  color:inherit;
  cursor:pointer;
}

.parent-student-selector-control select:focus{
  outline:none;
  border-color:#006b4f;
  box-shadow:0 0 0 3px rgba(0,107,79,.12);
}

@media (max-width:700px){
  .parent-student-selector{
    align-items:stretch;
    flex-direction:column;
    gap:10px;
  }

  .parent-student-selector-control{
    min-width:0;
  }
}
/* ============================================================
   CSV STUDENT IMPORT
   ============================================================ */

.csv-import-layout{
  align-items:start;
}

.csv-import-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.csv-safe-badge{
  display:inline-flex;
  align-items:center;
  padding:7px 11px;
  border-radius:999px;
  background:#e8f5ee;
  color:#087443;
  border:1px solid #cce8d9;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}

.csv-rules-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}

.csv-rule{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fbfdfc;
}

.csv-rule b{
  color:var(--green);
  font-size:12px;
}

.csv-rule span{
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

.csv-format-notice code{
  display:inline-block;
  margin-top:5px;
  padding:5px 7px;
  border-radius:7px;
  background:#f5f7f6;
  color:#30483f;
  font-size:11px;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.csv-upload-actions{
  align-items:center;
}

.csv-file-button{
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.csv-file-button input[type="file"]{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}

.csv-import-summary{
  border-left:4px solid var(--green);
}

.csv-import-valid{
  background:#eff9f3!important;
  border-color:#cbe8d6!important;
}

.csv-import-invalid{
  background:#fff4f4!important;
  border-color:#f0caca!important;
  color:#8f1f1f!important;
  border-left:4px solid var(--danger)!important;
}

.csv-import-success{
  background:#eff9f3!important;
  border-color:#cbe8d6!important;
  border-left:4px solid var(--success)!important;
}

.csv-error-panel{
  border:1px solid #efc7c7;
  background:#fff8f8;
  border-radius:12px;
  padding:14px 16px;
  color:#7f1d1d;
  max-height:360px;
  overflow:auto;
}

.csv-error-title{
  font-weight:800;
  margin-bottom:7px;
}

.csv-error-panel ol{
  margin:7px 0 0 20px;
  padding:0;
}

.csv-error-panel li{
  margin:4px 0;
  font-size:12px;
  line-height:1.45;
}

.csv-confirm-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding-top:14px;
  border-top:1px solid var(--line);
}

.csv-rule-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.csv-rule-list > div{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:8px;
  align-items:start;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fbfdfc;
  font-size:12px;
  line-height:1.45;
}

.csv-rule-list b{
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--green-soft);
  color:var(--green);
}

@media(max-width:900px){
  .csv-rules-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:600px){
  .csv-confirm-bar{
    flex-direction:column;
    align-items:stretch;
  }

  .csv-confirm-bar .btn{
    width:100%;
  }
}

.website-admin-page{
  display:grid;
  gap:18px;
}

.website-admin-intro{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.website-admin-intro .section-title{
  margin-bottom:5px;
}

.website-admin-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.website-admin-card{
  min-width:0;
}

.website-admin-wide{
  grid-column:1/-1;
}

.website-admin-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  margin-bottom:18px;
}

.website-admin-card-head h3{
  margin:0;
  font:700 19px Georgia,serif;
  color:var(--green);
}

.website-admin-card-head p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.website-independent-controls{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.website-control-box{
  padding:15px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fbfdfc;
}

.website-toggle-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding-bottom:12px;
  margin-bottom:12px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  font-weight:800;
  color:#23463a;
}

.website-toggle-row input{
  width:19px;
  height:19px;
  accent-color:var(--green);
}

.website-fields{
  display:grid;
  gap:9px;
}

.website-fields input,
.website-fields textarea,
.website-list-row input,
.website-list-row textarea{
  width:100%;
  border:1px solid #cfd8d3;
  border-radius:8px;
  padding:10px 11px;
  background:#fff;
  color:var(--ink);
  outline:none;
}

.website-fields textarea,
.website-list-row textarea{
  min-height:75px;
  resize:vertical;
}

.website-fields input:focus,
.website-fields textarea:focus,
.website-list-row input:focus,
.website-list-row textarea:focus{
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(0,86,63,.08);
}

.website-fields-single{
  grid-template-columns:1fr 1fr;
}

.website-fields-single textarea{
  grid-column:1/-1;
}

.website-admin-large-textarea{
  width:100%;
  min-height:135px;
  resize:vertical;
  border:1px solid #cfd8d3;
  border-radius:10px;
  padding:12px;
  outline:none;
}

.website-list-editor{
  display:grid;
  gap:10px;
}

.website-list-row{
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fbfdfc;
}

.website-row-grid{
  display:grid;
  grid-template-columns:80px 90px minmax(180px,1fr) auto auto;
  gap:9px;
  align-items:center;
}

.website-news-grid{
  grid-template-columns:minmax(150px,.8fr) minmax(180px,1fr) 130px minmax(220px,1.4fr) auto;
}

.website-event-grid{
  grid-template-columns:70px 85px minmax(150px,1fr) minmax(160px,1fr) minmax(140px,1fr) 100px auto;
}

.website-gallery-grid{
  grid-template-columns:minmax(180px,1fr) minmax(160px,1fr) minmax(180px,1fr) auto;
}

.website-inline-check{
  display:flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  font-weight:800;
  color:var(--green);
  white-space:nowrap;
}

.website-inline-check input{
  width:16px;
  height:16px;
  accent-color:var(--green);
}

.website-empty-editor{
  border:1px dashed var(--line);
  border-radius:10px;
}

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

  .website-admin-wide{
    grid-column:auto;
  }

  .website-independent-controls{
    grid-template-columns:1fr;
  }

  .website-row-grid,
  .website-news-grid,
  .website-event-grid,
  .website-gallery-grid{
    grid-template-columns:1fr 1fr;
  }

  .website-list-row .btn{
    width:max-content;
  }
}

@media(max-width:520px){
  .website-admin-intro{
    align-items:flex-start;
    flex-direction:column;
  }

  .website-fields-single,
  .website-row-grid,
  .website-news-grid,
  .website-event-grid,
  .website-gallery-grid{
    grid-template-columns:1fr;
  }

  .website-admin-card{
    padding:17px;
  }
}


/* ============================================================
   LOCAL ADMIN DEVELOPMENT MODE
   ============================================================ */

.local-login-note{
  margin:0 0 18px;
  padding:10px 12px;
  border:1px solid #d8e8df;
  border-radius:9px;
  background:#eef7f2;
  color:#15513e;
  font-size:12px;
  font-weight:700;
  text-align:center;
}

.local-credentials-note{
  margin-top:14px;
  padding:12px 14px;
  border:1px dashed #d5dfda;
  border-radius:10px;
  background:#fafcfb;
  display:grid;
  gap:4px;
  font-size:11px;
  color:#596560;
}

.local-credentials-note b{
  color:#15513e;
  font-size:12px;
  margin-bottom:2px;
}

.local-credentials-note strong{
  color:#1f302a;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
}

.local-dashboard{
  width:100%;
}

.local-dashboard-welcome{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:linear-gradient(135deg,#fbfdfb,#f1f7f3);
}

.local-dashboard-welcome h1{
  margin:12px 0 7px;
  font:700 30px Georgia,serif;
  color:var(--green);
}

.local-dashboard-welcome p{
  max-width:850px;
  margin:0;
  color:#53605b;
  line-height:1.65;
}

.local-dashboard-actions{
  flex:none;
}

.local-control-summary{
  display:grid;
  gap:0;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}

.local-control-summary div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:13px 15px;
  border-bottom:1px solid var(--line);
}

.local-control-summary div:last-child{
  border-bottom:0;
}

.local-control-summary span{
  color:#53605b;
  font-size:13px;
}

.local-control-summary b{
  color:var(--green);
  font-size:12px;
}

.local-admin-footer{
  flex-shrink:0;
}

.website-local-warning{
  margin-bottom:18px;
}

.website-admin-page .website-admin-card{
  min-width:0;
}

@media(max-width:820px){
  .local-dashboard-welcome{
    flex-direction:column;
    align-items:flex-start;
  }

  .local-dashboard-actions{
    width:100%;
  }

  .local-dashboard-actions .btn{
    width:100%;
  }
}

/* Website Management left-panel section navigation */
.website-subnav{
  margin: 2px 0 10px 0;
  padding: 2px 0 4px 36px;
  border-left: 1px solid rgba(255,255,255,.18);
}

.website-subnav-item{
  width: 100%;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.88);
  text-align: left;
  padding: 7px 8px;
  border-radius: 8px;
  margin: 1px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.25;
  cursor: pointer;
}

.website-subnav-item:hover{
  background: rgba(255,255,255,.10);
  color: #fff;
}

.website-subnav-number{
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}

.website-subnav-item:hover .website-subnav-number{
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
}

.website-admin-page section[id^="websiteSection-"]{
  scroll-margin-top: 24px;
}

@media(max-width:820px){
  .website-subnav{
    padding-left: 30px;
  }

  .website-subnav-item{
    font-size: 13px;
    min-height: 36px;
  }
}

/* ==========================================================
   LOCAL ADMIN SIDEBAR — DIRECT MENU STYLE
   All website controls are first-level menu items.
   ========================================================== */
.sidebar {
  width: 275px;
  padding: 24px 16px 20px;
  background: linear-gradient(180deg, #005b43 0%, #003e2f 100%);
  overflow-y: auto;
}

.sidebar .brand {
  display: block !important;
  text-align: center;
  padding: 0 5px 20px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.sidebar .brand h1 {
  display: block !important;
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.08;
  margin: 0;
  color: #ffffff;
}

.sidebar .brand p {
  display: block !important;
  margin: 7px 0 0;
  color: #f3d56c;
  font-weight: 700;
  font-size: 13px;
}

.sidebar .brand small {
  display: block !important;
  margin-top: 7px;
  color: #e7f0eb;
  font-size: 13px;
}

.sidebar .brand-logo {
  display: none !important;
}

.sidebar .nav {
  padding-top: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar .nav button {
  width: 100%;
  min-height: 47px;
  margin: 0 !important;
  padding: 12px 13px !important;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.sidebar .nav button:hover,
.sidebar .nav button.active {
  background: #ffffff;
  color: #005b43;
}

.sidebar .nav .nav-icon {
  width: 23px;
  min-width: 23px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.sidebar .nav button span:last-child {
  flex: 1;
}

.sidebar .sidebar-footer {
  position: static;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: 11px;
  line-height: 1.35;
}

.topbar-school-logo {
  display: none !important;
}

@media (max-width: 820px) {
  .sidebar {
    width: 275px;
    padding: 20px 13px 18px;
  }

  .sidebar .nav button {
    min-height: 46px;
    padding: 11px 12px !important;
  }
}

/* Sidebar branding: text only — school logo intentionally removed. */
.brand-logo{display:none !important;}
