/* ============================================================================
   newlogin.css
   Contineo — Landing / Sign-in page redesign
   Glassmorphic "rainbow mesh" theme, ported from contineo_login_rainbow.
   Loaded ONLY by templates/contineoReg/landingPage.php (guest view), so the
   wrapper resets below cannot leak into any logged-in screen.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------ */
:root {
    /* Rainbow mesh background (4 corner blooms + centre blend + base wash) */
    --nl-body-gradient:
        radial-gradient(ellipse at 8% 12%, rgba(245, 148, 148, 0.88) 0%, transparent 42%),
        radial-gradient(ellipse at 88% 10%, rgba(148, 192, 242, 0.78) 0%, transparent 40%),
        radial-gradient(ellipse at 92% 88%, rgba(148, 242, 208, 0.78) 0%, transparent 44%),
        radial-gradient(ellipse at 12% 90%, rgba(242, 242, 148, 0.78) 0%, transparent 42%),
        radial-gradient(ellipse at 52% 48%, rgba(196, 206, 187, 0.58) 0%, transparent 52%),
        linear-gradient(145deg, #ffd2d2 0%, #d2feff 33%, #d2ffff 66%, #ffffd2 100%);

    /* Ink */
    --nl-eyebrow: rgba(28, 30, 50, 0.55);
    --nl-heading: rgba(28, 30, 50, 0.82);
    --nl-heading-em: rgba(28, 30, 50, 0.50);
    --nl-body: rgba(28, 30, 50, 0.56);
    --nl-card-label: rgba(28, 30, 50, 0.52);
    --nl-link: rgba(28, 30, 50, 0.52);
    --nl-link-hover: rgba(28, 30, 50, 0.82);
    --nl-sep: rgba(28, 30, 50, 0.22);
    --nl-input-text: rgba(28, 30, 50, 0.88);
    --nl-input-ph: rgba(28, 30, 50, 0.42);
    --nl-icon: rgba(28, 30, 50, 0.44);
    --nl-eye: rgba(28, 30, 50, 0.42);
    --nl-eye-hover: rgba(28, 30, 50, 0.70);

    /* Surfaces */
    --nl-rule: rgba(255, 255, 255, 0.52);
    --nl-card-bg: rgba(255, 255, 255, 0.28);
    --nl-card-border: rgba(255, 255, 255, 0.58);
    --nl-card-shadow: 0 8px 48px rgba(0, 0, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    --nl-card-radius: 20px;
    --nl-input-bg: rgba(255, 255, 255, 0.55);
    --nl-input-border: rgba(255, 255, 255, 0.72);
    --nl-input-focus-bg: rgba(255, 255, 255, 0.72);
    --nl-input-focus-bdr: rgba(255, 255, 255, 0.95);

    /* Action */
    --nl-btn-bg: rgba(38, 118, 100, 0.82);
    --nl-btn-bdr: rgba(50, 150, 125, 0.55);
    --nl-btn-bg-h: rgba(38, 135, 114, 0.95);
    --nl-btn-shadow: rgba(38, 118, 100, 0.28);
    --nl-btn-shadow-h: rgba(38, 118, 100, 0.40);

    /* Footer */
    --nl-footer-bg: rgba(255, 255, 255, 0.14);
    --nl-footer-bdr: rgba(255, 255, 255, 0.30);
    --nl-footer-text: rgba(28, 30, 50, 0.50);
    --nl-footer-sep: rgba(28, 30, 50, 0.22);
    --nl-footer-link: rgba(28, 30, 50, 0.46);

    /* Feedback */
    --nl-danger: #b3261e;
    --nl-danger-bg: rgba(255, 255, 255, 0.42);
    --nl-danger-bdr: rgba(179, 38, 30, 0.32);

    /* Secondary glass surfaces (notice strip, helpdesk chip, modal) */
    --nl-surface: rgba(255, 255, 255, 0.34);
    --nl-modal-bg: rgba(255, 255, 255, 0.72);
    --nl-modal-head: rgba(255, 255, 255, 0.28);

    /* Brand mark. The logo asset is dark artwork baked onto an opaque white
       rectangle, so on light themes we multiply the white away; on dark themes
       we sit it on a white plate instead. */
    --nl-logo-filter: none;
    --nl-logo-blend: multiply;
    --nl-logo-plate-bg: transparent;
    --nl-logo-plate-bdr: transparent;
    --nl-logo-plate-sh: none;
    --nl-logo-plate-pad: 0px;

    /* Support-address image: dark ink, so dark themes invert it. */
    --nl-mail-filter: none;
}

/* ---------------------------------------------------------------------------
   1b. Form-side switch (driven by the Customise panel)
   ------------------------------------------------------------------------ */
html[data-form-side="right"] .nl-info      { order: 0; }
html[data-form-side="right"] .nl-rule      { order: 1; }
html[data-form-side="right"] .nl-form-area { order: 2; }

html[data-form-side="left"] .nl-form-area  { order: 0; }
html[data-form-side="left"] .nl-rule       { order: 1; }
html[data-form-side="left"] .nl-info       { order: 2; }

/* ---------------------------------------------------------------------------
   2. Host / wrapper reset
   landingPage.php is injected inside index.php's .uk-container > .cn-box-layout,
   both of which cap the width and paint a grey card. Undo that for the
   full-bleed gradient.
   ------------------------------------------------------------------------ */
body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    background: var(--nl-body-gradient) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    font-family: "Nunito Sans", "Lato", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body .uk-container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .cn-box-layout {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* ---------------------------------------------------------------------------
   3. Page shell
   ------------------------------------------------------------------------ */
.nl-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

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

.nl-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    padding: 44px 64px 36px;
}

/* ---------------------------------------------------------------------------
   4. Info column
   ------------------------------------------------------------------------ */
.nl-info {
    flex: 1 1 auto;
    max-width: 560px;
}

.nl-eyebrow {
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--nl-eyebrow);
    margin: 0 0 20px;
}

.nl-heading {
    font-family: "Lora", Georgia, serif !important;
    font-size: 36px;
    font-weight: 400 !important;
    line-height: 1.14;
    color: var(--nl-heading);
    margin: 0 0 20px;
    word-break: break-word;
}

.nl-heading em {
    display: block;
    font-style: italic;
    font-size: 0.55em;
    line-height: 1.3;
    margin-top: 10px;
    color: var(--nl-heading-em);
}

.nl-body-text {
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 300;
    color: var(--nl-body);
    max-width: 430px;
    margin: 0;
}

/* Vertical divider */
.nl-rule {
    width: 1px;
    height: 240px;
    flex-shrink: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--nl-rule) 25%,
            var(--nl-rule) 75%,
            transparent 100%);
}

