body.dsh-login-page {
    --dsh-login-ink: #16362c;
    --dsh-login-muted: #51665c;
    --dsh-login-green: #11614b;
    --dsh-login-dark: #0c493b;
    --dsh-login-line: #d7e3d9;
    --dsh-login-gutter: clamp(16px, 4.2vw, 42px);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background: linear-gradient(#edf4ed, #f5f8f3 55%) #f5f8f3 no-repeat;
    color: var(--dsh-login-ink);
    font-size: 16px;
    line-height: 1.5;
}
.dsh-login-page :focus-visible {
    outline: 2px solid #a46a2a;
    outline-offset: 3px;
}
.dsh-login-frame {
    display: flex;
    width: min(var(--dsh-home-width), calc(100% - 2 * var(--dsh-gutter)));
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-inline: auto;
}
.dsh-login-icon {
    display: block;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dsh-login-header {
    border-bottom: 1px solid var(--dsh-login-line);
    background: #fff;
}
.dsh-login-header .dsh-login-frame { min-height: 67px; }
.dsh-login-brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 9px;
    color: var(--dsh-login-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}
.dsh-login-brand:hover { color: var(--dsh-login-green); text-decoration: none; }
.dsh-login-mark {
    display: grid;
    width: 39px;
    height: 39px;
    flex: none;
    place-items: center;
    border-radius: 9px;
    background: var(--dsh-login-dark);
    color: #fff;
}
.dsh-login-vision {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid var(--dsh-login-line);
    border-radius: 8px;
    color: var(--dsh-login-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}
.dsh-login-vision:hover {
    border-color: var(--dsh-login-green);
    background: #eef5ef;
    color: var(--dsh-login-dark);
    text-decoration: none;
}

.dsh-header-admin { display: inline-flex; flex: none; }
.dsh-header-admin > a, .dsh-header-admin-menu > summary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dsh-login-green);
    background: var(--dsh-login-green);
    color: #fff;
    text-decoration: none;
}
.dsh-header-admin > a {
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.dsh-header-admin > a svg { width: 18px; height: 18px; }
.dsh-header-admin:has(.dsh-header-admin-menu:not([hidden])) > a { border-radius: 8px 0 0 8px; }
.dsh-header-admin-menu { position: relative; }
.dsh-header-admin-menu > summary {
    min-width: 38px;
    border-left-color: #ffffff42;
    border-radius: 0 8px 8px 0;
    list-style: none;
    cursor: pointer;
}
.dsh-header-admin-menu > summary::-webkit-details-marker { display: none; }
.dsh-header-admin > a:is(:hover, :focus-visible),
.dsh-header-admin-menu > summary:is(:hover, :focus-visible),
.dsh-header-admin-menu[open] > summary {
    background: var(--dsh-login-dark);
    color: #fff;
    text-decoration: none;
}
.dsh-header-admin-menu[open] > summary svg { transform: rotate(180deg); }
.dsh-header-admin-menu .dsh-header-admin-list {
    position: absolute;
    z-index: 45;
    top: calc(100% + 8px);
    right: 0;
    width: 228px;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--dsh-login-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px #12382c26;
    list-style: none;
}
.dsh-header-admin-list a {
    display: block;
    padding: 9px 10px;
    border-radius: 6px;
    color: var(--dsh-login-ink);
    line-height: 1.35;
    text-decoration: none;
}
.dsh-header-admin-list a:is(:hover, :focus-visible) {
    background: #eaf3eb;
    color: var(--dsh-login-dark);
    outline-offset: -2px;
}
@media (max-width: 480px) {
    .dsh-header-admin > a { gap: 5px; padding-inline: 7px; font-size: 13px; }
}
@media (max-width: 380px) {
    .dsh-header-admin > a { min-width: 42px; }
    .dsh-header-admin > a span { display: none; }
}

.dsh-header-search {
    display: flex;
    min-width: 0;
    max-width: 340px;
    min-height: 44px;
    flex: 1 1 275px;
    align-items: stretch;
    margin: 0;
    border: 1px solid var(--dsh-login-line);
    border-radius: 9px;
    background: #f8fbf8;
}
.dsh-header-search:focus-within { border-color: var(--dsh-login-green); background: #fff; }
.dsh-header-search input {
    width: 100%;
    min-width: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dsh-login-ink);
    font: inherit;
    font-size: 16px;
}
.dsh-header-search input::placeholder { color: var(--dsh-login-muted); opacity: 1; }
.dsh-header-search :focus-visible { outline-offset: -2px; }
.dsh-header-search button {
    display: grid;
    width: 44px;
    min-height: 42px;
    flex: none;
    place-items: center;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--dsh-login-line);
    border-radius: 0 8px 8px 0;
    background: #eaf3eb;
    color: var(--dsh-login-dark);
    cursor: pointer;
}
.dsh-header-search button:hover { background: #deeee0; }
.dsh-header-search button svg { width: 19px; height: 19px; }
.dsh-login-page:has(.dsh-header-search) :is(.dsh-member-navigation, .dsh-profile-menu-panel) .widget_search { display: none; }

@media (max-width: 690px) {
    .dsh-header-with-search .dsh-login-frame {
        flex-wrap: wrap;
        gap: 7px;
        padding-block: 8px;
    }
    .dsh-header-with-search:has(.dsh-header-admin) .dsh-login-frame { position: relative; }
    .dsh-header-admin { margin-left: auto; }
    .dsh-header-admin-menu { position: static; }
    .dsh-header-admin-menu .dsh-header-admin-list { top: calc(100% + 4px); }
    .dsh-header-search { max-width: none; flex: 1 0 100%; }
}
@media (max-width: 570px) {
    .dsh-header-with-search:has(.dsh-header-admin) .dsh-login-vision {
        width: 42px;
        flex: none;
        justify-content: center;
        padding-inline: 0;
    }
    .dsh-header-with-search:has(.dsh-header-admin) .dsh-login-vision span { display: none; }
}

.dsh-login-main {
    display: flex;
    width: min(940px, calc(100% - 2 * var(--dsh-login-gutter)));
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: center;
    margin-inline: auto;
    padding-block: clamp(25px, 5vh, 58px);
}
.dsh-auth-reset .dsh-login-main { width: min(500px, calc(100% - 2 * var(--dsh-login-gutter))); }
.dsh-login-page #controller_wrap { min-width: 0; padding: 0; }
.dsh-login-page > .dsh-footer { margin-top: 0; }
.dsh-entry-grid {
    display: grid;
    max-width: 940px;
    grid-template-columns: minmax(0, 1fr) minmax(245px, .58fr);
    align-items: start;
    gap: clamp(14px, 2.2vw, 24px);
    margin-inline: auto;
}
.dsh-entry-single { max-width: 520px; grid-template-columns: minmax(0, 1fr); }
.dsh-login-card {
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--dsh-login-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 30px #123d2e0d;
}
.dsh-login-heading { margin: 0 0 24px; }
.dsh-login-symbol {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin: 0 0 14px;
    border-radius: 13px;
    background: #e8f2e9;
    color: var(--dsh-login-green);
}
.dsh-login-heading h1 {
    margin: 0;
    color: var(--dsh-login-ink);
    font-size: clamp(28px, 5vw, 34px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.022em;
}
.dsh-login-intro {
    max-width: 44ch;
    margin: 9px 0 0;
    color: var(--dsh-login-muted);
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.dsh-entry-help {
    padding: clamp(20px, 3vw, 29px);
    border: 1px solid var(--dsh-login-dark);
    border-radius: 17px;
    background: var(--dsh-login-dark);
    color: #e3f1e8;
    overflow-wrap: anywhere;
    scroll-margin-top: 16px;
}
.dsh-entry-help > div + div { margin-top: 18px; padding-top: 17px; border-top: 1px solid #ffffff39; }
.dsh-entry-help h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}
.dsh-entry-help p { margin: 0; color: inherit; font-size: 16px; line-height: 1.45; }
.dsh-entry-link {
    color: var(--dsh-login-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.dsh-entry-link:hover { color: var(--dsh-login-dark); }
.dsh-entry-help .dsh-entry-link, .dsh-entry-help .dsh-entry-link:hover { color: #fff; }
.dsh-entry-help :is(a:focus-visible, button:focus-visible) { outline-color: #fff; }
.dsh-entry-link-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 7px 13px;
    border-radius: 8px;
    background: #f3f9f3;
    color: var(--dsh-login-dark);
    font-weight: 700;
    text-decoration: none;
}
.dsh-entry-link-button:hover { background: #ddecdf; color: var(--dsh-login-dark); text-decoration: none; }
.dsh-login-form form { margin: 0; }
.dsh-login-form form fieldset {
    min-width: 0;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
}
.dsh-login-form form legend {
    width: auto;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: var(--dsh-login-ink);
    font-size: 16px;
    font-weight: 600;
}
.dsh-login-form form .field {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0 0 14px;
    padding: 0;
}
.dsh-login-form form .field.ft_hidden { display: none; }
.dsh-login-form .field > label,
.dsh-login-form .dsh-field-heading label,
.dsh-role-heading {
    display: block;
    margin: 0 0 5px;
    color: var(--dsh-login-ink);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
.dsh-login-form .field :is(input[type="email"], input[type="password"], input[type="text"], select) {
    width: 100%;
    min-height: 50px;
    padding: 9px 12px;
    border: 1px solid #c9d8ce;
    border-radius: 8px;
    background: #fbfdfa;
    box-shadow: none;
    color: var(--dsh-login-ink);
    font-size: 16px;
}
.dsh-login-form .field :is(input[type="email"], input[type="password"], input[type="text"], select):focus {
    border-color: var(--dsh-login-green);
    background: #fff;
}
.dsh-login-form .field .hint {
    margin-top: 5px;
    padding: 0;
    color: var(--dsh-login-muted);
    font-size: 13px;
    line-height: 1.4;
}
.dsh-field-heading {
    display: flex;
    min-height: 27px;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 10px;
}
.dsh-field-heading .dsh-entry-link { margin-bottom: 5px; font-size: 14px; }
#f_login_password.reguired_field .dsh-field-heading label::after { margin-left: 4px; color: #e74c3c; content: "*"; }
.dsh-password-control { position: relative; }
.dsh-login-form .field .dsh-password-control input { padding-right: 52px; }
.dsh-password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    background: #edf4ee;
    color: var(--dsh-login-green);
    cursor: pointer;
}
.dsh-password-toggle:hover, .dsh-password-toggle.is-visible { background: #e1ede3; color: var(--dsh-login-dark); }
.dsh-password-slash { visibility: hidden; }
.dsh-password-toggle.is-visible .dsh-password-slash { visibility: visible; }
.dsh-login-form .field :is(input,select,textarea)[aria-invalid="true"],
.dsh-login-form .field_error .chosen-container-single .chosen-single { border-color: #a84c54; }
.dsh-login-form .field .error { color: #8b3039; }
.dsh-login-form .chosen-container { width: 100% !important; max-width: 100%; font-size: 16px; }
.dsh-login-form .chosen-container-single .chosen-single {
    height: 50px;
    padding-left: 12px;
    border: 1px solid #c9d8ce;
    border-radius: 8px;
    background: #fbfdfa;
    box-shadow: none;
    color: var(--dsh-login-ink);
    line-height: 48px;
}
.dsh-login-form .chosen-container-single .chosen-single div {
    display: grid;
    width: 26px;
    place-items: center;
}
.dsh-login-form .chosen-container-single .chosen-single div b {
    width: 7px;
    height: 7px;
    border-right: 1px solid var(--dsh-login-green);
    border-bottom: 1px solid var(--dsh-login-green);
    background: none;
    transform: translateY(-2px) rotate(45deg);
}
.dsh-login-form .chosen-container-active .chosen-single {
    border-color: var(--dsh-login-green);
    background: #fff;
}
.dsh-login-form .chosen-container .chosen-drop { border-color: #c9d8ce; }
.dsh-login-form .chosen-container .chosen-results li.highlighted { background: var(--dsh-login-green); }
.dsh-register-card .dsh-login-form fieldset + fieldset { margin-top: 13px; }
.dsh-register-switch { margin: 7px 0 0; color: var(--dsh-login-muted); font-size: 15px; }
.dsh-register-card .dsh-login-form fieldset legend {
    width: 100%;
    border-top: 1px solid var(--dsh-login-line);
    padding-top: 12px;
    font-size: 17px;
    font-weight: 700;
}
.dsh-register-card #f_group_id.dsh-role-enhanced :is(select, .chosen-container) { display: none !important; }
.dsh-role-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dsh-role-buttons button {
    min-height: 46px;
    padding: 6px 10px;
    border: 1px solid var(--dsh-login-line);
    border-radius: 8px;
    background: #fbfdfa;
    color: var(--dsh-login-ink);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.dsh-role-buttons button:hover { border-color: var(--dsh-login-green); }
.dsh-role-buttons button[aria-pressed="true"] {
    border-color: var(--dsh-login-green);
    background: #e6f1e7;
    box-shadow: inset 0 0 0 1px var(--dsh-login-green);
    color: var(--dsh-login-dark);
}
.dsh-login-form #f_remember { margin: 4px 0 0; }
.dsh-login-form #f_remember label {
    display: flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}
.dsh-login-form #f_remember input {
    position: static;
    width: 16px;
    height: 16px;
    flex: none;
    margin: 0;
    accent-color: var(--dsh-login-green);
}
.dsh-login-form form .buttons { margin: 10px 0 0; padding: 0; }
.dsh-login-form form .buttons .button-submit {
    width: 100%;
    min-height: 50px;
    padding: 9px 14px;
    border: 1px solid var(--dsh-login-green) !important;
    border-radius: 8px;
    background: var(--dsh-login-green);
    box-shadow: none;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}
.dsh-login-form form .buttons .button-submit:hover,
.dsh-login-form form .buttons .button-submit:active {
    border-color: var(--dsh-login-dark) !important;
    background: var(--dsh-login-dark);
    color: #fff !important;
}
.dsh-login-page .dsh-login-messages { margin: 0; }
.dsh-login-page .dsh-login-notice {
    margin: 0 0 12px;
    padding: 11px 14px;
    border: 1px solid var(--dsh-login-line);
    border-radius: 9px;
    background: #f2f8f2;
    color: var(--dsh-login-ink);
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.dsh-login-page .dsh-login-notice.message_error {
    border-color: #ebcdcf;
    background: #fff1f1;
    color: #8b3039;
}
.dsh-login-recovery, .dsh-login-register { text-align: center; }
.dsh-login-recovery { margin: 10px 0 0; }
.dsh-login-recovery a, .dsh-login-register a {
    display: inline-block;
    padding-block: 4px;
    color: var(--dsh-login-green);
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.dsh-login-register {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 5px;
    margin: 13px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--dsh-login-line);
    color: var(--dsh-login-muted);
    font-size: 15px;
}
.dsh-login-providers {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--dsh-login-line);
}
.dsh-login-providers h2 { margin: 0 0 8px; color: var(--dsh-login-ink); font-size: 16px; font-weight: 600; }

@media (max-width: 760px) {
    .dsh-entry-grid { max-width: 560px; grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
    .dsh-login-header .dsh-login-frame { min-height: 59px; }
    .dsh-login-brand { gap: 7px; font-size: 19px; }
    .dsh-login-mark { width: 35px; height: 35px; }
    .dsh-login-mark .dsh-login-icon { width: 21px; height: 21px; }
    .dsh-login-vision { gap: 5px; padding-inline: 8px; font-size: 13px; }
    .dsh-login-heading { margin-bottom: 21px; }
}

@media (min-width: 560px) {
    .dsh-register-card .dsh-login-form :is(#fset_basic, #fset_1) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
    }
    .dsh-register-card .dsh-login-form #fset_basic > .field:not(#f_password1, #f_password2),
    .dsh-register-card .dsh-login-form #fset_1 > .field:not(#f_schools_cats, #f_school_id, #f_classroom_teacher_id, #f_teach_class_id) {
        grid-column: 1 / -1;
    }
}
