/* =====================================================================
   LoginModern.css — Default.aspx (sign-in page): depth and polish only.
   Positions, sizes and colours still come from the theme (template.css
   login settings); this file adds rounded corners, soft shadows, nicer
   fields and buttons, and a dark look on phones in night mode.
   Loaded after template.css.
   ===================================================================== */
.D_LoginPanel {
    --lm-primary: var(--zp-primary, #1f4e79);
    --lm-radius: 16px;
    --lm-shadow: 0 22px 50px rgba(15, 23, 42, .22), 0 3px 8px rgba(15, 23, 42, .08);
    --lm-font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* header: soft shadow under it, logo with a gentle lift */
.D_LoginPanel .D_Headersection { box-shadow: 0 4px 16px rgba(15, 23, 42, .18); position: relative; z-index: 2; }
.D_LoginPanel .D_CompanyLogo { box-shadow: 0 4px 12px rgba(15, 23, 42, .18); background: #fff; }

/* ---------- sign-in card ---------- */
.D_LoginBox > .panel {
    border: 0;
    border-radius: var(--lm-radius);
    overflow: hidden;
    box-shadow: var(--lm-shadow);
    background: var(--zp-login-box-body-bg, #fff);
    font-family: var(--lm-font);
}
/* entrance only on the first load: after a partial postback the card is re-drawn and must not fade in again */
html:not(.lm-ready) .D_LoginBox > .panel { animation: lm-rise .35s cubic-bezier(.2, .8, .2, 1); }
.D_LoginBox .D_LogInHeader {
    float: none;                   /* the bootstrap column float made the body slide under it */
    width: 100%;
    display: flex;
    align-items: center;
    padding: 14px 20px !important;
    border: 0;
}
.D_LoginBox .D_LogInHeader > div { float: none; flex: 1 1 auto; width: auto; }
.D_LoginBox .D_LogInHeader .headtitle { font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.D_LoginBox .D_LogInHeader a { font-size: 13px; font-weight: 600; text-decoration: none; opacity: .92; }
.D_LoginBox .D_LogInHeader a:hover { opacity: 1; text-decoration: underline; }
.D_LoginBox .D_LogInBody.SigninBox { margin-top: 0 !important; padding: 10px 20px 16px; height: auto; min-height: 0; border: 0; }
.D_LoginBox .form-horizontal .form-group { margin-left: 0; margin-right: 0; }

/* fields: one rounded box with the icon on the left */
.D_LoginBox .input-group.mar-t { margin-top: 12px; }
.D_LoginBox .input-group:has(> .input-group-addon) {
    display: flex;
    width: 100%;
    border: 1px solid #dfe4ec;
    border-radius: 11px;
    background: #f9fafb;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.D_LoginBox .input-group:has(> .input-group-addon):focus-within {
    border-color: var(--lm-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31, 78, 121, .16);
}
.D_LoginBox .input-group > .input-group-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--lm-primary);
    font-size: 15px;
}
.D_LoginBox .input-group > .form-control {
    flex: 1 1 auto;
    height: 44px;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none !important;
    font: 500 14.5px var(--lm-font);
    color: #1f2937;
}
.D_LoginBox .input-group > select.form-control { padding-left: 4px; cursor: pointer; }
.D_LoginBox .input-group > .form-control::placeholder { color: #9aa3b2; }

/* Remember me */
.D_LoginBox input[type=checkbox] { width: 16px; height: 16px; margin: 0 6px 0 0; vertical-align: -3px; accent-color: var(--lm-primary); }
.D_LoginBox label { font-weight: 500; font-size: 13.5px; cursor: pointer; }

/* Login / Proceed buttons */
.D_LoginBox #panelbutton { padding: 0; }
.D_LoginBox a#lnkbtnlogin,
.D_LoginBox #lnkbtnlogin {
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    font: 700 15.5px var(--lm-font);
    letter-spacing: .01em;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .22);
    transition: filter .15s, transform .05s, box-shadow .15s;
}
.D_LoginBox #lnkbtnlogin:hover { filter: brightness(1.07); box-shadow: 0 10px 22px rgba(15, 23, 42, .26); }
.D_LoginBox #lnkbtnlogin:active { transform: translateY(1px); }
.D_LoginBox .btn { border-radius: 9px; }
.D_LoginBox #lblMsg:not(:empty) { display: block; width: 100%; padding: 8px 12px; border-radius: 10px; background: #fef3f2; font-size: 13px; }
.D_LoginBox .signin-b { border: 0; background: transparent; }

/* ---------- news / events panel and slider ---------- */
.D_LoginPanel .D_EventNews #signupbox > div,
.D_LoginPanel .D_EventNews .panel {
    border: 0;
    border-radius: var(--lm-radius);
    overflow: hidden;
    box-shadow: var(--lm-shadow);
}
.D_LoginPanel .D_LoginSliderPanel .carousel,
.D_LoginPanel .D_LoginSliderPanel .carousel-inner { border-radius: 0 0 var(--lm-radius) var(--lm-radius); overflow: hidden; }
.D_LoginPanel .D_LoginMarque { box-shadow: 0 -4px 14px rgba(15, 23, 42, .12); }
.D_LoginPanel .D_FooterSection { box-shadow: 0 -4px 14px rgba(15, 23, 42, .12); }

/* popups on this page (Forgot password, messages) */
.D_LoginPanel .bobsmodal-content { border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, .35); }

@keyframes lm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .D_LoginBox > .panel { animation: none; } }