/* ---------------------------------------------------------------------------
   5. Sign-in card
   ------------------------------------------------------------------------ */
.nl-form-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 372px;
    flex-shrink: 0;
    padding: 34px 32px 28px;
    background: var(--nl-card-bg);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--nl-card-border);
    border-radius: var(--nl-card-radius);
    box-shadow: var(--nl-card-shadow);
}

.nl-logo-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    padding: var(--nl-logo-plate-pad);
    background: var(--nl-logo-plate-bg);
    border: 1px solid var(--nl-logo-plate-bdr);
    border-radius: 12px;
    box-shadow: var(--nl-logo-plate-sh);
    transition: background .4s, border-color .4s, box-shadow .4s, padding .4s;
}

.nl-logo {
    display: block;
    max-height: 46px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    filter: var(--nl-logo-filter);
    mix-blend-mode: var(--nl-logo-blend);
    transition: filter .4s;
}

/* Institution name on the card — off by default, toggled from Customise */
.nl-inst-name {
    display: none;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .8px;
    text-align: center;
    opacity: .75;
    color: var(--nl-card-label);
}

.nl-card-label {
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.6;
    color: var(--nl-card-label);
}

/* The login module emits an unclosed <form> plus a hidden "remember" field.
   Keep the field in the form, hide its wrapper. */
