:root {
    --ui-navy-950: #0b1f3a;
    --ui-navy-900: #102b50;
    --ui-navy-800: #173c6b;
    --ui-blue-600: #2563eb;
    --ui-blue-500: #3b82f6;
    --ui-blue-100: #dbeafe;
    --ui-blue-50: #eff6ff;
    --ui-gold-500: #f4b740;
    --ui-green-600: #059669;
    --ui-red-600: #dc2626;
    --ui-slate-950: #0f172a;
    --ui-slate-700: #334155;
    --ui-slate-500: #64748b;
    --ui-slate-300: #cbd5e1;
    --ui-slate-200: #e2e8f0;
    --ui-slate-100: #f1f5f9;
    --ui-slate-50: #f8fafc;
    --ui-white: #ffffff;
    --ui-radius-sm: 10px;
    --ui-radius-md: 16px;
    --ui-radius-lg: 24px;
    --ui-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 5px 16px rgba(15, 23, 42, .05);
    --ui-shadow: 0 18px 50px rgba(15, 42, 78, .10);
}

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

html {
    scroll-behavior: smooth;
}

body.ui-page {
    min-height: 100vh;
    margin: 0;
    color: var(--ui-slate-950);
    background:
        radial-gradient(circle at 4% 0%, rgba(59, 130, 246, .10), transparent 24rem),
        linear-gradient(180deg, #f8fbff 0, #f3f6fb 100%);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.ui-page a,
body.ui-page button,
body.ui-page input,
body.ui-page select,
body.ui-page textarea {
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease,
        color .18s ease, transform .18s ease;
}

body.ui-page a:focus-visible,
body.ui-page button:focus-visible,
body.ui-page input:focus-visible,
body.ui-page select:focus-visible,
body.ui-page textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .22);
    outline-offset: 2px;
}

/* Shared form pages */
body.form-page > .container,
body.form-page > .container-fluid {
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 0 42px;
}

.setup-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 18px;
    overflow: hidden;
    border: 1px solid var(--ui-slate-200);
    border-radius: var(--ui-radius-md);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--ui-shadow-sm);
}

.setup-progress span {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-right: 1px solid var(--ui-slate-200);
    color: var(--ui-slate-500);
    font-size: .8rem;
    font-weight: 750;
}

.setup-progress span:last-child {
    border-right: 0;
}

.setup-progress span strong {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid var(--ui-slate-300);
    border-radius: 50%;
    background: var(--ui-white);
    font-size: .72rem;
}

.setup-progress .is-complete {
    color: var(--ui-green-600);
}

.setup-progress .is-current {
    background: var(--ui-blue-50);
    color: var(--ui-navy-900);
}

.setup-progress .is-current strong {
    border-color: var(--ui-blue-600);
    background: var(--ui-blue-600);
    color: var(--ui-white);
}

.setup-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 13px 16px;
    border: 1px solid var(--ui-blue-100);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-blue-50);
    color: var(--ui-navy-900);
    font-size: .84rem;
}

.setup-message i {
    margin-top: 2px;
    color: var(--ui-blue-600);
}

.setup-password-control {
    position: relative;
}

.setup-password-control .form-control {
    padding-right: 48px;
}

.setup-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ui-slate-500);
    cursor: pointer;
}

.setup-password-toggle:hover {
    background: var(--ui-slate-100);
    color: var(--ui-navy-900);
}

body.form-page form > .row.mb-4,
body.student-page form > header {
    min-height: 92px;
    margin: 0 0 22px !important;
    padding: 18px 20px;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--ui-radius-md);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--ui-shadow-sm);
}

body.form-page form > .row.mb-4 h2,
body.student-page form > header h1 {
    margin: 0;
    color: var(--ui-navy-950) !important;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-style: normal;
    font-weight: 760;
    letter-spacing: -.025em;
}

body.form-page form > .row.mb-4 h2 i,
body.student-page form > header h1::before {
    color: var(--ui-blue-600);
}

body.form-page .card {
    overflow: hidden;
    border: 1px solid var(--ui-slate-200) !important;
    border-radius: var(--ui-radius-md) !important;
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--ui-shadow-sm) !important;
}

body.form-page .card-header {
    padding: 18px 24px;
    border: 0;
    border-bottom: 1px solid var(--ui-slate-200);
    background: linear-gradient(100deg, var(--ui-navy-900), var(--ui-navy-800)) !important;
    color: var(--ui-white);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.form-page .card-body {
    padding: 28px;
}

body.form-page label,
body.student-page label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--ui-slate-700);
    font-size: .82rem;
    font-weight: 700;
}

