@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --navy: #0f172a;
    --sidebar: #101c36;
    --sidebar-soft: #182747;
    --surface: #ffffff;
    --background: #f4f7fb;
    --text: #172033;
    --muted: #718096;
    --border: #e6ebf3;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --shadow: 0 14px 35px rgba(15, 23, 42, .07);
    --radius: 18px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    font-family: "Cairo", sans-serif;
    color: var(--text);
    background: var(--background);
    margin: 0;
}

a { text-decoration: none; }

.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: 11px;
    min-height: 46px;
    box-shadow: none !important;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(37, 99, 235, .65);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .08) !important;
}

.btn {
    border-radius: 11px;
    font-weight: 700;
    padding: .65rem 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    border-color: var(--primary);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 275px;
    flex: 0 0 275px;
    background: linear-gradient(180deg, var(--sidebar), #0d1730);
    color: white;
    min-height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease;
}

.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    gap: 13px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-mark {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    font-size: 20px;
    box-shadow: 0 8px 22px rgba(59,130,246,.3);
}

.sidebar-brand strong {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    max-width: 175px;
}

.sidebar-brand small {
    display: block;
    color: #9fb0d0;
    font-size: 10px;
    margin-top: 2px;
}

.sidebar-nav {
    padding: 18px 12px;
    overflow-y: auto;
    flex: 1;
}

.sidebar-nav a {
    color: #b7c5df;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 5px;
    border-radius: 12px;
    font-size: 14px;
    transition: .2s ease;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: #fff;
    background: var(--sidebar-soft);
    transform: translateX(-2px);
}

.sidebar-nav a.active {
    box-shadow: inset -3px 0 0 #60a5fa;
}

.sidebar-nav i { width: 22px; text-align: center; }

.nav-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: 15px 8px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #9fb0d0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34,197,94,.12);
}

.main-area {
    margin-right: 275px;
    width: calc(100% - 275px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 84px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.sidebar-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    display: none;
}

.topbar-title { flex: 1; }

.topbar-title h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.topbar-title p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.user-menu img, .avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
}

.avatar-placeholder {
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #64748b, #334155);
    font-weight: 800;
}

.content-area {
    padding: 26px;
    flex: 1;
}

.app-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 12px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-panel { padding: 24px; }