.nl-form-area #form-login-remember {
    display: none !important;
}

/* The module's <form> is never closed, so the browser makes it the parent of
   every field that follows. Fallback = a flex column; modern browsers get
   display:contents so the fields join the card's own flex flow. */
.nl-form-area form {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nl-form-area form {
    display: contents;
}

/* The module also emits two empty anchors; hide them. Only the module's own
   bare anchors are direct children of the form. */
.nl-form-area form>a {
    display: none !important;
}

/* Vertical rhythm inside the card. Explicit margins rather than flex `gap`,
   because the login module's form sits between the card and its fields. */
.nl-card-label,
.nl-inst-name,
.nl-message,
.nl-field,
.nl-btn-login,
.nl-links {
    margin-bottom: 13px;
}

.nl-message:empty {
    margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
   6. Inputs
   ------------------------------------------------------------------------ */
.nl-field {
    position: relative;
    width: 100%;
}

.nl-field-icon {
    position: absolute;
    left: 15px;
    top: 23px;
    transform: translateY(-50%);
    display: flex;
    color: var(--nl-icon);
    pointer-events: none;
}

.nl-input {
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    background: var(--nl-input-bg) !important;
    border: 1px solid var(--nl-input-border) !important;
    border-radius: 50px !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 0 16px 0 42px !important;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 13px !important;
    color: var(--nl-input-text) !important;
    outline: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transition: background .2s, border-color .2s, box-shadow .2s;
}

.nl-input::placeholder {
    color: var(--nl-input-ph);
    opacity: 1;
}

.nl-input:focus {
    background: var(--nl-input-focus-bg) !important;
    border-color: var(--nl-input-focus-bdr) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nl-input-pwd {
    padding-right: 44px !important;
}

.nl-eye {
    position: absolute;
    right: 14px;
    top: 23px;
    transform: translateY(-50%);
    display: flex;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nl-eye);
    transition: color .15s;
}

.nl-eye:hover {
    color: var(--nl-eye-hover);
}

/* Caps-lock hint (JS flips display to block) */
.nl-caps {
    display: none;
    width: 100%;
    margin-top: 6px;
    padding-left: 16px;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 700;
    letter-spacing: .6px;
    line-height: 1.4;
    text-align: left;
    color: var(--nl-danger) !important;
}

/* ---------------------------------------------------------------------------
   7. Action + links
   ------------------------------------------------------------------------ */
.nl-btn-login {
    width: 100%;
    height: 44px;
    background: var(--nl-btn-bg);
    border: 1px solid var(--nl-btn-bdr);
    border-radius: 50px;
    cursor: pointer;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 2px 14px var(--nl-btn-shadow);
    transition: background .15s, box-shadow .15s, transform .15s;
}

.nl-btn-login:hover {
    background: var(--nl-btn-bg-h);
    box-shadow: 0 4px 20px var(--nl-btn-shadow-h);
}

.nl-btn-login:active {
    transform: translateY(1px);
}

.nl-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-top: -2px;
}

.nl-link {
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 11px !important;
    color: var(--nl-link) !important;
    text-decoration: none !important;
    transition: color .15s;
}

.nl-link:hover {
    color: var(--nl-link-hover) !important;
    text-decoration: none !important;
}

.nl-link-sep {
    color: var(--nl-sep);
    font-size: 11px;
}

.nl-link-doc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nl-link-doc svg {
    flex-shrink: 0;
    opacity: .75;
}

/* Earlier-instances action item */
.nl-terms {
    width: 100%;
    padding-top: 14px;
    margin-top: 2px;
    border-top: 1px solid var(--nl-card-border);
    text-align: center;
    transition: border-color .4s;
}

.nl-terms-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid var(--nl-card-border);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.22);
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 9px !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--nl-link) !important;
    text-decoration: none !important;
    transition: color .15s, background .15s, border-color .15s, transform .15s;
}

