:root {
    --hra-bg: #f4f9ff;
    --hra-bg-soft: #e8f4fd;
    --hra-surface: #ffffff;
    --hra-surface-alt: #f0f7ff;
    --hra-border: #bfdbfe;
    --hra-border-light: #dbeafe;
    --hra-primary: #2563eb;
    --hra-primary-hover: #1d4ed8;
    --hra-primary-light: #60a5fa;
    --hra-primary-soft: #dbeafe;
    --hra-text: #1e3a5f;
    --hra-text-muted: #64748b;
    --hra-header-bg: #ffffff;
    --hra-header-border: var(--hra-border);
    --hra-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

html {
    font-size: 16px;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: linear-gradient(165deg, #ffffff 0%, #f0f7ff 40%, #dbeafe 100%);
    background-attachment: fixed;
    color: var(--hra-text);
}

.site-header {
    border-bottom: 1px solid var(--hra-header-border);
    background: var(--hra-header-bg);
    box-shadow: var(--hra-shadow);
}

.portal-navbar.navbar {
    --bs-navbar-color: var(--hra-text);
    --bs-navbar-hover-color: var(--hra-primary);
    --bs-navbar-active-color: var(--hra-primary);
    --bs-navbar-brand-color: var(--hra-text);
    --bs-navbar-brand-hover-color: var(--hra-primary);
}

.page-shell {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.glass-card {
    border: 1px solid var(--hra-border);
    background: var(--hra-surface);
    border-radius: 1rem;
    padding: 1.1rem;
    box-shadow: var(--hra-shadow);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--hra-border);
    background: rgba(255, 255, 255, 0.95);
    color: var(--hra-text-muted) !important;
}

.form-control,
.form-select {
    border-radius: 0.75rem;
    background: var(--hra-surface);
    border-color: var(--hra-border);
    color: var(--hra-text);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hra-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.btn {
    border-radius: 0.75rem;
}

.btn-primary {
    background-color: var(--hra-primary);
    border-color: var(--hra-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--hra-primary-hover);
    border-color: var(--hra-primary-hover);
}

.list-clean {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.list-clean li {
    border-bottom: 1px solid var(--hra-border-light);
    padding: 0.65rem 0;
}

.text-secondary {
    color: var(--hra-text-muted) !important;
}

.student-body .btn-outline-light,
.portal-page .btn-outline-light {
    --bs-btn-color: var(--hra-primary);
    --bs-btn-border-color: var(--hra-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--hra-primary);
    --bs-btn-hover-border-color: var(--hra-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--hra-primary-hover);
    --bs-btn-active-border-color: var(--hra-primary-hover);
}

.student-body .btn-outline-secondary,
.portal-page .btn-outline-secondary {
    --bs-btn-color: var(--hra-text-muted);
    --bs-btn-border-color: var(--hra-border);
    --bs-btn-hover-color: var(--hra-text);
    --bs-btn-hover-bg: var(--hra-primary-soft);
    --bs-btn-hover-border-color: var(--hra-primary-light);
}

.student-body .badge.text-bg-light,
.portal-page .badge.text-bg-light {
    background-color: var(--hra-primary-soft) !important;
    color: var(--hra-primary) !important;
}

.portal-brand-logo {
    display: block;
    height: 42px;
    width: auto;
    max-width: min(240px, 58vw);
    object-fit: contain;
}

.login-logo {
    display: inline-block;
    height: auto;
    max-height: 72px;
    max-width: min(280px, 90vw);
    width: auto;
    object-fit: contain;
}

.portal-form-card {
    max-width: 560px;
    width: 100%;
}

.portal-user-badge {
    max-width: 8rem;
}

img,
video,
iframe {
    max-width: 100%;
}

.login-shell {
    margin-top: 2.5rem;
}

@media (max-width: 767.98px) {
    .login-shell {
        margin-top: 1.25rem;
    }

    .page-shell {
        padding-top: 1.25rem;
        padding-bottom: 1.5rem;
    }

    .footer {
        position: static;
    }

    .glass-card {
        padding: 1rem;
    }
}

