
:root{
  --sky:#5BA8FF;
  --cyan:#22C7D9;
  --indigo:#6C6CF2;
  --blue-bright:#3B63FF;
  --ink:#0B1B4D;
  --role-siswa:#3B7CFF; --role-siswa-rgb:59,124,255;
  --role-wali:#22C7D9;  --role-wali-rgb:34,199,217;
  --role-guru:#6C6CF2;  --role-guru-rgb:108,108,242;
  --role-admin:#F0930F; --role-admin-rgb:240,147,15;

  /* Isi kartu login SELALU memakai nilai ini, tidak ikut berubah saat mode gelap */
  --auth-fixed-card-bg:#ffffff;
  --auth-fixed-border:rgba(11,27,77,0.08);
  --auth-fixed-heading:#0B1B4D;
  --auth-fixed-muted:rgba(21,38,89,0.62);
  --auth-fixed-visual-bg-1:rgba(59,130,246,0.07);
  --auth-fixed-visual-bg-2:rgba(59,130,246,0.02);
  --auth-fixed-input-bg:#ffffff;
  --auth-fixed-input-border:rgba(11,27,77,0.14);
  --auth-fixed-input-text:#0B1B4D;
  --auth-fixed-input-placeholder:rgba(21,38,89,0.42);
}

/* ---------- Tema DARK (default) ---------- */
html[data-theme="dark"]{
  --bg-1:#050B24; --bg-2:#0B1B4D; --bg-3:#0A184A;
  --glow-1:rgba(91,168,255,0.35); --glow-2:rgba(108,108,242,0.30); --glow-3:rgba(34,199,217,0.18);
  --grid-line:rgba(255,255,255,0.035);
  --text:#F5F8FF;
  --heading:#F5F8FF;
  --muted:rgba(230,236,255,0.68);
  --line:rgba(255,255,255,0.14);
  --eyebrow-bg:rgba(255,255,255,0.07);
  --eyebrow-text:#CBDBFF;
  --accent-1:var(--sky); --accent-2:var(--cyan); --accent-3:#8FD6FF;
  --panel-bg-1:rgba(255,255,255,0.065); --panel-bg-2:rgba(255,255,255,0.025);
  --panel-shadow:rgba(3,8,32,0.6);
  --status-text:#BFEFD8; --status-bg:rgba(59,227,160,0.10); --status-border:rgba(59,227,160,0.30); --status-dot:#3BE3A0;
  --card-bg-1:#ffffff; --card-bg-2:#EEF3FF; --card-border:rgba(255,255,255,0.5); --card-shadow:rgba(6,14,50,0.55); --card-shadow-rest:rgba(6,14,50,0.30);
  --footer-bg:rgba(4,10,34,0.75); --footer-brand:#E6ECFF; --fclock-bg:rgba(255,255,255,0.06); --fclock-text:#DCE6FF;
  --toggle-bg:rgba(255,255,255,0.08); --toggle-border:rgba(255,255,255,0.18); --toggle-icon:#F5F8FF;
  --back-text:#CBDBFF;
}

/* ---------- Tema LIGHT ---------- */
html[data-theme="light"]{
  --bg-1:#EEF3FF; --bg-2:#E4ECFF; --bg-3:#EAF3FF;
  --glow-1:rgba(59,130,246,0.16); --glow-2:rgba(108,108,242,0.14); --glow-3:rgba(14,165,196,0.12);
  --grid-line:rgba(11,27,77,0.05);
  --text:#0B1B4D;
  --heading:#0B1B4D;
  --muted:rgba(21,38,89,0.62);
  --line:rgba(11,27,77,0.12);
  --eyebrow-bg:rgba(59,130,246,0.08);
  --eyebrow-text:#1B3FCB;
  --accent-1:var(--blue-bright); --accent-2:var(--indigo); --accent-3:var(--cyan);
  --panel-bg-1:rgba(255,255,255,0.85); --panel-bg-2:rgba(255,255,255,0.55);
  --panel-shadow:rgba(23,45,120,0.22);
  --status-text:#0E7D57; --status-bg:rgba(22,165,121,0.10); --status-border:rgba(22,165,121,0.28); --status-dot:#16A579;
  --card-bg-1:#ffffff; --card-bg-2:#F3F7FF; --card-border:rgba(11,27,77,0.08); --card-shadow:rgba(23,45,120,0.30); --card-shadow-rest:rgba(23,45,120,0.18);
  --footer-bg:rgba(255,255,255,0.75); --footer-brand:#0B1B4D; --fclock-bg:rgba(11,27,77,0.05); --fclock-text:#0B1B4D;
  --toggle-bg:rgba(11,27,77,0.06); --toggle-border:rgba(11,27,77,0.14); --toggle-icon:#0B1B4D;
  --back-text:#1B3FCB;
}