.nl-terms-link svg {
    flex-shrink: 0;
    transition: transform .15s;
}

.nl-terms-link:hover {
    color: var(--nl-link-hover) !important;
    background: rgba(255, 255, 255, 0.42);
    border-color: var(--nl-input-focus-bdr);
}

.nl-terms-link:hover svg {
    transform: translateX(3px);
}

/* ---------------------------------------------------------------------------
   8. Notice strip (display notes from jos_time_term)
   ------------------------------------------------------------------------ */
.nl-notice {
    flex-shrink: 0;
    max-width: 1100px;
    width: calc(100% - 96px);
    margin: 22px auto 0;
    padding: 12px 22px;
    background: var(--nl-surface);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--nl-card-border);
    border-left: 3px solid var(--nl-danger);
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.07);
    overflow-wrap: break-word;
}

.nl-notice p {
    margin: 0 0 4px;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.6;
    color: var(--nl-danger) !important;
    text-align: center;
}

.nl-notice p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
   9. Joomla system messages, rendered inside the card
   ------------------------------------------------------------------------ */
.nl-message:empty {
    display: none;
}

.nl-message {
    width: 100%;
}

.nl-message #system-message,
.nl-message #system-message dl,
.nl-message #system-message dt,
.nl-message #system-message dd,
.nl-message #system-message ul,
.nl-message #system-message li,
.nl-message #system-message p {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: none !important;
    border: 0 !important;
    display: block !important;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    text-align: center !important;
    color: var(--nl-danger) !important;
    height: auto !important;
    text-indent: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nl-message #system-message dt {
    display: none !important;
}

.nl-message #system-message {
    padding: 10px 14px !important;
    background: var(--nl-danger-bg) !important;
    border: 1px solid var(--nl-danger-bdr) !important;
    border-radius: 12px !important;
}

/* ---------------------------------------------------------------------------
   10. Footer bar
   ------------------------------------------------------------------------ */
.nl-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 42px;
    padding: 10px 26px;
    background: var(--nl-footer-bg);
    border-top: 1px solid var(--nl-footer-bdr);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.nl-footer .nl-welcome {
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--nl-footer-text);
}

.nl-footer .nl-fsep {
    color: var(--nl-footer-sep);
    font-size: 12px;
}

.nl-footer .nl-footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nl-footer a {
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 9px !important;
    letter-spacing: .5px;
    color: var(--nl-footer-link) !important;
    text-decoration: none !important;
    transition: color .15s;
}

.nl-footer a:hover {
    color: var(--nl-link-hover) !important;
}

.nl-footer .nl-powered {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 9px;
    letter-spacing: .5px;
    color: var(--nl-footer-text);
}

/* ---------------------------------------------------------------------------
   11. Support block ("We are here to help")
   ------------------------------------------------------------------------ */
/* A section of the sign-in card, not a card inside it. Same treatment as .nl-terms:
   a hairline rule, centred content, no fill of its own. The 15px top margin matches
   the .nl-links -> .nl-terms step (13px rhythm + 2px). */
.nl-help {
    width: 100%;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid var(--nl-card-border);
    text-align: center;
    transition: border-color .4s;
}

/* Same spec as .nl-card-label, with the glyph set inline the way .nl-link-doc does it. */
.nl-help-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    line-height: 1.6;
    color: var(--nl-card-label);
    transition: color .4s;
}

.nl-help-title svg {
    flex-shrink: 0;
    opacity: .75;
}

.nl-help .popuptext {
    display: block;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 11px;
    line-height: 1.6;
    color: var(--nl-body);
    word-wrap: break-word;
    transition: color .4s;
}

.nl-help .popuptext.show {
    -webkit-animation: nlFadeIn .45s ease both;
    animation: nlFadeIn .45s ease both;
}

.nl-help-text {
    display: block;
}

.nl-help-mail {
    display: block;
    margin-top: 3px;
}