/* ---------- phones ---------- */
@media (max-width: 767px) {
    .D_LoginBox > .panel { border-radius: 18px; }
    .D_LoginBox .D_LogInBody.SigninBox { padding: 16px 16px 14px; }
}

/* ---------- phones in dark / night mode ---------- */
@media (prefers-color-scheme: dark) and (max-width: 991px) {
    .D_LoginPanel { background: #0b1120 !important; }
    .D_LoginBox > .panel, .D_LoginBox .D_LogInBody { background: #131b2e !important; color: #e5e7eb !important; box-shadow: 0 0 0 1px #263247, 0 20px 40px rgba(0, 0, 0, .5); }
    .D_LoginBox .input-group:has(> .input-group-addon) { background: #0f1728; border-color: #263247; }
    .D_LoginBox .input-group:has(> .input-group-addon):focus-within { background: #131b2e; }
    .D_LoginBox .input-group > .form-control { color: #e5e7eb; }
    .D_LoginBox .input-group > select.form-control option { background: #131b2e; color: #e5e7eb; }
    .D_LoginBox .input-group > .input-group-addon { color: #93c5fd; }
    .D_LoginBox label, .D_LoginBox .checkbox { color: #cbd2dc; }
    .D_LoginBox #lblMsg:not(:empty) { background: rgba(240, 68, 56, .14); }
}

/* ---------- maintenance / login notice (#marquee): highlighted, moving right to left ---------- */
.D_LoginBox .lm-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 9px 12px;
    border: 1px solid #fec84b;
    border-left: 4px solid #f79009;
    border-radius: 10px;
    background: #fffaeb;
    color: #93370d;
    overflow: hidden;
}
.D_LoginBox .lm-notice:has(> .lm-notice-track > strong:empty) { display: none; }
.D_LoginBox .lm-notice > .fa { flex: 0 0 auto; color: #dc6803; font-size: 15px; }
.D_LoginBox .lm-notice-track { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.D_LoginBox .lm-notice-track > strong {
    display: inline-block;
    padding-left: 100%;
    font-size: 13.5px;
    font-weight: 700;
    animation: lm-ticker 16s linear infinite;
}
.D_LoginBox .lm-notice:hover .lm-notice-track > strong { animation-play-state: paused; }
@keyframes lm-ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
    .D_LoginBox .lm-notice-track { white-space: normal; }
    .D_LoginBox .lm-notice-track > strong { animation: none; padding-left: 0; }
}
@media (prefers-color-scheme: dark) and (max-width: 991px) {
    .D_LoginBox .lm-notice { background: rgba(247, 144, 9, .14); border-color: rgba(253, 176, 34, .45); border-left-color: #f79009; color: #fedf89; }
    .D_LoginBox .lm-notice > .fa { color: #fdb022; }
}
