@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{--primary:#2563eb;--primary2:#3b82f6;--navy:#0f2747;--green:#10b981;--orange:#f59e0b;--red:#ef4444;--purple:#8b5cf6;--bg:#f8fafc;--border:#e5e7eb;--text:#1e293b;--muted:#64748b;--white:#fff;--shadow:0 8px 30px rgba(15,39,71,.08);--radius:16px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,sans-serif;background:var(--bg);color:var(--text);font-size:14px}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}img{max-width:100%}
.app{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:260px;background:var(--navy);color:#cbd5e1;padding:24px 16px;z-index:30;overflow:auto}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 24px;color:#fff}.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--primary2),#60a5fa);display:grid;place-items:center;color:#fff;font-weight:800;font-size:20px;box-shadow:0 8px 24px #2563eb55}.brand strong{display:block;font-size:15px}.brand span{font-size:11px;color:#94a3b8}.nav-label{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#64748b;padding:18px 12px 8px}.nav-link{display:flex;align-items:center;gap:12px;padding:11px 12px;margin:3px 0;border-radius:10px;font-weight:500;transition:.2s}.nav-link svg{width:18px}.nav-link:hover,.nav-link.active{background:#ffffff13;color:#fff}.nav-link.active{box-shadow:inset 3px 0 var(--primary2)}
.brand-logo{width:42px;height:42px;border-radius:12px;object-fit:contain;background:#fff;padding:3px}.provider-note{margin:22px 12px 0;padding-top:15px;border-top:1px solid #ffffff18;font-size:10px;color:#94a3b8}.provider-note strong{color:#cbd5e1}.logo-preview{display:flex;align-items:center;gap:15px}.logo-preview img{width:80px;height:80px;object-fit:contain;border:1px solid var(--border);border-radius:12px;padding:5px;background:#fff}
.id-card .id-top .brand-mark{font-size:0}.id-card .id-top .brand-mark::after{content:"S";font-size:18px}
.main{margin-left:260px;min-height:100vh}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:20}.top-actions{display:flex;align-items:center;gap:12px}.icon-btn{width:40px;height:40px;border:1px solid var(--border);background:#fff;border-radius:12px;display:grid;place-items:center}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#dbeafe;color:var(--primary);font-weight:700}.user-chip{display:flex;gap:10px;align-items:center}.user-chip small{display:block;color:var(--muted)}.content{padding:28px 30px 60px;max-width:1600px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.page-head h1{font-size:26px;margin:0 0 6px}.muted{color:var(--muted)}
.grid{display:grid;gap:18px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px}.stat-card,.card{background:#fff;border:1px solid #eef2f7;border-radius:var(--radius);box-shadow:var(--shadow)}.stat-card{padding:20px;display:flex;justify-content:space-between;align-items:flex-start}.stat-card small{color:var(--muted);font-weight:600}.stat-card h2{font-size:27px;margin:9px 0 5px}.trend{font-size:12px;color:var(--green)}.stat-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center}.stat-icon.blue{background:#dbeafe;color:var(--primary)}.stat-icon.green{background:#d1fae5;color:#059669}.stat-icon.orange{background:#fef3c7;color:#d97706}.stat-icon.purple{background:#ede9fe;color:#7c3aed}.stat-icon svg{width:22px}.card{padding:22px}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.card-head h2,.card-head h3{margin:0;font-size:17px}.two-col{grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr)}.quick-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.quick{padding:15px 10px;border:1px solid var(--border);border-radius:13px;text-align:center;background:#fff;transition:.2s}.quick:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:var(--shadow)}.quick svg{display:block;margin:0 auto 8px;color:var(--primary)}
.btn{border:0;border-radius:10px;padding:10px 15px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn.primary{background:var(--primary);color:#fff}.btn.secondary{background:#eff6ff;color:var(--primary)}.btn.danger{background:#fee2e2;color:#dc2626}.btn.ghost{background:#fff;border:1px solid var(--border)}.btn.sm{padding:7px 10px;font-size:12px}.btn svg{width:16px}.actions{display:flex;gap:8px;flex-wrap:wrap}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.toolbar input,.toolbar select{min-width:150px}.field,input,select,textarea{width:100%;border:1px solid #dbe3ed;border-radius:10px;padding:10px 12px;background:#fff;color:var(--text);outline:none}.field:focus,input:focus,select:focus,textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #dbeafe}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid h3{grid-column:1/-1;border-bottom:1px solid var(--border);padding:12px 0;margin:8px 0 0}.form-grid label{font-weight:600;font-size:13px}.form-grid label input,.form-grid label select,.form-grid label textarea{margin-top:7px;font-weight:400}.full{grid-column:1/-1}small.help{display:block;color:var(--muted);font-weight:400;margin-top:5px}
.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:12px}table{width:100%;border-collapse:collapse;white-space:nowrap}th{background:#f8fafc;text-align:left;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.04em}th,td{padding:13px 15px;border-bottom:1px solid var(--border)}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcff}.student-cell{display:flex;align-items:center;gap:10px}.mini-photo{width:36px;height:36px;border-radius:10px;object-fit:cover;background:#e2e8f0;display:grid;place-items:center;color:#64748b;font-weight:700}.badge{display:inline-flex;padding:5px 9px;border-radius:99px;font-size:11px;font-weight:700}.badge.green{background:#d1fae5;color:#047857}.badge.red{background:#fee2e2;color:#b91c1c}.badge.orange{background:#fef3c7;color:#b45309}.badge.blue{background:#dbeafe;color:#1d4ed8}.badge.gray{background:#e2e8f0;color:#475569}.empty{text-align:center;padding:45px 20px;color:var(--muted)}.pagination{display:flex;justify-content:flex-end;gap:7px;margin-top:15px}.pagination a{padding:7px 11px;background:#fff;border:1px solid var(--border);border-radius:8px}.pagination a.active{background:var(--primary);color:#fff}
.alert{padding:13px 15px;border-radius:10px;margin-bottom:18px}.alert.success{background:#d1fae5;color:#065f46}.alert.error{background:#fee2e2;color:#991b1b}.alert.info{background:#dbeafe;color:#1e40af}.activity{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.activity:last-child{border:0}.activity-dot{width:9px;height:9px;border-radius:50%;background:var(--primary);margin-top:6px;flex:0 0 auto}.activity p{margin:0}.activity small{color:var(--muted)}
.auth-page{min-height:100vh;background:linear-gradient(135deg,#071a31,#0f2747 55%,#17487d);display:grid;place-items:center;padding:24px}.auth-shell{width:min(980px,100%);display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 30px 80px #0005;min-height:600px}.auth-visual{padding:50px;background:linear-gradient(145deg,#0f2747dd,#2563ebdd),url('../images/school.svg') center/cover;color:#fff;display:flex;flex-direction:column;justify-content:space-between}.auth-visual h1{font-size:38px;line-height:1.15;margin:25px 0 15px}.auth-visual p{color:#dbeafe;font-size:15px;line-height:1.7}.secure-note{background:#ffffff14;border:1px solid #ffffff22;border-radius:14px;padding:15px}.auth-form{padding:55px;display:flex;flex-direction:column;justify-content:center}.auth-form h2{font-size:28px;margin:0 0 8px}.auth-form label{display:block;font-weight:600;margin:18px 0 7px}.password-wrap{position:relative}.password-wrap button{position:absolute;right:7px;top:6px;background:none;border:0;padding:7px}.auth-links{display:flex;justify-content:space-between;margin:14px 0 22px;color:var(--primary);font-size:13px}.auth-form .btn{width:100%;padding:13px}.auth-footer{margin-top:28px;text-align:center;color:var(--muted);font-size:12px}.install-card{background:#fff;border-radius:20px;padding:38px;width:min(720px,100%);box-shadow:0 25px 60px #0004}.install-card h1{margin-bottom:6px}.success-panel{text-align:center;padding:30px 0}
.profile-head{display:flex;gap:20px;align-items:center}.profile-photo{width:100px;height:100px;border-radius:18px;object-fit:cover;background:#e2e8f0;display:grid;place-items:center;font-size:30px;font-weight:700}.profile-meta h1{margin:0 0 8px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.detail-item span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.id-card{width:324px;height:204px;border-radius:13px;overflow:hidden;background:#fff;box-shadow:0 10px 30px #0002;border:1px solid var(--border);position:relative}.id-top{height:55px;background:var(--navy);color:#fff;padding:10px 14px;display:flex;gap:10px;align-items:center}.id-body{padding:12px;display:flex;gap:12px}.id-photo{width:78px;height:92px;object-fit:cover;background:#e2e8f0;border-radius:7px}.id-data h3{margin:2px 0 7px;font-size:15px}.id-data p{font-size:10px;margin:4px 0}.id-footer{position:absolute;bottom:0;left:0;right:0;height:18px;background:var(--primary)}
.mobile-menu{display:none}.print-only{display:none}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.quick-grid{grid-template-columns:repeat(3,1fr)}.detail-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.open{transform:none}.main{margin-left:0}.mobile-menu{display:grid}.topbar{padding:0 16px}.content{padding:20px 16px 50px}.two-col{grid-template-columns:1fr}.auth-shell{grid-template-columns:1fr}.auth-visual{display:none}.auth-form{padding:35px}.page-head{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.full,.form-grid h3{grid-column:auto}}
@media(max-width:520px){.stats{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(2,1fr)}.user-chip>div:last-child{display:none}.detail-grid{grid-template-columns:1fr}.card{padding:16px}}
@media print{.sidebar,.topbar,.no-print,.btn,.toolbar{display:none!important}.main{margin:0}.content{padding:0;max-width:none}.card{box-shadow:none;border:0}.print-only{display:block}body{background:#fff}.id-card{box-shadow:none;print-color-adjust:exact;-webkit-print-color-adjust:exact}.table-wrap{overflow:visible}}

/* Glassmorphic 3D login experience */
body.auth-page:has(.auth-shell){
 min-height:100vh;
 position:relative;
 isolation:isolate;
 overflow-x:hidden;
 perspective:1600px;
 background:
  linear-gradient(115deg,rgba(4,30,66,.36),rgba(37,99,235,.18) 48%,rgba(239,246,255,.24)),
  url('../../rishi.png') center/cover fixed no-repeat;
}
body.auth-page:has(.auth-shell)::before,
body.auth-page:has(.auth-shell)::after{
 content:"";
 position:fixed;
 z-index:-1;
 border-radius:50%;
 filter:blur(8px);
 pointer-events:none;
}
body.auth-page:has(.auth-shell)::before{width:340px;height:340px;left:4vw;top:7vh;background:radial-gradient(circle,rgba(255,255,255,.48),rgba(96,165,250,.08) 68%,transparent 72%)}
body.auth-page:has(.auth-shell)::after{width:420px;height:420px;right:-80px;bottom:-130px;background:radial-gradient(circle,rgba(37,99,235,.35),rgba(255,255,255,.08) 63%,transparent 70%)}
body.auth-page:has(.auth-shell) .auth-shell{
 width:min(1040px,calc(100vw - 48px));
 min-height:620px;
 overflow:hidden;
 position:relative;
 border:1px solid rgba(255,255,255,.72);
 border-radius:30px;
 background:linear-gradient(135deg,rgba(219,234,254,.22),rgba(255,255,255,.38));
 box-shadow:0 42px 90px rgba(7,26,49,.38),0 16px 34px rgba(37,99,235,.22),inset 0 1px 1px rgba(255,255,255,.95),inset 0 -1px 0 rgba(96,165,250,.2);
 backdrop-filter:blur(22px) saturate(150%);
 -webkit-backdrop-filter:blur(22px) saturate(150%);
 transform:rotateX(1.2deg) rotateY(-1deg) translateZ(0);
 transform-style:preserve-3d;
 transition:transform .45s ease,box-shadow .45s ease;
}
body.auth-page:has(.auth-shell) .auth-shell:hover{transform:rotateX(0) rotateY(0) translateY(-4px);box-shadow:0 50px 105px rgba(7,26,49,.42),0 20px 42px rgba(37,99,235,.26),inset 0 1px 1px rgba(255,255,255,.98)}
body.auth-page:has(.auth-shell) .auth-shell::after{content:"";position:absolute;inset:9px;border:1px solid rgba(255,255,255,.32);border-radius:23px;pointer-events:none;z-index:3}
body.auth-page:has(.auth-shell) .auth-visual{
 position:relative;
 z-index:1;
 padding:56px;
 background:linear-gradient(145deg,rgba(7,36,82,.82),rgba(37,99,235,.56) 58%,rgba(147,197,253,.28));
 border-right:1px solid rgba(255,255,255,.38);
 text-shadow:0 2px 18px rgba(7,26,49,.4);
}
body.auth-page:has(.auth-shell) .auth-visual::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(115deg,rgba(255,255,255,.13),transparent 38%,rgba(255,255,255,.08));box-shadow:inset -20px 0 45px rgba(15,39,71,.12)}
body.auth-page:has(.auth-shell) .auth-visual h1{font-size:42px;letter-spacing:-.035em;text-shadow:0 7px 24px rgba(7,26,49,.42)}
body.auth-page:has(.auth-shell) .auth-visual p{color:#eff6ff;text-shadow:0 2px 12px rgba(7,26,49,.38)}
body.auth-page:has(.auth-shell) .secure-note{background:linear-gradient(135deg,rgba(255,255,255,.19),rgba(219,234,254,.08));border:1px solid rgba(255,255,255,.42);box-shadow:0 15px 35px rgba(7,26,49,.2),inset 0 1px rgba(255,255,255,.36);backdrop-filter:blur(12px)}
body.auth-page:has(.auth-shell) .auth-form{
 position:relative;
 z-index:1;
 padding:58px;
 color:#102a4c;
 background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(239,246,255,.68) 54%,rgba(191,219,254,.48));
 box-shadow:inset 18px 0 45px rgba(255,255,255,.2);
 backdrop-filter:blur(22px);
}
body.auth-page:has(.auth-shell) .auth-form::before{content:"";position:absolute;width:180px;height:180px;right:-55px;top:-55px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.75),rgba(96,165,250,.1) 60%,transparent 68%);pointer-events:none}
body.auth-page:has(.auth-shell) .auth-form h2{color:#0f3568;font-size:31px;letter-spacing:-.025em}
body.auth-page:has(.auth-shell) .auth-form input{border:1px solid rgba(96,165,250,.42);background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(239,246,255,.7));box-shadow:inset 0 1px 1px rgba(255,255,255,.95),0 7px 18px rgba(37,99,235,.08);transition:border-color .2s,box-shadow .2s,transform .2s}
body.auth-page:has(.auth-shell) .auth-form input:focus{border-color:#3b82f6;box-shadow:0 0 0 4px rgba(147,197,253,.3),0 10px 24px rgba(37,99,235,.13);transform:translateY(-1px)}
body.auth-page:has(.auth-shell) .password-wrap button{color:#1d4ed8}
body.auth-page:has(.auth-shell) .auth-form .btn.primary{border:1px solid rgba(255,255,255,.45);background:linear-gradient(135deg,#1d4ed8,#3b82f6 58%,#60a5fa);box-shadow:0 13px 28px rgba(37,99,235,.32),inset 0 1px 1px rgba(255,255,255,.45);transition:transform .2s,box-shadow .2s}
body.auth-page:has(.auth-shell) .auth-form .btn.primary:hover{transform:translateY(-2px);box-shadow:0 17px 34px rgba(37,99,235,.4),inset 0 1px 1px rgba(255,255,255,.55)}
body.auth-page:has(.auth-shell) .auth-footer{color:#45617e}
body.auth-page:has(.auth-shell) .auth-footer a,body.auth-page:has(.auth-shell) .auth-links a{color:#1d4ed8;font-weight:600}

@media(max-width:800px){
 body.auth-page:has(.auth-shell){padding:18px;background-position:62% center}
 body.auth-page:has(.auth-shell) .auth-shell{width:100%;min-height:auto;grid-template-columns:1fr;transform:none;border-radius:25px}
 body.auth-page:has(.auth-shell) .auth-shell:hover{transform:none}
 body.auth-page:has(.auth-shell) .auth-visual{display:none}
 body.auth-page:has(.auth-shell) .auth-form{padding:42px 32px;background:linear-gradient(145deg,rgba(255,255,255,.91),rgba(219,234,254,.72))}
}
@media(max-width:520px){
 body.auth-page:has(.auth-shell){padding:12px}
 body.auth-page:has(.auth-shell) .auth-form{padding:34px 22px}
 body.auth-page:has(.auth-shell) .auth-form h2{font-size:27px}
 body.auth-page:has(.auth-shell) .auth-links{gap:12px;align-items:center}
}

/* Login uses one focused glass card; promotional panel intentionally hidden. */
body.auth-page:has(.auth-shell) .auth-shell{
 width:min(500px,calc(100vw - 48px));
 min-height:auto;
 grid-template-columns:1fr;
}
body.auth-page:has(.auth-shell) .auth-visual{display:none}
body.auth-page:has(.auth-shell) .auth-form{
 min-height:610px;
 border-radius:29px;
 background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(239,246,255,.72) 52%,rgba(147,197,253,.5));
}
@media(max-width:520px){
 body.auth-page:has(.auth-shell) .auth-shell{width:100%}
 body.auth-page:has(.auth-shell) .auth-form{min-height:auto}
}

/* Explicit login selectors avoid stale/unsupported :has() behavior. */
body.auth-page.login-screen{
 min-height:100vh;
 display:grid;
 place-items:center;
 padding:24px;
 position:relative;
 isolation:isolate;
 overflow:hidden;
 perspective:1600px;
 background:linear-gradient(115deg,rgba(4,30,66,.36),rgba(37,99,235,.14) 48%,rgba(239,246,255,.2)),url('../../rishi.png') center/cover no-repeat;
}
body.auth-page.login-screen::before{content:"";position:fixed;inset:0;z-index:-1;background:radial-gradient(circle at 20% 12%,rgba(255,255,255,.32),transparent 28%),radial-gradient(circle at 88% 88%,rgba(37,99,235,.3),transparent 34%);pointer-events:none}
body.auth-page.login-screen .auth-shell.login-card{
 width:min(500px,calc(100vw - 48px));
 min-height:auto;
 display:block;
 overflow:hidden;
 border:1px solid rgba(255,255,255,.76);
 border-radius:30px;
 background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(219,234,254,.58));
 box-shadow:0 42px 90px rgba(7,26,49,.38),0 16px 34px rgba(37,99,235,.24),inset 0 1px 1px rgba(255,255,255,.98);
 backdrop-filter:blur(24px) saturate(155%);
 -webkit-backdrop-filter:blur(24px) saturate(155%);
 transform:rotateX(1deg) rotateY(-1deg);
 transition:transform .4s ease,box-shadow .4s ease;
}
body.auth-page.login-screen .auth-shell.login-card:hover{transform:rotateX(0) rotateY(0) translateY(-4px);box-shadow:0 50px 105px rgba(7,26,49,.42),0 20px 42px rgba(37,99,235,.28),inset 0 1px 1px rgba(255,255,255,.98)}
body.auth-page.login-screen .auth-shell.login-card::after{content:"";position:absolute;inset:9px;border:1px solid rgba(255,255,255,.36);border-radius:23px;pointer-events:none;z-index:3}
body.auth-page.login-screen .auth-form{
 min-height:auto;
 padding:46px 58px 38px;
 position:relative;
 z-index:1;
 border-radius:29px;
 color:#102a4c;
 background:linear-gradient(145deg,rgba(255,255,255,.91),rgba(239,246,255,.74) 52%,rgba(147,197,253,.5));
 box-shadow:inset 18px 0 45px rgba(255,255,255,.25);
}
body.auth-page.login-screen .login-brand{display:flex;align-items:center;justify-content:center;gap:13px;margin-bottom:34px;color:#0f3568;text-align:center}
body.auth-page.login-screen .login-brand strong{display:block;font-size:24px;letter-spacing:-.025em}
body.auth-page.login-screen .login-brand small{display:block;margin-top:3px;color:#4f6f91;font-size:11px}
body.auth-page.login-screen .login-brand .brand-mark{flex:0 0 42px}
body.auth-page.login-screen .auth-form h2{color:#0f3568;font-size:31px;letter-spacing:-.025em}
body.auth-page.login-screen .auth-form input{border:1px solid rgba(96,165,250,.45);background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(239,246,255,.72));box-shadow:inset 0 1px 1px rgba(255,255,255,.95),0 7px 18px rgba(37,99,235,.08)}
body.auth-page.login-screen .auth-form .btn.primary{border:1px solid rgba(255,255,255,.46);background:linear-gradient(135deg,#1d4ed8,#3b82f6 58%,#60a5fa);box-shadow:0 13px 28px rgba(37,99,235,.34),inset 0 1px 1px rgba(255,255,255,.45)}
@media(max-width:520px){
 body.auth-page.login-screen{padding:12px;background-position:60% center;overflow-y:auto}
 body.auth-page.login-screen .auth-shell.login-card{width:100%;transform:none;border-radius:24px}
 body.auth-page.login-screen .auth-shell.login-card:hover{transform:none}
 body.auth-page.login-screen .auth-form{min-height:auto;padding:34px 22px;border-radius:23px}
 body.auth-page.login-screen .login-brand{margin-bottom:28px}
}

html.login-html{
 width:100%;
 min-width:100%;
 min-height:100%;
 margin:0;
 overflow:hidden;
 background:linear-gradient(115deg,rgba(4,30,66,.36),rgba(37,99,235,.14) 48%,rgba(239,246,255,.2)),url('../../rishi.png') center/cover no-repeat;
}
html.login-html body.login-screen{width:100vw;min-width:100vw;max-width:none;margin:0;background-color:transparent}