/* The PNG is rendered at 3x with a true alpha channel (see the GD block in landingPage.php)
   and downsampled here, so it stays sharp on hi-dpi and needs no blend tricks. The height
   is emitted inline as --nl-mail-h; the fallback matches the default 11px render.
   `margin: 0 auto` centres it — a block image would otherwise ignore text-align. */
.nl-help-mail img {
    display: block;
    margin: 0 auto;
    height: var(--nl-mail-h, 15px);
    width: auto;
    max-width: 100%;
    filter: var(--nl-mail-filter);
}

/* Same pill metrics as .nl-terms-link, minus the hover — it is a value, not an action. */
.nl-help-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid var(--nl-card-border);
    border-radius: 50px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--nl-card-label);
    transition: color .4s, background .4s, border-color .4s;
}

.nl-help-code b {
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--nl-body);
}

.nl-help-code b:not(:empty)::before {
    content: ": ";
}

@-webkit-keyframes nlFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes nlFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------------
   12. Reset-password modal (:target driven — no JS)
   ------------------------------------------------------------------------ */
.cn-modal-window {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    background: rgba(24, 26, 42, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
}

.cn-modal-window:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.cn-modal-window .login-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 480px;
    background: var(--nl-modal-bg);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--nl-card-border);
    border-radius: 20px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.cn-modal-window .popup-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 56px 16px 22px;
    background: var(--nl-modal-head);
    border-bottom: 1px solid var(--nl-card-border);
}

.cn-modal-window .popup-header h3 {
    margin: 0;
    font-family: "Lora", Georgia, serif !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    color: var(--nl-heading);
}

.cn-modal-close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    text-decoration: none !important;
}

.cn-modal-close::after {
    content: "\00d7";
    display: block;
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    font-size: 22px;
    color: var(--nl-body);
    transition: color .15s;
}

.cn-modal-close:hover::after {
    color: var(--nl-heading);
}

.cn-modal-window .popup-body {
    padding: 24px 26px 28px;
    text-align: center;
    background: none;
}

.cn-modal-window .popup-body>div {
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 13.5px;
    color: var(--nl-body);
}

.cn-modal-window p.forgot-pwd-link {
    margin: 12px 0 18px !important;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    line-height: 1.7;
    color: var(--nl-body) !important;
}

a.pwd-link {
    display: inline-block;
    padding: 11px 26px;
    background: var(--nl-btn-bg);
    border: 1px solid var(--nl-btn-bdr);
    border-radius: 50px;
    box-shadow: 0 2px 14px var(--nl-btn-shadow);
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff !important;
    text-decoration: none !important;
    transition: background .15s, box-shadow .15s;
}

a.pwd-link:hover {
    background: var(--nl-btn-bg-h);
    box-shadow: 0 4px 20px var(--nl-btn-shadow-h);
}

/* ---------------------------------------------------------------------------
   13. Legacy leftovers kept for behavioural parity
   ------------------------------------------------------------------------ */
#left-column {
    width: 950px !important;
}

/* ---------------------------------------------------------------------------
   14. Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .nl-main {
        gap: 40px;
        padding: 36px 40px 30px;
    }

    .nl-heading {
        font-size: 42px;
    }

    .nl-form-area {
        width: 340px;
    }
}

@media (max-width: 860px) {
    .nl-main {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        padding: 34px 24px 26px;
    }

    .nl-info {
        max-width: 100%;
        text-align: center;
    }

    .nl-body-text {
        max-width: 100%;
        margin: 0 auto;
    }

    .nl-rule {
        width: 56px;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--nl-rule), transparent);
    }

    .nl-form-area {
        width: 100%;
        max-width: 400px;
    }

    .nl-heading {
        font-size: 34px;
    }

    .nl-notice {
        width: calc(100% - 40px);
    }

    .nl-footer {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .nl-footer .nl-powered {
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .nl-main {
        padding: 26px 16px 22px;
        gap: 20px;
    }

    .nl-info {
        display: none;
    }

    .nl-rule {
        display: none;
    }

    .nl-form-area {
        max-width: 100%;
        padding: 26px 20px 24px;
        border-radius: 16px;
    }

    .nl-input {
        height: 46px !important;
        font-size: 14px !important;
    }

    .nl-btn-login {
        height: 46px;
        font-size: 11px;
    }

}

/* ---------------------------------------------------------------------------
   15. Theme transitions
   Every token below is re-written live by the Customise panel, so animate the
   properties that consume them.
   ------------------------------------------------------------------------ */