*{box-sizing:border-box;margin:0;padding:0;}
html,body{min-height:100%;}
body{
  font-family:'Inter',sans-serif;
  color:var(--text);
  background:
    radial-gradient(1100px 600px at 12% -10%, var(--glow-1), transparent 60%),
    radial-gradient(900px 500px at 105% 10%, var(--glow-2), transparent 55%),
    radial-gradient(1200px 700px at 50% 120%, var(--glow-3), transparent 60%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  transition:background .35s ease, color .35s ease;
}

body::before{
  content:"";
  position:fixed;inset:0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(circle at 50% 30%, black, transparent 75%);
  pointer-events:none;
  z-index:0;
}

/* ---------- Toggle tema (dipakai di kedua jenis halaman) ---------- */
.theme-toggle{
  width:34px;height:34px;
  border-radius:50%;
  background:var(--toggle-bg);
  border:1px solid var(--toggle-border);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  flex-shrink:0;
  transition:transform .2s ease, background .3s ease;
}
.theme-toggle:hover{transform:scale(1.06);}
.theme-toggle:focus-visible{outline:2px solid var(--sky);outline-offset:3px;}
.theme-toggle svg{width:17px;height:17px;stroke:var(--toggle-icon);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.theme-toggle .icon-moon{display:none;}
html[data-theme="light"] .theme-toggle .icon-sun{display:none;}
html[data-theme="light"] .theme-toggle .icon-moon{display:block;}

/* =========================================================
   PORTAL HOME (portal-sikacloud.html)
   ========================================================= */

body.page-home{min-height:100vh;}

.panel-head-actions{
  display:flex;align-items:center;gap:10px;
}

main{
  position:relative;
  z-index:1;
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:clamp(10px,2vh,20px) 24px;
  gap:clamp(8px,1.6vh,16px);
}

.brandmark{
  width: 75px;
    height: 75px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px -12px rgba(59, 99, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}
.brandmark img {
    width: 100%;
    padding: 5px;
}
.brandmark svg{width:60%;height:60%;}

.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  padding:5px 14px;
  border-radius:999px;
  background:var(--eyebrow-bg);
  border:1px solid var(--line);
  font-family:'Sora',sans-serif;
  font-size:11.5px;font-weight:600;letter-spacing:0.08em;
  color:var(--eyebrow-text);
}
.eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--status-dot);box-shadow:0 0 0 4px rgba(59,227,160,0.18);}