body.form-page .form-control,
body.student-page .form-control,
body.student-page .custom-file-label {
    min-height: 46px;
    border: 1px solid var(--ui-slate-300);
    border-radius: var(--ui-radius-sm);
    background-color: var(--ui-white);
    color: var(--ui-slate-950) !important;
    font-size: .92rem;
    box-shadow: none;
}

body.form-page textarea.form-control,
body.student-page textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

body.form-page .form-control:hover,
body.student-page .form-control:hover {
    border-color: #94a3b8;
}

body.form-page .form-control:focus,
body.student-page .form-control:focus {
    border-color: var(--ui-blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

body.form-page .form-control::placeholder,
body.student-page .form-control::placeholder {
    color: #94a3b8;
}

body.form-page hr,
body.student-page hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--ui-slate-200);
}

body.form-page .alert {
    padding: 14px 16px;
    border: 1px solid var(--ui-blue-100) !important;
    border-radius: var(--ui-radius-sm);
    background: var(--ui-blue-50) !important;
    color: var(--ui-slate-700);
    font-size: .84rem;
    line-height: 1.55;
}

body.form-page h5,
body.student-page .section-heading h2 {
    color: var(--ui-navy-950);
    font-size: 1rem;
    font-weight: 760;
}

body.form-page .btn,
body.student-page .btn,
body.shutdown-page .btn {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: none;
}

body.form-page .btn:hover,
body.student-page .btn:hover,
body.shutdown-page .btn:hover {
    transform: translateY(-1px);
}

body.form-page .btn-primary,
body.student-page .btn-primary {
    border-color: var(--ui-blue-600);
    background: var(--ui-blue-600);
}

body.form-page .btn-success,
body.student-page .btn-success {
    border-color: var(--ui-navy-900);
    background: var(--ui-navy-900);
}

body.form-page .btn-warning,
body.student-page .btn-warning {
    border-color: var(--ui-slate-200);
    background: var(--ui-slate-100);
    color: var(--ui-slate-700);
}

body.form-page .btn-secondary,
body.student-page .btn-secondary {
    border-color: var(--ui-slate-300);
    background: var(--ui-white);
    color: var(--ui-slate-700);
}

body.form-page .btn[aria-disabled="true"],
body.student-page .btn[aria-disabled="true"] {
    opacity: .58;
    cursor: not-allowed;
    transform: none;
}

body.form-page .btn-danger,
body.student-page .btn-danger {
    border-color: #fee2e2;
    background: #fff1f2;
    color: var(--ui-red-600);
}

body.form-page .text-end,
body.form-page .text-lg-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

body.form-page .logo-preview {
    width: min(210px, 100%);
    height: 210px;
    padding: 14px;
    border: 1.5px dashed #94a3b8;
    border-radius: var(--ui-radius-md);
    background: var(--ui-slate-50);
}

body.form-page .logo-preview img {
    border-radius: 10px;
    object-fit: contain;
}

body.establishment-page .logo-upload-control {
    width: min(100%, 330px);
    margin-right: auto;
    margin-left: auto;
    text-align: left;
}

body.establishment-page .logo-file-picker {
    position: relative;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 7px;
    border: 1.5px dashed var(--ui-slate-300);
    border-radius: var(--ui-radius-sm);
    background: linear-gradient(135deg, var(--ui-white), var(--ui-blue-50));
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.establishment-page .logo-file-input {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

body.establishment-page .logo-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--ui-blue-600), var(--ui-navy-800));
    color: var(--ui-white);
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 5px 12px rgba(37, 99, 235, .2);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