.nl-eyebrow,
.nl-heading,
.nl-heading em,
.nl-body-text,
.nl-card-label,
.nl-inst-name,
.nl-link,
.nl-terms-link,
.nl-field-icon,
.nl-eye,
.nl-footer .nl-welcome,
.nl-footer a,
.nl-footer .nl-powered {
    transition: color .4s;
}

.nl-form-area {
    transition: background .4s, border-color .4s, box-shadow .4s, border-radius .3s;
}

.nl-rule,
.nl-footer,
.nl-notice {
    transition: background .4s, border-color .4s;
}

/* ---------------------------------------------------------------------------
   16. Customise (designer) panel
   Namespaced nl-dsg-* so nothing collides with Bootstrap's .panel-* / .btn.
   ------------------------------------------------------------------------ */
.nl-dsg-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    padding: 10px 22px;
    background: linear-gradient(135deg, #1b2a4a 0%, #111827 100%);
    color: #fff;
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 24px;
    cursor: pointer;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 162, 39, 0.1);
    transition: transform .15s, box-shadow .15s;
}

.nl-dsg-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.nl-dsg-panel {
    position: fixed;
    right: 20px;
    bottom: 68px;
    z-index: 999;
    width: 340px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6);
    font-family: "Nunito Sans", sans-serif !important;
    transform-origin: bottom right;
    transition: opacity .2s, transform .2s;
}

.nl-dsg-panel.nl-dsg-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.92) translateY(8px);
}

.nl-dsg-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nl-dsg-title {
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.nl-dsg-actions {
    display: flex;
    gap: 6px;
}

.nl-dsg-btn {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit !important;
    font-size: 10px;
    letter-spacing: .4px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.nl-dsg-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
}

.nl-dsg-section {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nl-dsg-label {
    margin-bottom: 10px;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

/* Preset chips */
.nl-dsg-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.nl-dsg-chip {
    height: 26px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.nl-dsg-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.nl-dsg-chip.nl-dsg-active {
    background: rgba(201, 162, 39, 0.2);
    border-color: rgba(201, 162, 39, 0.5);
    color: rgba(201, 162, 39, 0.95);
}

/* Gradient colour pickers */
.nl-dsg-grad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.nl-dsg-color {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nl-dsg-color label {
    flex: 1;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 9.5px;
    letter-spacing: .3px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.nl-dsg-color input[type=color] {
    width: 30px;
    height: 22px;
    padding: 1px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
}

/* Segmented toggles */
.nl-dsg-toggles {
    display: flex;
    gap: 5px;
    margin-top: 2px;
}

.nl-dsg-tbtn {
    flex: 1;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.nl-dsg-tbtn.nl-dsg-active {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.92);
}

.nl-dsg-tbtn:hover:not(.nl-dsg-active) {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.75);
}

/* Institution block */
.nl-dsg-input {
    width: 100%;
    height: 32px;
    margin-bottom: 8px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.75);
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 12px;
    outline: none;
    transition: border-color .15s;
}

.nl-dsg-input:focus {
    border-color: rgba(201, 162, 39, 0.45);
}

.nl-dsg-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    cursor: pointer;
}

.nl-dsg-check input {
    accent-color: #c9a227;
    cursor: pointer;
    margin: 0;
}

.nl-dsg-check span {
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 520px) {
    .nl-dsg-toggle {
        right: 12px;
        bottom: 12px;
        padding: 8px 16px;
        font-size: 10px;
    }

    .nl-dsg-panel {
        right: 12px;
        bottom: 56px;
        width: calc(100vw - 24px);
    }

}