h1{
  font-family:'Sora',sans-serif;
  font-weight:800;
  font-size:clamp(22px, 3.6vh, 40px);
  line-height:1.08;
  text-align:center;
  letter-spacing:-0.01em;
  max-width:820px;
  color:var(--heading);
}
h1 .accent{
  background:var(--accent-1);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

.subtext{
  text-align:center;
  max-width:560px;
  font-size:clamp(12.5px,1.6vh,15px);
  line-height:1.5;
  color:var(--muted);
  font-weight:400;
}
.subtext b{color:var(--heading);font-weight:700;}

.panel{
  width:100%;
  max-width:1180px;
  background:linear-gradient(180deg, var(--panel-bg-1), var(--panel-bg-2));
  border:1px solid var(--line);
  border-radius:24px;
  padding:clamp(14px,2.4vh,26px);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 34px 70px -30px var(--panel-shadow);
}
.panel-head{
  display:flex;align-items:flex-end;justify-content:space-between;
  flex-wrap:wrap;gap:10px;
  margin-bottom:clamp(10px,2vh,18px);
  padding-bottom:clamp(10px,1.8vh,16px);
  border-bottom:1px solid var(--line);
}
.panel-head h2{
  font-family:'Sora',sans-serif;
  font-size:clamp(16px,2vh,21px);
  font-weight:700;
  color:var(--heading);
}
.panel-head p{
  margin-top:4px;
  font-size:12.5px;
  color:var(--muted);
}
.status-pill{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;font-weight:500;
  color:var(--status-text);
  background:var(--status-bg);
  border:1px solid var(--status-border);
  padding:6px 12px;border-radius:999px;
  white-space:nowrap;
}
.status-pill .dot{width:6px;height:6px;border-radius:50%;background:var(--status-dot);}

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

.card{
  position:relative;
  background:linear-gradient(160deg, var(--card-bg-1), var(--card-bg-2));
  border-radius:16px;
  padding:16px 16px 14px;
  color:var(--ink);
  overflow:hidden;
  border:1px solid var(--card-border);
  box-shadow:0 10px 24px -16px var(--card-shadow-rest);
  transition:transform .28s ease, box-shadow .28s ease;
  display:flex;flex-direction:column;
  text-decoration:none;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 40px -18px var(--card-shadow);
}
.card:focus-visible{
  outline:3px solid #8FD6FF;
  outline-offset:3px;
}
.card .glow{
  position:absolute;right:-30px;bottom:-30px;
  width:110px;height:110px;border-radius:50%;
  background:var(--role);
  opacity:0.16;
  filter:blur(4px);
}
.role-row{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:10px;
}
.icon-badge{
  width:34px;height:34px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:var(--role);
  box-shadow:0 8px 16px -8px var(--role);
}
.icon-badge svg{width:18px;height:18px;stroke:#fff;fill:none;}
.role-tag{
  font-family:'Sora',sans-serif;
  font-size:10px;font-weight:700;letter-spacing:0.06em;
  color:var(--role);
  text-transform:uppercase;
}
.card h3{
  font-family:'Sora',sans-serif;
  font-size:15.5px;font-weight:700;
  margin-bottom:5px;
  color:#0B1B4D;
}
.card p{
  font-size:12px;line-height:1.45;
  color:#48507A;
  flex:1;
}
.card .cta{
  margin-top:12px;
  display:flex;align-items:center;justify-content:space-between;
}
.card .cta span{
  font-family:'Sora',sans-serif;
  font-size:12px;font-weight:600;
  color:var(--role);
}
.arrow{
  width:28px;height:28px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  background:var(--role);
  transition:transform .25s ease;
}
.card:hover .arrow{transform:translateX(3px);}
.arrow svg{width:14px;height:14px;stroke:#fff;fill:none;}

.role-siswa{--role:var(--role-siswa); --role-rgb:var(--role-siswa-rgb);}
.role-wali{--role:var(--role-wali); --role-rgb:var(--role-wali-rgb);}
.role-guru{--role:var(--role-guru); --role-rgb:var(--role-guru-rgb);}
.role-admin{--role:var(--role-admin); --role-rgb:var(--role-admin-rgb);}

footer{
  position:relative;z-index:1;
  flex-shrink:0;
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;flex-wrap:wrap;
  padding:9px 24px;
  background:var(--footer-bg);
  border-top:1px solid var(--line);
  backdrop-filter:blur(10px);
  font-size:12px;
  color:var(--muted);
}
footer .fbrand{
  display:flex;align-items:center;gap:8px;
  font-family:'Sora',sans-serif;font-weight:600;color:var(--footer-brand);
}
footer .fbrand a {
    color: var(--footer-brand);
    text-decoration: none;
}
footer .fbrand .fdot{width:6px;height:6px;border-radius:50%;background:var(--sky);}
footer .fclock{
  font-variant-numeric:tabular-nums;
  background:var(--fclock-bg);
  border:1px solid var(--line);
  padding:4px 10px;border-radius:8px;
  color:var(--fclock-text);font-weight:500;
}

@media (max-width:980px){
  .grid{grid-template-columns:repeat(2,1fr);}
  .card{padding:14px;}
}
@media (max-width:640px){
  body.page-home main{padding:20px 16px;gap:10px;}
  body.page-home .panel{padding:16px;border-radius:18px;}
  .grid{grid-template-columns:1fr;gap:10px;}
  .panel-head{flex-direction:column;align-items:flex-start;}
  footer{justify-content:center;text-align:center;}
}


/* =========================================================
   AUTH / LOGIN PAGES — desain sederhana satu kartu
   (login-siswa.html, login-wali.html, login-guru.html, login-admin.html)
   ========================================================= */

.auth-topbar-simple{
  position:relative;z-index:1;
  width:100%;max-width:400px;
  margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:22px 2px 0;
}

.back-link{
  display:inline-flex;align-items:center;gap:6px;
  font-family:'Sora',sans-serif;
  font-weight:600;font-size:12.5px;
  color:var(--back-text);
  text-decoration:none;
  white-space:nowrap;
}
.back-link svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.back-link:hover{text-decoration:underline;}
.back-link:focus-visible{outline:2px solid var(--sky);outline-offset:3px;border-radius:4px;}

.auth-main-simple{
  position:relative;z-index:1;
  min-height:100vh;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:20px;
  padding:16px 24px 40px;
}

.auth-card-simple{
  width:100%;max-width:400px;
  background:var(--auth-fixed-card-bg);
  border:1px solid var(--auth-fixed-border);
  border-radius:20px;
  padding:38px 30px 30px;
  box-shadow:0 30px 60px -30px var(--panel-shadow);
  display:flex;flex-direction:column;align-items:center;text-align:center;
}

.acs-logo{
  width:52px;height:52px;border-radius:15px;
  background:linear-gradient(150deg,var(--sky),var(--blue-bright) 55%,var(--indigo));
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 14px 28px -12px rgba(59,99,255,0.5);
  margin-bottom:16px;
  flex-shrink:0;
}
.acs-logo svg{width:58%;height:58%;}

.acs-tag{
  font-family:'Sora',sans-serif;font-weight:700;font-size:11px;letter-spacing:.09em;
  color:#0D499F;text-transform:uppercase;margin-bottom:10px; margin-top:16px;
}

.auth-card-simple h1{
  font-family:'Sora',sans-serif;font-weight:800;font-size:22px;
  color:var(--auth-fixed-heading);margin-bottom:6px;line-height:1.25;
}

.acs-sub{
  font-size:12.5px;line-height:1.5;
  color:var(--auth-fixed-muted);
  margin-bottom:28px;
}

.auth-card-simple form{width:100%;text-align:left;}

/* ---------- Field, input dengan floating label, tombol ---------- */
.field{position:relative;margin-bottom:22px;}
.field:last-of-type{margin-bottom:0;}

.forgot{
  position:absolute;
  top:-19px;
  right:2px;
  font-size:12px;font-weight:600;
  color:var(--sky);
  text-decoration:none;
}
.forgot:hover{text-decoration:underline;}

.input-wrap{position:relative;}
.input-wrap input{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid var(--auth-fixed-input-border);
  background:var(--auth-fixed-input-bg);
  color:var(--auth-fixed-input-text);
  font-family:'Inter',sans-serif;
  font-size:13.5px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.input-wrap input::placeholder{color:transparent;}
.input-wrap input:focus{
  border-color:var(--sky);
  box-shadow:0 0 0 3px rgba(91,168,255,0.18);
}
.input-wrap label{
  position:absolute;
  left:14px;top:50%;
  transform:translateY(-50%);
  font-family:'Inter',sans-serif;
  font-size:13.5px;
  color:var(--auth-fixed-input-placeholder);
  pointer-events:none;
  padding:0 5px;
  background:transparent;
  border-radius:3px;
  transition:top .18s ease, left .18s ease, transform .18s ease, font-size .18s ease, color .18s ease, font-weight .18s ease, background .18s ease;
}
.input-wrap input:focus + label,
.input-wrap input:not(:placeholder-shown) + label{
  top:0;
  left:11px;
  transform:translateY(-50%);
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.05em;
  color:#0D499F;
  background:var(--auth-fixed-card-bg);
}
.input-wrap.has-toggle input{padding-right:42px;}

.eye-toggle{
  position:absolute;
  right:4px;top:50%;
  transform:translateY(-50%);
  width:30px;height:30px;
  border:none;background:none;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  color:var(--auth-fixed-muted);
}
.eye-toggle svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.eye-toggle:focus-visible{outline:2px solid var(--sky);outline-offset:2px;border-radius:6px;}

.btn-primary{
  width:100%;
  margin-top:20px;
  padding:14px 20px;
  border:none;
  border-radius:13px;
  background:linear-gradient(120deg, #0D499F, #0A3D86);
  color:#fff;
  font-family:'Sora',sans-serif;
  font-weight:700;
  font-size:15px;
  cursor:pointer;
  box-shadow:0 18px 32px -14px rgba(13,73,159,0.55);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary:hover{transform:translateY(-2px);filter:brightness(1.06);}
.btn-primary:active{transform:translateY(0);}
.btn-primary:focus-visible{outline:2px solid var(--sky);outline-offset:3px;}

.auth-copyright{
  text-align:center;
  font-size:12px;
  color:var(--auth-fixed-muted);
}

@media (max-width:480px){
  .auth-topbar-simple{max-width:100%;padding:16px 4px 0;}
  .auth-main-simple{padding:14px 16px 32px;}
  .auth-card-simple{padding:30px 22px 24px;border-radius:16px;}
}

.simple-modal-overlay{
  position:fixed;inset:0;z-index:200;
  background:rgba(4,10,30,0.55);
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  opacity:0;visibility:hidden;
  transition:opacity .2s ease, visibility .2s ease;
}
.simple-modal-overlay.active{opacity:1;visibility:visible;}

.simple-modal{
  position:relative;
  width:100%;max-width:380px;
  background:var(--auth-fixed-card-bg);
  border:1px solid var(--auth-fixed-border);
  border-radius:18px;
  padding:32px 26px 26px;
  text-align:center;
  box-shadow:0 40px 80px -30px rgba(3,8,32,0.5);
  transform:translateY(10px) scale(.97);
  transition:transform .2s ease;
}
.simple-modal-overlay.active .simple-modal{transform:translateY(0) scale(1);}

.simple-modal-close{
  position:absolute;top:12px;right:12px;
  width:28px;height:28px;border-radius:8px;
  border:none;background:var(--auth-fixed-input-bg);
  color:var(--auth-fixed-muted);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
}
.simple-modal-close svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;}
.simple-modal-close:hover{color:var(--auth-fixed-heading);}

.simple-modal-icon{
  width:48px;height:48px;border-radius:14px;
  margin:0 auto 14px;
  background:rgba(13,73,159,0.10);
  display:flex;align-items:center;justify-content:center;
  color:#0D499F;
}
.simple-modal-icon svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}

.simple-modal h3{
  font-family:'Sora',sans-serif;font-weight:700;font-size:16px;
  color:var(--auth-fixed-heading);margin-bottom:10px;
}
.simple-modal p{
  font-size:13px;line-height:1.65;
  color:var(--auth-fixed-muted);
  margin-bottom:22px;
}
.simple-modal .btn-primary{margin-top:0;}

@media (max-width:480px){
  .simple-modal{padding:26px 20px 20px;border-radius:16px;}
}