body.establishment-page .logo-file-name {
    min-width: 0;
    overflow: hidden;
    color: var(--ui-slate-500);
    font-size: .78rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.establishment-page .logo-file-picker:hover {
    border-color: var(--ui-blue-500);
    background: var(--ui-blue-50);
}

body.establishment-page .logo-file-picker:hover .logo-file-button {
    filter: brightness(1.07);
    box-shadow: 0 7px 16px rgba(37, 99, 235, .27);
}

body.establishment-page .logo-file-picker:focus-within {
    border-color: var(--ui-blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

body.establishment-page .logo-file-picker:active .logo-file-button {
    transform: translateY(1px);
}

body.establishment-page .logo-file-picker.has-file .logo-file-name {
    color: var(--ui-navy-900);
}

body.establishment-page .logo-file-hint {
    display: block;
    margin-top: 7px;
    color: var(--ui-slate-500);
    font-size: .72rem;
    line-height: 1.4;
}

body.form-page footer {
    margin-top: 22px !important;
    color: var(--ui-slate-500);
}

body.form-page footer .card-body {
    padding: 16px 20px;
    font-size: .82rem;
}

body.form-page footer .fa-circle {
    color: var(--ui-green-600);
    font-size: .55rem;
}

@media (max-width: 640px) {
    .setup-progress {
        grid-template-columns: 1fr;
    }

    .setup-progress span {
        min-height: 44px;
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid var(--ui-slate-200);
    }

    .setup-progress span:last-child {
        border-bottom: 0;
    }
}

/* Student registration: the legacy two-column form gets a modern workspace shell. */
body.student-page > .container-fluid {
    width: min(1280px, calc(100% - 32px));
    max-width: 1280px;
}

body.student-page form > header > div {
    margin-top: 0 !important;
}

body.student-page form > header a {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--ui-slate-200);
    border-radius: 12px;
    background: var(--ui-white);
    color: var(--ui-navy-900);
    text-decoration: none;
}

body.student-page form > header i.fas {
    color: inherit;
    font-size: 1rem;
}

body.student-page form > .row.mt-lg-4 {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 20px;
    margin: 0 !important;
    align-items: start;
}

body.student-page form > .row.mt-lg-4 > [class*="col-"] {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 26px !important;
    border: 1px solid var(--ui-slate-200);
    border-radius: var(--ui-radius-md);
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: var(--ui-shadow-sm);
    flex: none;
}

body.student-page form > .row.mt-lg-4 .row.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 14px;
}

body.student-page form > .row.mt-lg-4 .row.form-group > .form-control {
    width: 100%;
    max-width: none;
    margin: 0 !important;
}

body.student-page .form-group {
    margin-bottom: 14px;
}

body.student-page .form-control.row {
    width: 100%;
    margin: 0;
}

body.student-page .section-heading {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ui-slate-200);
}

body.student-page .section-heading span {
    display: block;
    margin-bottom: 5px;
    color: var(--ui-blue-600);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

body.student-page .section-heading h2 {
    margin: 0;
}

body.student-page .custom-file {
    margin-top: 4px;
}

body.student-page .custom-file-label {
    padding-top: 12px;
}

body.student-page .form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

body.student-page .form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-color: var(--ui-navy-900);
    background: var(--ui-navy-900) !important;
    color: var(--ui-white);
}

body.student-page .form-actions .fa-save {
    color: inherit;
    font-size: .9rem;
}

body.student-page footer {
    margin: 22px 0 0 !important;
    padding: 16px 20px;
    align-items: center;
    border: 1px solid var(--ui-slate-200);
    border-radius: var(--ui-radius-md);
    background: rgba(255, 255, 255, .95);
    color: var(--ui-slate-500);
    box-shadow: var(--ui-shadow-sm);
}

body.student-page footer > div {
    margin: 0 !important;
}

body.student-page footer p {
    margin: 0;
    font-size: .82rem;
}

body.student-page footer i.fas {
    color: var(--ui-slate-700);
    font-size: 1rem;
}

/* Login */
body.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 12%, rgba(59, 130, 246, .22), transparent 26rem),
        radial-gradient(circle at 92% 84%, rgba(244, 183, 64, .16), transparent 22rem),
        var(--ui-navy-950);
}

.login-shell {
    display: grid;
    width: min(1020px, 100%);
    min-height: 620px;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    background: var(--ui-white);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.login-story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px;
    overflow: hidden;
    background: linear-gradient(145deg, #173f73, #0f2b50 70%);
    color: var(--ui-white);
}

.login-story::before,
.login-story::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.login-story::before {
    width: 360px;
    height: 360px;
    top: -180px;
    right: -140px;
}

.login-story::after {
    width: 250px;
    height: 250px;
    right: -80px;
    bottom: -120px;
    background: rgba(244, 183, 64, .07);
}

.login-brand,
.login-intro,
.login-proof {
    position: relative;
    z-index: 1;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.login-brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffd166, #f2a93b);
    color: var(--ui-navy-950);
    font-size: 1.15rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.login-brand strong,
.login-brand small {
    display: block;
}

.login-brand strong {
    font-size: .98rem;
}

.login-brand small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .62);
    font-size: .72rem;
}

.login-intro {
    margin: 60px 0 auto;
}

.login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #bfdbfe;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-kicker::before {
    width: 24px;
    height: 2px;
    background: var(--ui-gold-500);
    content: "";
}

