/* ================================================================
   erploginstyle.css
   Shared ERP Login Styles for:
     - Login.cshtml
     - ForgotPassword.cshtml
     - ForgotUserName.cshtml
     - _LoginViaEmail.cshtml  (partial)
     - _LoginViaContactNo.cshtml  (partial)
     - BranchYearSelection.cshtml  (Security & Dashboard)

   NOTE: .erp-login-wrapper background-image is NOT defined here.
         It is set inline per view because the URL varies by school.
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
header { display: none !important; }
#divBrowserUsageNote { display: none !important; }
.school-top-banner { display: none !important; }

/* ── FULL-PAGE WRAPPER ── */
/* background-image set inline per view (school-specific dynamic URL) */
.erp-login-wrapper {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-right: 60px !important;
    box-sizing: border-box;
    position: relative;
}
.erp-login-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(235, 243, 255, 0.15);
    pointer-events: none;
    z-index: 0;
}

/* ── BRAND PILL ── */
.erp-brand-pill {
    position: absolute;
    top: 6%;
    left: 30%;
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 10px 18px 10px 10px;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.12);
    border: 1px solid rgba(219, 234, 254, 0.8);
    background: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
    max-width: 45%;
}
.erp-brand-pill img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.1);
    flex-shrink: 0;
}
.erp-brand-pill .epb-name { font-size: 20px; font-weight: 700; color: #1e3a5f; line-height: 1.2; }
.erp-brand-pill .epb-sub { font-size: 12px; color: #6b90bb; font-weight: 500; margin-top: 2px; }

/* ── LOGIN CARD ── */
#divMainPage {
    position: relative;
    z-index: 5;
    width: 440px !important;
    min-width: 0 !important;
    max-width: 440px !important;
    background: #ffffff;
    border-radius: 22px;
    padding: 28px 26px 22px;
    box-shadow: 0 10px 50px rgba(30, 58, 95, 0.16), 0 2px 12px rgba(30, 58, 95, 0.08);
    border: 1px solid rgba(219, 234, 254, 0.9);
    overflow: visible !important;
    box-sizing: border-box;
}

/* ── FLATTEN BOOTSTRAP ── */
.erp-box { border: none !important; box-shadow: none !important; background: transparent !important; margin: 0 !important; }
.erp-box-header { display: none !important; }
.erp-box-body { padding: 0 !important; }
.erp-col { padding-left: 0 !important; padding-right: 0 !important; width: 100% !important; float: none !important; }
.erp-form-group { margin-top: 0 !important; margin-bottom: 12px !important; }

/* ── GREET ROW ── */
.greet-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.g-hi { font-size: 20px; font-weight: 700; color: #1e3a5f; line-height: 1.2; }
.g-sub { font-size: 13px; color: #6b90bb; margin-top: 3px; font-weight: 500; }

/* ── LABELS ── */
#divMainPage label { font-size: 12px !important; font-weight: 600 !important; color: #4b7bb5 !important; letter-spacing: 0.3px; margin-bottom: 4px !important; display: block; }

/* ── TABS ── */
.erp-login-tabs { display: flex; background: #eff6ff; border-radius: 12px; padding: 4px; margin-bottom: 14px; gap: 2px; width: 100%; box-sizing: border-box; }
.erp-login-tab-item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 9px; font-size: 13px; font-weight: 500; color: #4b7bb5; padding: 8px 6px; background: transparent; border: none; cursor: pointer; white-space: nowrap; transition: background 0.18s, color 0.18s, box-shadow 0.18s; text-decoration: none !important; font-family: 'Inter', sans-serif; outline: none; -webkit-user-select: none; user-select: none; }
.erp-login-tab-item:hover, .erp-login-tab-item:focus { background: rgba(59, 130, 246, 0.08); color: #1d4ed8; text-decoration: none !important; }
.erp-login-tab-item.active { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #ffffff !important; font-weight: 600; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32); text-decoration: none !important; }
.erp-login-tab-content, .tab-content { width: 100%; border: none !important; float: none !important; border-radius: 0 !important; padding:4px; }
.tab-pane { display: none !important; width: 100% !important; float: none !important; }
.tab-pane.erp-tab-active { display: block !important; }
.tab-pane .col-sm-12, .tab-pane .col-md-12 { width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.tab-pane .controls { width: 100% !important; float: none !important; clear: both; }
#divLoginHeader h3 { font-size: 20px !important; font-weight: 700 !important; color: #1e3a5f !important; margin: 0 0 14px !important; display: flex; align-items: center; gap: 8px; }

/* ── FIELD WRAP ── */
.erp-field-wrap { position: relative; display: block; margin-bottom: 12px; }
.erp-field-row { display: flex; gap: 8px; margin-bottom: 12px; }
.erp-field-row .erp-field-wrap { flex: 1; margin-bottom: 0; min-width: 0; }
.erp-field-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #93c5fd; font-size: 15px; pointer-events: none; z-index: 2; }

/* ── ERP INPUT (custom class — never style .form-control directly) ── */
.erp-input {
    height: 48px !important;
    border-radius: 12px !important;
    border: 1.5px solid #dbeafe !important;
    background: rgba(248, 250, 255, 0.95) !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    padding: 0 42px 0 40px !important;
    box-shadow: 0 1px 4px rgba(30, 58, 95, 0.06) !important;
    color: #1e3a5f !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    display: block !important;
}
.erp-input:focus { border-color: #3b82f6 !important; background: #ffffff !important; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10), 0 2px 8px rgba(30, 58, 95, 0.08) !important; outline: none !important; }
.erp-input::placeholder { color: #a0bcdc !important; font-size: 14px; }
.erp-input[disabled] { background: #f0f4fa !important; color: #6b90bb !important; cursor: not-allowed; }

/* ── PASSWORD EYE TOGGLE ── */
.chkAction { position: absolute !important; top: 50% !important; right: 13px !important; left: auto !important; transform: translateY(-21%) !important; font-size: 14px !important; color: #93c5fd !important; cursor: pointer; z-index: 3; pointer-events: auto !important; display: inline-block !important; }

/* ── REMEMBER ME ── */
.erp-remember-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.erp-remember-row input[type="checkbox"] { width: 16px !important; height: 16px !important; accent-color: #3b82f6; cursor: pointer; flex-shrink: 0; margin: 0 !important; float: none !important; }
.erp-remember-row label { font-size: 13px !important; color: #4b7bb5 !important; font-weight: 500 !important; cursor: pointer; margin: 0 !important; float: none !important; }

/* ── CAPTCHA ── */
.erp-captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.erp-captcha-box { display: flex; align-items: center; gap: 6px; background: #f0f7ff; border: 1.5px solid #dbeafe; border-radius: 10px; padding: 4px 10px; flex-shrink: 0; height: 46px; }
.erp-captcha-box img { height: 34px !important; width: 130px !important; object-fit: contain; border: none !important; background: transparent !important; border-radius: 0 !important; padding: 0 !important; }
.erp-captcha-box .fa-refresh { font-size: 14px; color: #3b82f6; cursor: pointer; }
.erp-captcha-input { flex: 1; position: relative; }
.erp-captcha-input .erp-field-ico { left: 11px; font-size: 14px; }

/* ── SELECT / DROPDOWN (erp-select — never style .form-control directly) ── */
.erp-select {
    height: 46px !important;
    border-radius: 10px !important;
    border: 1.5px solid #dbeafe !important;
    background: #f8faff !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    padding: 0 12px !important;
    box-shadow: none !important;
    color: #1e3a5f !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.18s, box-shadow 0.18s;
    display: block !important;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.erp-select:focus { border-color: #3b82f6 !important; background: #ffffff !important; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important; outline: none !important; }

/* ── SELECT2 OVERRIDES ── */
.select2-container .select2-selection--single .select2-selection__rendered { padding-left: 0; padding-right: 0; }
.select2-container--default .select2-selection--single { border: 0; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; color: #1e3a5f !important; }
#divMainPage .select2 { height: 46px !important; border-radius: 10px !important; border: 1.5px solid #dbeafe !important; background: #f8faff !important; font-size: 14px !important; font-family: 'Inter', sans-serif !important; padding: 0 12px !important; box-shadow: none !important; color: #1e3a5f !important; width: 100% !important; box-sizing: border-box !important; }

/* ── BUTTON ROW ── */
.erp-btn-row { display: flex !important; gap: 10px !important; margin-top: 4px !important; width: 100% !important; align-items: center !important; }
#divMainPage .form-group.col-sm-12 { width: 100% !important; padding: 0 !important; display: flex !important; gap: 10px !important; margin-top: 4px !important; float: none !important; }

/* ── SUBMIT BUTTON (blue gradient) ── */
#divMainPage button[type="submit"],
#divMainPage button[type="submit"].submit {
    flex: 1 !important;
    height: 46px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px;
    transition: all 0.18s;
    width: auto !important;
}
#divMainPage button[type="submit"]:hover { box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important; transform: translateY(-1px); }

/* ── RESET / SECONDARY BUTTON ── */
#divMainPage button[type="reset"],
#divMainPage .login-submit {
    flex: 1 !important;
    height: 46px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 2px solid #dbeafe !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #3b82f6 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px;
    transition: all 0.18s;
    width: auto !important;
    box-shadow: none !important;
}
#divMainPage button[type="reset"]:hover,
#divMainPage .login-submit:hover { background: #eff6ff !important; border-color: #93c5fd !important; }

/* ── GENERIC ACTION BUTTON (type="button") ── */
.erp-btn-action {
    flex: 1 !important;
    height: 46px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px;
    transition: all 0.18s;
    width: auto !important;
}
.erp-btn-action:hover { box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important; transform: translateY(-1px); }
.erp-btn-action:disabled, .erp-btn-action[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ── BranchYearSelection: CONTINUE button ── */
.erp-btn-continue {
    flex: 1 !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    transition: all 0.18s;
    width: auto !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    outline: none;
}
.erp-btn-continue:hover { box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important; transform: translateY(-1px); }

/* ── BranchYearSelection: LOGOUT button ── */
.erp-logout-btn {
    flex: 1 !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 2px solid #dbeafe !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #3b82f6 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    transition: all 0.18s;
    width: auto !important;
    box-shadow: none !important;
    text-decoration: none !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 1 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    outline: none;
}
.erp-logout-btn:hover { background: #eff6ff !important; border-color: #93c5fd !important; color: #2563eb !important; text-decoration: none !important; }

/* ── BACK TO LOGIN BUTTON ── */
.erp-back-btn {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    height: 46px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 2px solid #dbeafe !important;
    color: #3b82f6 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.18s;
    box-shadow: none !important;
}
.erp-back-btn:hover { background: #eff6ff !important; border-color: #93c5fd !important; text-decoration: none !important; transform: translateY(-1px); }

/* ── input[type="reset"] (ForgotPassword / ForgotUserName) ── */
#divMainPage input[type="reset"] {
    flex: 1 !important;
    height: 46px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 2px solid #dbeafe !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #3b82f6 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px;
    transition: all 0.18s;
    box-shadow: none !important;
}
#divMainPage input[type="reset"]:hover { background: #eff6ff !important; border-color: #93c5fd !important; }

/* ── SSO DIVIDER ── */
.erp-sso-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; font-size: 12px; color: #93afd4; font-weight: 500; }
.erp-sso-divider::before, .erp-sso-divider::after { content: ''; flex: 1; height: 1px; background: #dbeafe; }

/* ── VALIDATION ERRORS ── */
.editor-error { color: #dc2626 !important; font-weight: 600 !important; position: absolute; z-index: 100; right: 42px; top: 3px; font-size: 11px; }
#spanErroMessage { color: #dc2626 !important; font-weight: 600 !important; font-size: 13px; display: block; margin-bottom: 8px; }

/* ── USER LIST (email/contact login page 4) ── */
.erp-user-list { display: flex; flex-direction: column; gap: 8px; max-height: 210px; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: rgba(37, 99, 235, 0.2) transparent; }
.erp-user-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #dbeafe; background: #f8faff; transition: border-color 0.18s, background 0.18s, box-shadow 0.18s; }
.erp-user-item:hover { border-color: #93c5fd; background: #eff6ff; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.10); }
.erp-user-ico { width: 36px; height: 36px; border-radius: 10px; background: #dbeafe; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #2563eb; flex-shrink: 0; }
.erp-user-name { flex: 1; font-size: 13px; font-weight: 500; color: #1e3a5f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erp-user-btn { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #2563eb, #1d4ed8); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28); transition: box-shadow 0.18s, transform 0.18s; }
.erp-user-btn:hover { box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45); transform: translateX(2px); }

/* ── PIN BOXES (pinlogin plugin) ── */
.pinlogin { display: flex !important; gap: 8px !important; justify-content: flex-start !important; align-items: center !important; width: 100% !important; flex-wrap: nowrap !important; }
.pinlogin-field {
    width: 46px !important;
    height: 46px !important;
    min-width: 0 !important;
    border-radius: 10px !important;
    border: 1.5px solid #dbeafe !important;
    background: #f8faff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
    color: #1e3a5f !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    flex: 1 1 0 !important;
    max-width: 52px !important;
    caret-color: transparent !important;
    cursor: pointer !important;
    letter-spacing: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.pinlogin-field:focus { border-color: #3b82f6 !important; background: #ffffff !important; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important; }
.pinlogin-field.pinlogin-complete,
.pinlogin.pinlogin-complete .pinlogin-field { border-color: #22c55e !important; background: #f0fdf4 !important; }

/* ── LOGOS FOOTER BAR ── */
.logos-hdr {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 55%, #0e4f2a 100%);
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 12px !important;
    margin-top: 14px !important;
    position: relative;
    overflow: hidden;
    top: auto !important;
}
.logos-hdr::before { content: ''; position: absolute; top: 0; left: -40%; width: 180%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.06), transparent); transform: skewX(-20deg); pointer-events: none; }
.logos-hdr .lh-r { display: flex !important; align-items: center !important; gap: 8px; position: relative; z-index: 1; }
.logos-hdr .lh-r img { height: 50px !important; width: auto !important; max-width: 130px !important; object-fit: contain; }

/* ── MODAL OVERRIDE (BranchYearSelection in modal context) ── */
.modal .erp-login-wrapper { height: auto; min-height: auto; padding-right: 0 !important; justify-content: center !important; background: none !important; }
.modal #divMainPage { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 10px !important; }
.modal .erp-brand-pill { display: none !important; }

/* ── QUICK ACCESS DRAWER (Login page) ── */
.erp-qa-toggle { position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 1062; width: 40px; background: linear-gradient(180deg, #2563eb, #1d4ed8); border-radius: 10px 0 0 10px; box-shadow: -3px 0 16px rgba(30, 58, 95, 0.22); cursor: pointer; border: none; display: flex; flex-direction: column; align-items: center; padding: 14px 6px; gap: 8px; transition: right 0.4s cubic-bezier(.32,0,.17,1), background 0.2s; font-family: 'Inter', sans-serif; }
.erp-qa-toggle:hover { background: linear-gradient(180deg, #3b82f6, #2563eb); }
.erp-qa-toggle.erp-qa-open { right: 370px; background: linear-gradient(180deg, #dc2626, #991b1b); }
.erp-qa-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); flex-shrink: 0; }
.erp-qa-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; font-weight: 800; color: white; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.erp-qa-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0); z-index: 1055; pointer-events: none; transition: background 0.35s; }
.erp-qa-overlay.erp-qa-open { background: rgba(0, 0, 0, 0.35); pointer-events: all; }
.erp-qa-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 370px; background: #fff; z-index: 1058; transform: translateX(100%); transition: transform 0.4s cubic-bezier(.32,0,.17,1); display: flex; flex-direction: column; border-radius: 18px 0 0 18px; box-shadow: -18px 0 60px rgba(0, 0, 0, 0.18); overflow: hidden; }
.erp-qa-drawer.erp-qa-open { transform: translateX(0); }
.erp-qa-hdr { background: linear-gradient(135deg, #1e3a5f, #1d4ed8); padding: 18px 22px 16px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.erp-qa-hdr h3 { font-size: 20px; font-weight: 700; color: white; margin: 0; }
.erp-qa-hdr p { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); margin: 2px 0 0; }
.erp-qa-close-btn { width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.22); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; }
.erp-qa-close-btn svg { width: 16px; height: 16px; }
.erp-qa-search { padding: 12px 16px; border-bottom: 1px solid #eff6ff; flex-shrink: 0; }
.erp-qa-search-inner { display: flex; align-items: center; gap: 8px; background: #f0f7ff; border-radius: 10px; padding: 8px 12px; }
.erp-qa-search-inner svg { width: 14px; height: 14px; color: #93c5fd; flex-shrink: 0; }
.erp-qa-search-inner input { border: none; background: transparent; font-size: 13px; color: #1e3a5f; outline: none; flex: 1; }
.erp-qa-search-inner input::placeholder { color: #93c5fd; }
.erp-qa-body { flex: 1; overflow-y: auto; padding: 14px 16px 20px; scrollbar-width: thin; scrollbar-color: rgba(37, 99, 235, 0.2) transparent; }
.erp-qa-sec { font-size: 10px; font-weight: 700; color: #93afd4; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; padding-left: 2px; }
.erp-qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.erp-qa-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px; border-radius: 12px; text-decoration: none !important; border: 1.5px solid #dbeafe; background: white; transition: all 0.16s; cursor: pointer; }
.erp-qa-item:hover { border-color: #93c5fd; background: #eff6ff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12); }
.erp-qa-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.erp-qa-txt { font-size: 10px; font-weight: 600; color: #1e3a5f; text-align: center; line-height: 1.3; }
.eqa-g { background: #dcfce7; } .eqa-r { background: #fee2e2; } .eqa-b { background: #dbeafe; }
.eqa-o { background: #ffedd5; } .eqa-p { background: #ede9fe; } .eqa-t { background: #ccfbf1; }
.eqa-y { background: #fef9c3; } .eqa-pk { background: #fce7f3; } .eqa-gr { background: #f1f5f9; }
.erp-qa-inline-wrap { display: none; width: 100%; box-sizing: border-box; margin-top: 10px; }
.erp-qa-inline-btn { width: 100%; padding: 12px 20px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3); transition: transform 0.15s, box-shadow 0.15s; }
.erp-qa-inline-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); }

/* ── SECURED BADGE ── */
.erp-secure-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #93afd4;
    letter-spacing: 0.2px;
    width: 100%;
}
.erp-secure-badge::before,
.erp-secure-badge::after { content: ''; flex: 1; height: 1px; background: #dbeafe; }
.erp-secure-badge-ico { width: 13px; height: 13px; flex-shrink: 0; color: #93c5fd; }
.erp-secure-badge strong { color: #3b82f6; font-weight: 700; letter-spacing: 0; }

/* ── MISC ── */
.btn-red { padding: 12px 20px !important; }
.printhidden { overflow: visible !important; }

/* ── CONTACT PAGE: WIDE CARD ── */
.erp-card-wide { width: 600px !important; max-width: 600px !important; }

/* ── CONTACT PAGE: TWO-COLUMN GRID ── */
.erp-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.erp-contact-full { grid-column: 1 / -1; }

/* ── TEXTAREA VARIANT (override erp-input fixed height / icon padding) ── */
textarea.erp-input { height: auto !important; min-height: 88px !important; padding: 10px 14px !important; resize: vertical; line-height: 1.5 !important; }

/* ── CHECKBOX ROW (contact preference) ── */
.erp-check-row { display: flex; gap: 20px; margin-top: 4px; align-items: center; flex-wrap: wrap; }
.erp-check-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #4b7bb5; font-weight: 500; cursor: pointer; -webkit-user-select: none; user-select: none; }
.erp-check-item input[type="checkbox"] { width: 16px !important; height: 16px !important; accent-color: #3b82f6; cursor: pointer; flex-shrink: 0; margin: 0 !important; float: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1300px) {
    .erp-login-wrapper { padding-right: 40px !important; }
    #divMainPage { width: 420px !important; max-width: 420px !important; }
    .erp-card-wide { width: 560px !important; max-width: 560px !important; }
}
@media (max-width: 1100px) {
    .erp-login-wrapper { padding-right: 30px !important; }
    #divMainPage { width: 400px !important; max-width: 400px !important; }
    .erp-card-wide { width: 520px !important; max-width: 520px !important; }
    .erp-brand-pill { left: 26%; }
}
@media (max-width: 991px) {
    .erp-login-wrapper { justify-content: center !important; align-items: center !important; padding: 100px 20px 40px !important; background-attachment: scroll; }
    .erp-brand-pill { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 500px; }
    #divMainPage { width: 100% !important; max-width: 480px !important; }
    .erp-card-wide { max-width: 600px !important; }
    .erp-qa-toggle { display: none !important; }
    .erp-qa-inline-wrap { display: block !important; }
    .erp-qa-drawer { width: 360px !important; }
}
@media (max-width: 640px) {
    .erp-contact-grid { grid-template-columns: 1fr; }
    .erp-contact-full { grid-column: auto; }
}
@media (max-width: 768px) {
    .jnslogo { display: none !important; }
}
@media (max-width: 767px) {
    .erp-login-wrapper { padding: 90px 14px 30px !important; align-items: flex-start !important; }
    .erp-brand-pill { padding: 8px 14px 8px 8px; gap: 10px; }
    .erp-brand-pill img { width: 42px !important; height: 42px !important; }
    .erp-brand-pill .epb-name { font-size: 15px !important; }
    #divMainPage { width: 100% !important; max-width: 100% !important; border-radius: 16px !important; padding: 20px 16px 16px !important; }
    .erp-qa-drawer { width: 100% !important; top: auto !important; height: 82vh !important; border-radius: 18px 18px 0 0 !important; }
    .erp-qa-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 479px) {
    .erp-login-wrapper { padding: 80px 10px 24px !important; }
    .erp-brand-pill .epb-name { font-size: 13px !important; }
    .erp-brand-pill img { width: 36px !important; height: 36px !important; }
    #divMainPage { border-radius: 12px !important; padding: 16px 12px 14px !important; }
    .erp-btn-row { flex-direction: column; gap: 8px !important; }
    #divMainPage button[type="submit"], #divMainPage button[type="reset"] { width: 100% !important; }
    .erp-qa-drawer { height: 88vh !important; }
    .erp-qa-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
    .erp-field-row { flex-direction: column; gap: 0; }
    .erp-field-row .erp-field-wrap { margin-bottom: 12px; }
}