.panel-header {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.panel-header h3 { margin: 0; font-size: 17px; font-weight: 800; }
.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.welcome-panel {
    background:
        radial-gradient(circle at 12% 10%, rgba(96,165,250,.35), transparent 28%),
        linear-gradient(135deg, #172554, #1e3a8a 62%, #2563eb);
    color: white;
    padding: 28px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    box-shadow: 0 18px 35px rgba(30,64,175,.18);
}

.welcome-panel .eyebrow { color: #bfdbfe; font-size: 13px; }
.welcome-panel h2 { font-size: 26px; font-weight: 800; margin: 6px 0; }
.welcome-panel p { margin: 0; color: #dbeafe; }

.welcome-year {
    min-width: 220px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.09);
    border-radius: 16px;
    backdrop-filter: blur(7px);
}

.welcome-year span, .welcome-year small { display: block; color: #bfdbfe; font-size: 12px; }
.welcome-year strong { display: block; font-size: 20px; margin: 5px 0; }
.welcome-year a { color: white; font-weight: 700; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 19px;
}

.icon-blue { background: #dbeafe; color: #2563eb; }
.icon-green { background: #dcfce7; color: #16a34a; }
.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-orange { background: #ffedd5; color: #ea580c; }
.icon-teal { background: #ccfbf1; color: #0f766e; }

.stat-card span { color: var(--muted); font-size: 11px; display: block; }
.stat-card strong { display: block; font-size: 24px; margin-top: 2px; }

.timeline { padding: 10px 22px 20px; }
.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 16px 1fr auto;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
}
.timeline-item:last-child { border: 0; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-top: 6px; }
.timeline-item strong { font-size: 13px; }
.timeline-item p, .timeline-item time { color: var(--muted); font-size: 11px; margin: 3px 0 0; }

.release-list { padding: 15px 22px 22px; }
.release-list div { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.release-list i { color: var(--success); }
.release-list .pending { color: var(--muted); }
.release-list .pending i { color: var(--muted); }

.modern-table { margin: 0; }
.modern-table thead th {
    background: #f8fafc;
    color: #64748b;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    padding: 14px 16px;
    white-space: nowrap;
}
.modern-table td {
    padding: 14px 16px;
    border-color: #eef2f7;
    font-size: 13px;
    vertical-align: middle;
}
.modern-table tbody tr:hover { background: #fbfdff; }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell small { display: block; color: var(--muted); margin-top: 2px; }
.table-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #e0e7ff;
    color: #4338ca;
    font-weight: 800;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    min-width: min(100%, 440px);
}
.search-form > i { position: absolute; right: 14px; color: var(--muted); z-index: 2; }
.search-form .form-control { padding-right: 40px; }

.empty-state { padding: 35px; text-align: center; color: var(--muted); }
.empty-state i { font-size: 34px; margin-bottom: 10px; }
.empty-state p { margin: 0; }

.form-section-title {
    font-weight: 800;
    color: #1e3a8a;
    border-right: 4px solid var(--primary);
    padding-right: 10px;
    margin-bottom: 17px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.role-choice-grid, .permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.choice-card, .permission-item {
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: .2s ease;
}

.choice-card:has(input:checked), .permission-item:has(input:checked) {
    border-color: #93c5fd;
    background: #eff6ff;
}

.choice-card input, .permission-item input { margin-top: 4px; }
.choice-card strong, .permission-item strong { display: block; font-size: 13px; }
.choice-card small, .permission-item small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }

.role-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    height: 100%;
    box-shadow: var(--shadow);
}
.role-card-head { display: flex; justify-content: space-between; align-items: center; }
.role-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #4f46e5; background: #eef2ff; }
.role-card h3 { font-size: 17px; margin: 15px 0 5px; }
.role-card code { font-size: 11px; }
.role-card p { color: var(--muted); font-size: 12px; min-height: 38px; margin: 12px 0; }
.role-metrics { display: flex; gap: 18px; font-size: 12px; color: var(--muted); }
.role-metrics strong { color: var(--text); }

.permission-group { border: 1px solid var(--border); border-radius: 15px; margin-bottom: 15px; overflow: hidden; }
.permission-group h4 { font-size: 14px; background: #f8fafc; padding: 12px 15px; margin: 0; border-bottom: 1px solid var(--border); }
.permission-grid { padding: 13px; }

.upload-card { border: 1px dashed #cbd5e1; padding: 15px; border-radius: 15px; height: 100%; }
.upload-preview { height: 130px; border-radius: 12px; background: #f8fafc; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; color: #94a3b8; font-size: 30px; }
.upload-preview img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.upload-card small { display: block; color: var(--muted); margin-top: 7px; font-size: 10px; }

.position-list { max-height: 460px; overflow: auto; }
.position-item { display: grid; grid-template-columns: 1fr 64px 38px 38px; gap: 7px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.sort-input { text-align: center; }
.mini-switch input { display: none; }
.mini-switch span { width: 34px; height: 19px; background: #cbd5e1; display: block; border-radius: 20px; position: relative; cursor: pointer; }
.mini-switch span::after { content: ""; width: 13px; height: 13px; background: white; border-radius: 50%; position: absolute; top: 3px; right: 3px; transition: .2s; }
.mini-switch input:checked + span { background: var(--success); }
.mini-switch input:checked + span::after { transform: translateX(-15px); }

.profile-head { display: flex; align-items: center; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.profile-head h3 { margin: 0; }
.profile-head p { color: var(--muted); margin: 4px 0 0; }
.profile-avatar-large { width: 82px; height: 82px; border-radius: 22px; overflow: hidden; background: #e0e7ff; color: #4338ca; display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.info-list div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.info-list span { color: var(--muted); font-size: 12px; }
.info-list strong { font-size: 12px; text-align: left; }

.audit-json { width: min(620px, 70vw); margin-top: 10px; background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 12px; direction: ltr; text-align: left; }
.audit-json pre { white-space: pre-wrap; font-size: 11px; margin: 5px 0 12px; color: #bfdbfe; }

.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #eff6ff, #f8fafc 45%, #eef2ff);
    display: grid;
    place-items: center;
    padding: 25px;
    position: relative;
    overflow-x: hidden;
}

.auth-decoration { position: fixed; border-radius: 50%; filter: blur(2px); opacity: .45; }
.auth-decoration-one { width: 360px; height: 360px; background: #bfdbfe; top: -140px; right: -100px; }
.auth-decoration-two { width: 300px; height: 300px; background: #ddd6fe; bottom: -120px; left: -100px; }

.auth-wrapper { width: min(100%, 540px); position: relative; z-index: 2; }

.auth-card, .install-card {
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 70px rgba(30,41,59,.12);
    backdrop-filter: blur(16px);
}

.install-card { width: min(94vw, 820px); margin-inline: calc((540px - min(94vw, 820px))/2); }
.install-header { display: flex; gap: 16px; align-items: center; margin-bottom: 25px; }
.install-header h1 { font-size: 22px; margin: 0 0 5px; font-weight: 800; }
.install-header p { color: var(--muted); margin: 0; }

.auth-logo { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, #1d4ed8, #60a5fa); font-size: 28px; box-shadow: 0 14px 30px rgba(37,99,235,.25); margin: 0 auto 18px; }
.install-header .auth-logo { margin: 0; flex: 0 0 auto; }
.auth-card h1 { font-size: 22px; font-weight: 800; }
.auth-card p { color: var(--muted); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; top: 15px; right: 15px; color: #94a3b8; }
.input-icon .form-control { padding-right: 43px; }
.password-toggle { position: absolute; left: 10px; top: 8px; border: 0; background: transparent; color: #64748b; width: 34px; height: 30px; }
.auth-note { color: var(--muted); background: #f8fafc; border-radius: 12px; padding: 12px; font-size: 11px; margin-top: 18px; text-align: center; }
.requirements-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.requirement { padding: 11px; border-radius: 11px; display: flex; gap: 8px; align-items: center; font-size: 12px; }
.requirement.passed { background: #f0fdf4; color: #15803d; }
.requirement.failed { background: #fef2f2; color: #b91c1c; }

.error-page { min-height: 60vh; display: grid; place-items: center; align-content: center; text-align: center; gap: 10px; padding: 30px; }
.error-code { font-size: 82px; font-weight: 800; line-height: 1; color: #cbd5e1; }
.error-page h1 { font-size: 25px; margin: 0; }
.error-page p { color: var(--muted); }

.sidebar-overlay { display: none; }

@media (max-width: 1199.98px) {
    .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(100%); }
    .sidebar.open { transform: translateX(0); }
    .main-area { margin-right: 0; width: 100%; }
    .sidebar-toggle { display: inline-grid; place-items: center; }
    .sidebar-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 1025; }
    .sidebar-overlay.show { display: block; }
    .role-choice-grid, .permission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .content-area { padding: 15px; }
    .topbar { padding: 0 14px; height: 74px; }
    .topbar-title h1 { font-size: 16px; }
    .topbar-title p { display: none; }
    .welcome-panel { align-items: stretch; flex-direction: column; padding: 21px; }
    .welcome-panel h2 { font-size: 21px; }
    .welcome-year { min-width: auto; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-header { padding: 16px; }
    .form-panel { padding: 17px; }
    .role-choice-grid, .permission-grid { grid-template-columns: 1fr; }
    .app-footer { flex-direction: column; text-align: center; }
    .requirements-grid { grid-template-columns: 1fr; }
    .install-card { margin-inline: 0; padding: 20px; }
    .install-header { align-items: flex-start; }
    .search-form { min-width: 100%; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .auth-body { padding: 12px; }
    .auth-card { padding: 22px 18px; }
    .position-item { grid-template-columns: 1fr 55px 34px 34px; }
}

@media print {
    .sidebar, .topbar, .app-footer, .sidebar-overlay, .btn, form { display: none !important; }
    .main-area { margin: 0; width: 100%; }
    .content-area { padding: 0; }
    .panel { box-shadow: none; border: 0; }
}

.signature-preview {
    height: 110px;
    border: 1px dashed var(--border);
    border-radius: 13px;
    background: #f8fafc;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.signature-preview img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 8px; }
.signature-link { margin-right: 7px; color: #7c3aed; }

/* V1.1 — Academic structure */
.academic-subnav {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    scrollbar-width: thin;
}
.academic-subnav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    white-space: nowrap;
    padding: 10px 13px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
}
.academic-subnav a:hover, .academic-subnav a.active {
    color: #1d4ed8;
    background: #eff6ff;
}
.academic-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a8a 60%, #2563eb);
    color: #fff;
    border-radius: 22px;
    padding: 27px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    box-shadow: 0 18px 35px rgba(30,64,175,.16);
}
.academic-hero .eyebrow { color: #bfdbfe; font-size: 12px; }
.academic-hero h2 { margin: 5px 0 7px; font-size: 24px; font-weight: 800; }
.academic-hero p { margin: 0; color: #dbeafe; font-size: 13px; }
.academic-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.filter-bar { padding: 16px 22px; background: #fbfdff; border-bottom: 1px solid var(--border); }
.setup-steps { padding: 10px 22px 20px; }
.setup-steps > div { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--border); }
.setup-steps > div:last-child { border-bottom: 0; }
.setup-steps > div > span { width: 30px; height: 30px; border-radius: 10px; background: #dbeafe; color: #1d4ed8; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.setup-steps p { margin: 0; }
.setup-steps strong, .setup-steps small { display: block; }
.setup-steps strong { font-size: 13px; }
.setup-steps small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.update-hero { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 18px; background: #eff6ff; }
.update-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: #2563eb; color: #fff; font-size: 25px; flex: 0 0 auto; }
.update-hero span { color: var(--muted); font-size: 11px; }
.update-hero h2 { margin: 4px 0; font-size: 24px; font-weight: 800; }
.update-hero p { margin: 0; color: #64748b; font-size: 12px; }

@media (max-width: 1399.98px) {
    .academic-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .academic-hero { flex-direction: column; align-items: stretch; padding: 21px; }
    .academic-hero h2 { font-size: 20px; }
    .academic-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-bar { padding: 14px; }
    .update-hero { align-items: flex-start; }
}
@media (max-width: 480px) {
    .academic-stats { grid-template-columns: 1fr; }
    .update-hero { flex-direction: column; }
}

/* V1.2 — Students, credentials and configurable footer */
.student-cell { display: flex; align-items: center; gap: 11px; min-width: 245px; }
.student-cell img, .student-avatar-placeholder { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.student-avatar-placeholder { display: grid; place-items: center; color: #2563eb; background: #eff6ff; font-size: 18px; }
.student-cell strong, .student-cell small { display: block; }
.student-cell small { color: var(--muted); font-size: 10px; margin-top: 3px; direction: ltr; text-align: right; }
.student-photo-upload .upload-preview { height: 220px; }
.student-photo-upload .upload-preview img { object-fit: cover; padding: 0; }
.student-profile-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; }
.student-profile-card { padding: 25px; text-align: center; }
.student-profile-photo { width: 145px; height: 165px; margin: 0 auto 16px; border-radius: 24px; background: #eff6ff; color: #2563eb; display: grid; place-items: center; overflow: hidden; font-size: 50px; }
.student-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.student-profile-card h2 { font-size: 19px; font-weight: 800; margin: 0 0 10px; line-height: 1.7; }
.student-profile-actions { margin-top: 22px; display: flex; gap: 8px; justify-content: center; }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.details-grid > div { padding: 13px; border: 1px solid var(--border); border-radius: 13px; background: #fbfdff; }
.details-grid > div.wide { grid-column: span 2; }
.details-grid span, .details-grid strong { display: block; }
.details-grid span { color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.details-grid strong { font-size: 12px; line-height: 1.7; }
.credential-panel { background: linear-gradient(180deg, #fff, #f8fbff); }
.credential-display { border: 1px solid var(--border); border-radius: 15px; overflow: hidden; margin-bottom: 14px; }
.credential-display > div { display: flex; justify-content: space-between; gap: 15px; padding: 13px 14px; border-bottom: 1px solid var(--border); align-items: center; }
.credential-display > div:last-child { border-bottom: 0; }
.credential-display span { color: var(--muted); font-size: 11px; }
.credential-display code, .initial-credential-box code { font-size: 14px; direction: ltr; }
.credential-secret { background: #0f172a; color: #fef08a !important; padding: 6px 10px; border-radius: 9px; font-size: 17px !important; letter-spacing: 2px; }
.footer-preview { background: #0f172a; color: #e2e8f0; border-radius: 15px; padding: 17px; display: flex; justify-content: space-between; gap: 15px; }
.auth-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; gap: 15px; padding: 12px 24px; color: #64748b; font-size: 11px; background: rgba(255,255,255,.72); border-top: 1px solid rgba(226,232,240,.85); backdrop-filter: blur(12px); }
.student-access-link { display: flex; align-items: center; justify-content: center; margin-top: 14px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; padding: 11px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.student-access-card { width: min(100%, 560px); }
.initial-credential-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; border: 1px solid #bfdbfe; background: #eff6ff; padding: 17px; border-radius: 15px; margin-bottom: 15px; }
.initial-credential-box span { color: #64748b; font-size: 11px; }
.initial-credential-box strong { font-size: 13px; }
.success-icon { width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #16a34a; font-size: 40px; }

@media (max-width: 991.98px) {
    .student-profile-grid { grid-template-columns: 1fr; }
    .student-profile-card { display: grid; grid-template-columns: 105px 1fr; text-align: right; column-gap: 17px; align-items: center; }
    .student-profile-photo { width: 105px; height: 120px; grid-row: span 3; margin: 0; }
    .student-profile-actions { justify-content: flex-start; margin-top: 8px; }
}
@media (max-width: 767.98px) {
    .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-footer, .footer-preview { flex-direction: column; text-align: center; gap: 4px; }
    .auth-body { padding-bottom: 78px; }
}
@media (max-width: 480px) {
    .details-grid { grid-template-columns: 1fr; }
    .details-grid > div.wide { grid-column: auto; }
    .student-profile-card { display: block; text-align: center; }
    .student-profile-photo { margin: 0 auto 15px; width: 125px; height: 145px; }
    .student-profile-actions { justify-content: center; }
    .initial-credential-box { grid-template-columns: 1fr; text-align: center; }
}

/* V1.3.1 — Student photo sizing and profile layout hotfix */
.student-profile-grid,
.student-profile-card,
.student-profile-card > *,
.details-grid,
.details-grid > div,
.student-cell,
.student-cell > div {
    min-width: 0;
}

.student-profile-card,
.student-photo-upload,
.student-profile-photo,
.student-photo-upload .upload-preview {
    overflow: hidden;
}

.student-profile-photo,
.student-photo-upload .upload-preview {
    position: relative;
    isolation: isolate;
}

.student-profile-photo img,
.student-photo-upload .upload-preview img,
.student-cell img.student-photo-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center 18%;
}

.student-cell img.student-photo-image {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px;
    min-height: 46px;
}

.student-profile-photo {
    flex: 0 0 auto;
    aspect-ratio: 29 / 33;
}

.student-profile-card h2,
.student-cell strong,
.details-grid strong,
.credential-display strong,
.credential-display code {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.student-profile-actions {
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    .student-profile-card h2,
    .student-profile-card .badge,
    .student-profile-actions {
        min-width: 0;
    }
}

/* V1.4 Employees and teachers */
.filter-bar { padding: 18px 22px; border-bottom: 1px solid var(--border); background: #fbfdff; }
.employee-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.employee-cell img, .employee-avatar { width: 46px; height: 46px; border-radius: 14px; flex: 0 0 46px; object-fit: cover; object-position: center top; }
.employee-avatar { display: grid; place-items: center; background: #e0e7ff; color: #4338ca; }
.employee-avatar.large { width: 58px; height: 58px; flex-basis: 58px; font-size: 22px; }
.employee-cell strong { display: block; font-size: 13px; }
.employee-cell small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.pagination-wrap { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 22px; border-top: 1px solid var(--border); }
.employee-photo-preview { height: 250px !important; border-radius: 16px; overflow: hidden; background: #f3f6fb; }
.employee-photo-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.teacher-toggle-card { padding: 20px; border: 1px solid #c7d2fe; background: #f5f7ff; border-radius: 16px; }
.employee-profile-hero { padding: 24px; display: grid; grid-template-columns: 110px 1fr auto; gap: 22px; align-items: center; overflow: visible; }
.employee-profile-photo { width: 110px; height: 125px; border-radius: 20px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg,#e0e7ff,#dbeafe); color: #4338ca; font-size: 36px; box-shadow: 0 10px 24px rgba(30,64,175,.12); }
.employee-profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.employee-profile-main .eyebrow { font-size: 11px; color: var(--muted); }
.employee-profile-main h2 { font-size: 24px; font-weight: 800; margin: 5px 0; }
.employee-profile-main p { color: var(--muted); margin-bottom: 12px; }
.employee-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.details-grid { padding: 22px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.details-grid > div { padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: #fbfdff; min-width: 0; }
.details-grid span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.details-grid strong { font-size: 13px; overflow-wrap: anywhere; }
.details-grid .details-wide { grid-column: span 4; }
.account-state { display: flex; gap: 13px; align-items: flex-start; padding: 16px; border-radius: 15px; }
.account-state i { font-size: 23px; margin-top: 2px; }
.account-state strong, .account-state span { display: block; }
.account-state span { font-size: 12px; margin-top: 5px; }
.account-state.success { background: #ecfdf5; color: #166534; }
.account-state.warning { background: #fff7ed; color: #9a3412; }
.account-employee-summary { display: flex; align-items: center; gap: 14px; padding: 16px; background: #f8fafc; border: 1px solid var(--border); border-radius: 15px; }
.account-employee-summary strong, .account-employee-summary span { display: block; }
.account-employee-summary span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.assignment-permissions { display: flex; flex-wrap: wrap; gap: 28px; padding: 18px; border: 1px solid var(--border); border-radius: 15px; background: #fbfdff; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid #fecaca; background: #fff7f7; border-radius: 17px; }
.danger-zone p { color: #991b1b; font-size: 12px; margin: 5px 0 0; }

@media (max-width: 992px) {
    .employee-profile-hero { grid-template-columns: 90px 1fr; }
    .employee-profile-photo { width: 90px; height: 105px; }
    .employee-profile-actions { grid-column: 1 / -1; }
    .details-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .details-grid .details-wide { grid-column: span 2; }
}
@media (max-width: 576px) {
    .employee-profile-hero { grid-template-columns: 1fr; text-align: center; }
    .employee-profile-photo { margin: auto; }
    .employee-profile-actions { justify-content: center; }
    .details-grid { grid-template-columns: 1fr; padding: 15px; }
    .details-grid .details-wide { grid-column: span 1; }
    .danger-zone, .pagination-wrap { flex-direction: column; align-items: stretch; }
}

/* V11.0.15 — sidebar functional grouping */
.sidebar-section-title {
    margin: .9rem .85rem .35rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(148, 163, 184, .16);
    color: rgba(226, 232, 240, .62);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.sidebar-nav > .sidebar-section-title:first-of-type {
    margin-top: .35rem;
    border-top: 0;
    padding-top: .2rem;
}


/* V11.0.84 — school subdomain login identity */
.tenant-school-brand{
    display:flex;align-items:center;gap:14px;padding:14px 16px;margin-bottom:18px;
    border:1px solid #dbe7f6;border-radius:18px;background:linear-gradient(135deg,#f8fbff,#eef5ff);
    text-align:right
}
.tenant-school-logo{
    width:68px;height:68px;flex:0 0 68px;border-radius:16px;background:#fff;border:1px solid #e1e9f5;
    display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 7px 18px rgba(31,86,161,.08)
}
.tenant-school-logo img{width:100%;height:100%;object-fit:contain;padding:6px}
.tenant-school-logo i,.tenant-school-icon i{font-size:30px;color:#2f6fed}
.tenant-school-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.tenant-school-copy strong{font-size:1.05rem;color:#10213d;line-height:1.45}
.tenant-school-copy small{color:#71809a;font-size:.78rem}
.tenant-school-unavailable{border-color:#f0c8c8;background:#fff5f5;color:#8f1d1d}
.tenant-school-unavailable .tenant-school-icon{width:52px;text-align:center}
.tenant-school-unavailable .tenant-school-icon i{color:#c0392b}
.tenant-school-unavailable div:last-child{display:flex;flex-direction:column;gap:3px}


/* V11.0.87 — EduEG360 premium authentication identity */
.edu-auth-page{margin:0;min-height:100vh;background:#eef4fb}
.edu-auth-wrapper{
    min-height:100vh!important;display:grid!important;grid-template-columns:minmax(380px,44%) 1fr;
    padding:0!important;max-width:none!important;margin:0!important;align-items:stretch!important
}
.edu-auth-brand-panel{
    position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;
    padding:clamp(40px,6vw,92px);color:#fff;
    background:
      radial-gradient(circle at 20% 20%,rgba(255,255,255,.16),transparent 28%),
      radial-gradient(circle at 82% 82%,rgba(96,165,250,.28),transparent 34%),
      linear-gradient(145deg,#0b1f47 0%,#123f91 54%,#2869e6 100%)
}
.edu-auth-brand-panel:after{
    content:"";position:absolute;inset:auto -90px -110px auto;width:360px;height:360px;
    border:1px solid rgba(255,255,255,.14);border-radius:50%
}
.edu-brand-content{position:relative;z-index:2;max-width:610px}
.edu-brand-mark{
    width:76px;height:76px;border-radius:23px;display:flex;align-items:center;justify-content:center;
    font-size:33px;color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);
    box-shadow:0 20px 50px rgba(0,0,0,.16);backdrop-filter:blur(10px)
}
.edu-brand-name{font-size:clamp(34px,4vw,58px);font-weight:900;letter-spacing:-1.5px;margin-top:28px;direction:ltr;text-align:right}
.edu-brand-name span{font-weight:500;color:#8ec5ff}
.edu-brand-content h1{font-size:clamp(28px,3vw,45px);margin:4px 0 18px;font-weight:800}
.edu-brand-content>p{font-size:17px;line-height:2;color:#dbeafe;max-width:560px;margin:0}
.edu-brand-features{display:grid;gap:12px;margin-top:32px}
.edu-brand-features span{
    display:flex;align-items:center;gap:12px;width:max-content;max-width:100%;
    padding:10px 14px;border-radius:12px;background:rgba(255,255,255,.075);color:#eef6ff
}
.edu-brand-features i{width:22px;text-align:center;color:#9ecbff}
.edu-brand-signature{margin-top:42px;padding-top:20px;border-top:1px solid rgba(255,255,255,.14);font-size:13px;color:#c9dcf7}
.edu-brand-signature b{padding:0 7px;color:#78b7ff}
.edu-brand-orbit{position:absolute;border:1px solid rgba(255,255,255,.10);border-radius:50%}
.edu-brand-orbit-one{width:520px;height:520px;left:-260px;top:-210px}
.edu-brand-orbit-two{width:220px;height:220px;right:8%;top:8%}

.edu-auth-form-panel{
    position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;
    min-width:0;padding:48px clamp(24px,5vw,84px);background:
    radial-gradient(circle at 90% 10%,rgba(47,111,237,.08),transparent 25%),#f7f9fc
}
.edu-auth-form-panel>.auth-card{
    width:min(100%,540px)!important;max-width:540px!important;margin:0!important;padding:34px!important;
    border:1px solid #e3eaf4!important;border-radius:28px!important;background:rgba(255,255,255,.97)!important;
    box-shadow:0 28px 80px rgba(26,55,101,.13)!important
}
.edu-auth-form-panel .auth-card h1{font-size:25px;color:#12213b;margin-top:8px}
.edu-auth-form-panel .auth-card>p{color:#7b889f}
.edu-auth-form-panel .form-control{
    min-height:52px;border-radius:14px!important;border-color:#dce5f1!important;background:#fbfcfe!important
}
.edu-auth-form-panel .btn-primary{
    min-height:54px;border-radius:14px!important;font-size:16px;font-weight:800;
    box-shadow:0 12px 28px rgba(47,111,237,.23)
}
.edu-auth-footer{margin-top:22px;color:#93a0b5;font-size:12px}
.edu-auth-mobile-brand{display:none}

.tenant-school-brand{
    position:relative;display:block!important;padding:20px!important;margin-bottom:24px!important;
    border-radius:20px!important;background:linear-gradient(135deg,#f8fbff,#eef5ff)!important
}
.tenant-school-kicker{
    font-size:11px;font-weight:800;color:#2f6fed;background:#e6efff;display:inline-flex;
    padding:5px 9px;border-radius:999px;margin-bottom:12px
}
.tenant-school-brand-inner{display:flex;align-items:center;gap:14px}
.tenant-school-logo{width:72px!important;height:72px!important;flex-basis:72px!important}
.tenant-school-copy strong{font-size:1.15rem!important}

@media(max-width:900px){
    .edu-auth-wrapper{display:block!important;min-height:100vh!important}
    .edu-auth-brand-panel{display:none}
    .edu-auth-form-panel{min-height:100vh;padding:28px 18px 40px}
    .edu-auth-mobile-brand{
        display:flex;align-items:center;gap:12px;width:min(100%,540px);margin:0 auto 20px;
        color:#173665
    }
    .edu-auth-mobile-brand .edu-brand-mark{width:54px;height:54px;border-radius:16px;font-size:23px;background:#2f6fed}
    .edu-auth-mobile-brand div:last-child{display:flex;flex-direction:column}
    .edu-auth-mobile-brand strong{font-size:22px;direction:ltr}
    .edu-auth-mobile-brand small{color:#75849a}
    .edu-auth-form-panel>.auth-card{padding:24px!important;border-radius:22px!important}
}
@media(max-width:480px){
    .tenant-school-brand-inner{align-items:flex-start}
    .tenant-school-logo{width:58px!important;height:58px!important;flex-basis:58px!important}
    .tenant-school-copy strong{font-size:1rem!important}
}


/* V11.0.88 — force corrected EduEG360 premium auth layout */
body.edu-auth-page{
    overflow-x:hidden;
    background:#eef4fb!important;
}
body.edu-auth-page .auth-decoration,
body.edu-auth-page .auth-footer{
    display:none!important;
}
.edu-auth-wrapper{
    min-height:100vh;
    display:grid;
    grid-template-columns:minmax(420px,46%) minmax(440px,54%);
    direction:ltr;
}
.edu-auth-brand-panel,
.edu-auth-form-panel{
    direction:rtl;
}
.edu-auth-brand-panel{
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:100vh;
    padding:70px clamp(44px,6vw,96px);
    color:#fff;
    background:
      radial-gradient(circle at 18% 15%,rgba(255,255,255,.18),transparent 28%),
      radial-gradient(circle at 82% 82%,rgba(73,151,255,.28),transparent 34%),
      linear-gradient(145deg,#0a1835 0%,#123f91 55%,#2d72f2 100%);
}
.edu-brand-content{position:relative;z-index:2;max-width:620px}
.edu-brand-mark{
    width:80px;height:80px;border-radius:24px;
    display:flex;align-items:center;justify-content:center;
    font-size:34px;color:#fff;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.22);
    box-shadow:0 20px 50px rgba(0,0,0,.16);
}
.edu-brand-name{
    margin-top:28px;
    font-size:clamp(40px,5vw,68px);
    font-weight:900;
    direction:ltr;
    text-align:right;
    letter-spacing:-2px;
}
.edu-brand-name span{font-weight:500;color:#8fc4ff}
.edu-brand-content h1{
    margin:2px 0 18px;
    font-size:clamp(30px,3vw,46px);
    font-weight:900;
}
.edu-brand-content>p{
    max-width:580px;margin:0;
    color:#dceaff;
    font-size:17px;line-height:2;
}
.edu-brand-features{
    display:grid;gap:12px;margin-top:34px;
}
.edu-brand-features span{
    width:max-content;max-width:100%;
    display:flex;align-items:center;gap:11px;
    padding:10px 14px;border-radius:13px;
    background:rgba(255,255,255,.075);
    border:1px solid rgba(255,255,255,.05);
}
.edu-brand-features i{width:22px;text-align:center;color:#9fcbff}
.edu-brand-signature{
    margin-top:40px;padding-top:20px;
    border-top:1px solid rgba(255,255,255,.14);
    color:#c7daf5;font-size:13px;
}
.edu-brand-orbit{
    position:absolute;border-radius:50%;
    border:1px solid rgba(255,255,255,.10);
}
.edu-brand-orbit-one{width:560px;height:560px;left:-280px;top:-240px}
.edu-brand-orbit-two{width:240px;height:240px;right:8%;top:8%}

.edu-auth-form-panel{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:48px clamp(28px,6vw,90px);
    background:
      radial-gradient(circle at 90% 10%,rgba(47,111,237,.08),transparent 26%),
      #f7f9fc;
}
.edu-auth-form-panel>.auth-card{
    width:min(100%,550px)!important;
    max-width:550px!important;
    margin:0!important;
    padding:34px!important;
    border:1px solid #e1e9f3!important;
    border-radius:28px!important;
    background:rgba(255,255,255,.98)!important;
    box-shadow:0 30px 85px rgba(27,54,98,.14)!important;
}
.edu-auth-form-panel .auth-logo{
    width:64px;height:64px;margin:0 auto 18px;
    border-radius:20px;
}
.central-login-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 12px;
    margin-bottom:10px;
    border-radius:999px;
    background:#e8f0ff;
    color:#2f6fed;
    font-size:12px;
    font-weight:900;
    direction:ltr;
}
.auth-login-heading h1{
    color:#12213b;
    font-size:24px;
    font-weight:900;
}
.auth-login-heading p{color:#7d8ba2}
.edu-auth-form-panel .form-control{
    min-height:54px;
    border-radius:14px!important;
    background:#fbfcfe!important;
}
.edu-auth-form-panel .btn-primary{
    min-height:55px;
    border-radius:14px!important;
    font-size:16px;
    font-weight:900;
    box-shadow:0 13px 30px rgba(47,111,237,.24);
}
.edu-auth-footer{
    margin-top:20px;
    color:#95a2b6;
    font-size:12px;
}
.edu-auth-mobile-brand{display:none}

@media(max-width:960px){
    .edu-auth-wrapper{display:block}
    .edu-auth-brand-panel{display:none}
    .edu-auth-form-panel{
        min-height:100vh;
        padding:28px 18px 40px;
    }
    .edu-auth-mobile-brand{
        width:min(100%,550px);
        display:flex;
        align-items:center;
        gap:12px;
        margin:0 auto 20px;
        color:#163b73;
    }
    .edu-auth-mobile-brand .edu-brand-mark{
        width:54px;height:54px;border-radius:16px;
        font-size:23px;background:#2f6fed;
    }
    .edu-auth-mobile-brand>div:last-child{
        display:flex;flex-direction:column;
    }
    .edu-auth-mobile-brand strong{
        font-size:22px;direction:ltr;
    }
    .edu-auth-mobile-brand small{color:#77869c}
}


/* V11.0.89 — visual polish for EduEG360 login */
.edu-auth-brand-panel{
    isolation:isolate;
}
.edu-auth-brand-panel::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(180deg,rgba(255,255,255,.025),transparent 26%),
        radial-gradient(circle at 75% 18%,rgba(100,184,255,.14),transparent 20%),
        linear-gradient(180deg,transparent 60%,rgba(4,18,45,.24) 100%);
    pointer-events:none;
    z-index:0;
}
.edu-auth-brand-panel::after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    right:-28px;
    width:58px;
    background:linear-gradient(90deg,rgba(19,66,147,.0),rgba(255,255,255,.10));
    clip-path:polygon(0 0,100% 0,55% 100%,0 100%);
    opacity:.5;
    pointer-events:none;
}
.edu-brand-grid{
    position:absolute;
    right:34px;
    top:38px;
    width:155px;
    height:155px;
    opacity:.22;
    background-image:radial-gradient(circle,#8cc6ff 1.5px,transparent 1.7px);
    background-size:17px 17px;
    mask-image:linear-gradient(135deg,#000 0%,transparent 78%);
    z-index:0;
}
.edu-brand-glow{
    position:absolute;
    border-radius:50%;
    filter:blur(4px);
    pointer-events:none;
    z-index:0;
}
.edu-brand-glow-one{
    width:180px;height:180px;
    left:-45px;bottom:24%;
    background:radial-gradient(circle,rgba(29,123,255,.23),transparent 68%);
}
.edu-brand-glow-two{
    width:260px;height:260px;
    right:-90px;bottom:-55px;
    background:radial-gradient(circle,rgba(72,157,255,.20),transparent 70%);
}
.edu-brand-content{z-index:2}

.edu-brand-features{
    gap:10px!important;
    margin-top:30px!important;
}
.edu-brand-features span{
    position:relative;
    min-width:min(100%,390px);
    width:min(100%,390px)!important;
    padding:13px 16px!important;
    border-radius:16px!important;
    background:linear-gradient(135deg,rgba(255,255,255,.11),rgba(255,255,255,.055))!important;
    border:1px solid rgba(170,211,255,.18)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 9px 22px rgba(0,0,0,.07);
    backdrop-filter:blur(10px);
    transition:transform .2s ease,border-color .2s ease,background .2s ease;
}
.edu-brand-features span::before{
    content:"";
    position:absolute;
    right:0;
    top:18%;
    bottom:18%;
    width:3px;
    border-radius:4px;
    background:linear-gradient(180deg,#69b6ff,#2d72f2);
    opacity:.9;
}
.edu-brand-features span:hover{
    transform:translateX(-4px);
    border-color:rgba(170,211,255,.32)!important;
    background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,.07))!important;
}
.edu-brand-features i{
    width:34px!important;height:34px;
    border-radius:10px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,rgba(56,137,255,.9),rgba(33,105,230,.68));
    color:#fff!important;
    box-shadow:0 7px 18px rgba(17,77,178,.24);
    flex:0 0 34px;
}

.edu-brand-schoolline{
    position:absolute;
    left:0;right:0;bottom:0;
    height:155px;
    z-index:1;
    opacity:.55;
    pointer-events:none;
    overflow:hidden;
}
.edu-brand-schoolline::before{
    content:"";
    position:absolute;
    left:0;right:0;bottom:0;
    height:52px;
    background:linear-gradient(180deg,rgba(8,26,58,.15),rgba(5,20,47,.78));
}
.edu-brand-schoolline .school-block{
    position:absolute;
    bottom:34px;
    border:1px solid rgba(151,203,255,.18);
    background:linear-gradient(180deg,rgba(43,100,190,.36),rgba(8,28,63,.7));
    box-shadow:0 -16px 35px rgba(33,113,238,.08);
}
.school-block-a{right:13%;width:145px;height:72px;border-radius:7px 7px 0 0}
.school-block-b{right:30%;width:110px;height:95px;border-radius:7px 7px 0 0}
.school-block-c{right:43%;width:170px;height:58px;border-radius:7px 7px 0 0}
.edu-brand-schoolline .school-block::after{
    content:"";
    position:absolute;
    inset:14px 12px auto;
    height:34px;
    background:
      linear-gradient(90deg,rgba(137,194,255,.22) 0 18%,transparent 18% 25%,
      rgba(137,194,255,.22) 25% 43%,transparent 43% 50%,
      rgba(137,194,255,.22) 50% 68%,transparent 68% 75%,
      rgba(137,194,255,.22) 75% 93%,transparent 93%);
}
.edu-brand-schoolline .school-tree{
    position:absolute;
    bottom:32px;
    width:28px;height:42px;
    border-radius:50% 50% 42% 42%;
    background:rgba(9,32,68,.78);
}
.school-tree-a{right:8%}
.school-tree-b{right:57%}
.edu-brand-schoolline .school-tree::after{
    content:"";position:absolute;
    width:4px;height:18px;background:rgba(8,29,61,.9);
    left:12px;bottom:-10px;border-radius:3px;
}

.edu-brand-signature{
    margin-bottom:92px;
}

.edu-auth-form-panel{
    position:relative;
    overflow:hidden;
}
.edu-auth-form-panel::before{
    content:"";
    position:absolute;
    width:460px;height:460px;
    right:-180px;top:-180px;
    border-radius:50%;
    border:1px solid rgba(47,111,237,.07);
    box-shadow:
      0 0 0 55px rgba(47,111,237,.022),
      0 0 0 110px rgba(47,111,237,.012);
    pointer-events:none;
}
.edu-auth-form-panel::after{
    content:"";
    position:absolute;
    left:18px;bottom:18px;
    width:165px;height:165px;
    opacity:.18;
    background-image:radial-gradient(circle,#6ca8ff 1.5px,transparent 1.6px);
    background-size:15px 15px;
    mask-image:linear-gradient(315deg,#000,transparent 72%);
    pointer-events:none;
}
.edu-auth-form-panel>.auth-card,
.edu-auth-mobile-brand,
.edu-auth-footer{
    position:relative;
    z-index:2;
}

@media(max-width:960px){
    .edu-brand-schoolline,
    .edu-brand-grid,
    .edu-brand-glow{display:none}
    .edu-brand-signature{margin-bottom:0}
    .edu-auth-form-panel::after{opacity:.10}
}


/* V11.0.90 — closer match to approved EduEG360 login mockup */
.edu-auth-brand-panel{
    background:
      radial-gradient(circle at 22% 18%,rgba(79,149,255,.18),transparent 25%),
      radial-gradient(circle at 84% 18%,rgba(58,128,248,.12),transparent 23%),
      radial-gradient(circle at 48% 68%,rgba(32,113,237,.12),transparent 30%),
      linear-gradient(145deg,#081735 0%,#0d2f68 42%,#0e4aa8 72%,#145ed8 100%)!important;
}
.edu-auth-brand-panel::before{
    background:
      linear-gradient(180deg,rgba(255,255,255,.02),transparent 26%),
      radial-gradient(circle at 77% 17%,rgba(99,181,255,.12),transparent 22%),
      linear-gradient(180deg,transparent 55%,rgba(3,14,35,.38) 100%)!important;
}
.edu-auth-brand-panel::after{
    right:-22px!important;
    width:48px!important;
    opacity:.28!important;
}
.edu-brand-stars{
    position:absolute;
    inset:0;
    opacity:.26;
    background:
      radial-gradient(circle at 18% 10%,#fff 0 1px,transparent 1.6px),
      radial-gradient(circle at 22% 14%,#fff 0 1px,transparent 1.6px),
      radial-gradient(circle at 78% 12%,#7ab9ff 0 1px,transparent 1.6px),
      radial-gradient(circle at 72% 18%,#7ab9ff 0 1px,transparent 1.6px),
      radial-gradient(circle at 85% 25%,#7ab9ff 0 1px,transparent 1.6px),
      radial-gradient(circle at 15% 33%,#7ab9ff 0 1px,transparent 1.6px),
      radial-gradient(circle at 64% 30%,#7ab9ff 0 1px,transparent 1.6px);
    background-size:160px 160px,210px 210px,180px 180px,240px 240px,260px 260px,220px 220px,300px 300px;
    z-index:0;
}
.edu-brand-swoosh{
    position:absolute;
    border-radius:50%;
    border:2px solid rgba(79,164,255,.28);
    box-shadow:0 0 22px rgba(34,128,255,.12);
    z-index:0;
}
.edu-brand-swoosh-one{
    width:920px;height:920px;
    left:-570px;top:-410px;
    transform:rotate(-18deg);
}
.edu-brand-swoosh-two{
    width:780px;height:780px;
    right:-560px;bottom:-560px;
    border-color:rgba(112,185,255,.21);
}
.edu-brand-grid{
    right:42px!important;
    top:34px!important;
    width:185px!important;
    height:185px!important;
    opacity:.25!important;
}
.edu-brand-mark{
    box-shadow:
      0 20px 50px rgba(0,0,0,.20),
      0 0 0 1px rgba(255,255,255,.05),
      0 0 38px rgba(74,157,255,.18)!important;
}
.edu-brand-name{
    margin-top:24px!important;
}
.edu-brand-content h1{
    margin-top:0!important;
}
.edu-brand-features{
    margin-top:28px!important;
}
.edu-brand-features span{
    width:min(100%,420px)!important;
    min-width:min(100%,420px)!important;
    padding:14px 16px!important;
    background:linear-gradient(135deg,rgba(255,255,255,.105),rgba(255,255,255,.045))!important;
    border-color:rgba(160,207,255,.22)!important;
}
.edu-brand-schoolline{
    height:200px!important;
    opacity:1!important;
    background-image:url("../images/login-schoolscape.svg");
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center bottom;
}
.edu-brand-schoolline::before,
.edu-brand-schoolline .school-block,
.edu-brand-schoolline .school-tree{
    display:none!important;
}
.edu-brand-signature{
    margin-top:30px!important;
    margin-bottom:126px!important;
    color:#c7dbf7!important;
}
.edu-auth-form-panel{
    background:
      radial-gradient(circle at 92% 8%,rgba(47,111,237,.07),transparent 26%),
      radial-gradient(circle at 8% 92%,rgba(47,111,237,.035),transparent 22%),
      linear-gradient(180deg,#f7f9fc 0%,#f4f7fb 100%)!important;
}
.edu-auth-form-panel::before{
    width:520px!important;height:520px!important;
    right:-230px!important;top:-230px!important;
    box-shadow:
      0 0 0 60px rgba(47,111,237,.022),
      0 0 0 120px rgba(47,111,237,.012)!important;
}
.edu-auth-form-panel::after{
    width:190px!important;height:190px!important;
    left:0!important;bottom:0!important;
    opacity:.16!important;
    background-size:14px 14px!important;
}
.edu-auth-form-panel>.auth-card{
    box-shadow:
      0 28px 80px rgba(27,54,98,.13),
      0 0 0 1px rgba(47,111,237,.025)!important;
}

@media(max-width:960px){
    .edu-brand-stars,.edu-brand-swoosh{display:none}
    .edu-brand-signature{margin-bottom:0!important}
}


/* V11.0.91 — calmer, richer EduEG360 login palette */
body.edu-auth-page{
    background:#e8eef6!important;
}
.edu-auth-brand-panel{
    background:
      radial-gradient(circle at 22% 18%,rgba(116,158,213,.16),transparent 25%),
      radial-gradient(circle at 84% 18%,rgba(68,126,202,.11),transparent 23%),
      radial-gradient(circle at 48% 68%,rgba(39,102,183,.12),transparent 30%),
      linear-gradient(145deg,#0d1b31 0%,#17345b 42%,#1d4e86 72%,#2a67b5 100%)!important;
}
.edu-auth-brand-panel::before{
    background:
      linear-gradient(180deg,rgba(255,255,255,.025),transparent 25%),
      radial-gradient(circle at 77% 17%,rgba(117,168,224,.10),transparent 22%),
      linear-gradient(180deg,transparent 55%,rgba(5,16,31,.34) 100%)!important;
}
.edu-brand-name span{
    color:#93bdf0!important;
}
.edu-brand-features span{
    background:linear-gradient(135deg,rgba(255,255,255,.095),rgba(255,255,255,.04))!important;
    border-color:rgba(174,204,238,.18)!important;
}
.edu-brand-features i{
    background:linear-gradient(135deg,#477fc6,#2f66ad)!important;
}
.edu-brand-grid{
    opacity:.18!important;
}
.edu-brand-stars{
    opacity:.18!important;
}
.edu-brand-swoosh{
    border-color:rgba(116,169,224,.20)!important;
    box-shadow:0 0 22px rgba(56,111,182,.10)!important;
}
.edu-brand-swoosh-two{
    border-color:rgba(129,179,230,.16)!important;
}
.edu-brand-schoolline{
    opacity:.88!important;
    filter:saturate(.78) brightness(.88);
}
.edu-auth-form-panel{
    background:
      radial-gradient(circle at 92% 8%,rgba(74,111,164,.055),transparent 27%),
      radial-gradient(circle at 8% 92%,rgba(74,111,164,.028),transparent 23%),
      linear-gradient(180deg,#f2f5f9 0%,#eaf0f6 100%)!important;
}
.edu-auth-form-panel>.auth-card{
    background:rgba(255,255,255,.965)!important;
    border-color:#dce4ee!important;
    box-shadow:
      0 28px 80px rgba(31,52,84,.12),
      0 0 0 1px rgba(65,104,157,.02)!important;
}
.edu-auth-form-panel .form-control{
    background:#f6f9fc!important;
    border-color:#d9e2ec!important;
}
.edu-auth-form-panel .btn-primary{
    background:linear-gradient(135deg,#2f6fbe,#3d82d6)!important;
    border-color:transparent!important;
    box-shadow:0 13px 30px rgba(48,104,178,.21)!important;
}
.central-login-badge{
    background:#e6edf7!important;
    color:#315f98!important;
}
.edu-auth-footer{
    color:#8390a3!important;
}