.login-intro h1 {
    max-width: 450px;
    margin: 0 0 16px;
    color: var(--ui-white);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-style: normal;
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.login-intro p {
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: .95rem;
    line-height: 1.7;
}

.login-proof {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 36px;
    color: rgba(255, 255, 255, .68);
    font-size: .78rem;
}

.login-proof i {
    color: #86efac;
}

.login-panel {
    display: flex;
    align-items: center;
    padding: 54px 48px;
    background: var(--ui-white);
}

.login-form-wrap {
    width: 100%;
}

.login-form-wrap h2 {
    margin: 0 0 8px;
    color: var(--ui-slate-950);
    font-size: 1.7rem;
    font-weight: 780;
    letter-spacing: -.03em;
}

.login-form-wrap > p {
    margin: 0 0 30px;
    color: var(--ui-slate-500);
    font-size: .88rem;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    background: #fff1f2;
    color: #9f1239;
    font-size: .8rem;
    line-height: 1.5;
}

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--ui-slate-700);
    font-size: .8rem;
    font-weight: 750;
}

.login-control {
    position: relative;
}

.login-control > i {
    position: absolute;
    top: 50%;
    left: 15px;
    color: #94a3b8;
    font-size: .9rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-control .form-control {
    width: 100%;
    height: 50px;
    padding: 0 44px 0 42px;
    border: 1px solid var(--ui-slate-300);
    border-radius: 11px;
    color: var(--ui-slate-950);
    font-size: .9rem;
    box-shadow: none;
}

.login-control .form-control:focus {
    border-color: var(--ui-blue-500);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ui-slate-500);
    transform: translateY(-50%);
    cursor: pointer;
}

.login-submit {
    display: inline-flex;
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(100deg, var(--ui-blue-600), #1d4ed8);
    color: var(--ui-white);
    font-size: .88rem;
    font-weight: 780;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .2);
    cursor: pointer;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(37, 99, 235, .27);
}

.login-footnote {
    margin-top: 22px;
    color: #94a3b8;
    font-size: .72rem;
    text-align: center;
}

/* Shutdown */
body.shutdown-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: var(--ui-navy-950);
}

.shutdown-card {
    width: min(470px, 100%);
    padding: 44px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-white);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

.shutdown-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 18px;
    background: var(--ui-blue-50);
    color: var(--ui-blue-600);
    font-size: 1.35rem;
}

.shutdown-card h1 {
    margin: 0 0 10px;
    font-size: 1.55rem;
    letter-spacing: -.03em;
}

.shutdown-card p {
    margin: 0 0 26px;
    color: var(--ui-slate-500);
    line-height: 1.6;
}

.shutdown-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--ui-blue-600);
    color: var(--ui-white);
}

@media (max-width: 820px) {
    .login-shell {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .login-story {
        padding: 32px;
    }

    .login-intro {
        margin-top: 44px;
    }

    .login-intro h1 {
        max-width: 560px;
        font-size: 2.15rem;
    }

    .login-proof {
        margin-top: 28px;
    }

    .login-panel {
        padding: 42px 32px;
    }

    body.student-page form > .row.mt-lg-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body.form-page > .container,
    body.form-page > .container-fluid,
    body.student-page > .container-fluid {
        width: min(100% - 20px, 100%);
        padding-top: 10px;
    }

    body.form-page form > .row.mb-4,
    body.student-page form > header {
        gap: 12px;
        padding: 15px;
    }

    body.form-page form > .row.mb-4 > div,
    body.student-page form > header > div {
        text-align: left !important;
    }

    body.form-page form > .row.mb-4 > div:nth-child(2),
    body.student-page form > header > div:nth-child(2) {
        order: -1;
        width: 100%;
    }

    body.form-page .card-body,
    body.student-page form > .row.mt-lg-4 > [class*="col-"] {
        padding: 20px !important;
    }

    body.form-page .text-end,
    body.form-page .text-lg-right {
        justify-content: flex-start;
    }

    body.form-page .text-end .btn,
    body.form-page .text-lg-right .btn {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
    }

    body.form-page footer .text-end {
        margin-top: 8px;
    }

    body.student-page form > .row.mt-lg-4 .row.form-group {
        grid-template-columns: 1fr;
    }

    body.student-page footer {
        gap: 12px;
    }

    body.student-page footer > div {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 520px) {
    body.login-page {
        padding: 0;
        background: var(--ui-white);
    }

    .login-shell {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-story {
        padding: 28px 22px 30px;
    }

    .login-intro {
        margin-top: 38px;
    }

    .login-intro h1 {
        font-size: 1.85rem;
    }

    .login-intro p {
        font-size: .85rem;
    }

    .login-panel {
        padding: 36px 22px 42px;
    }

    .shutdown-card {
        padding: 34px 24px;
    }
}
