/* ================================================================
   logincss.css � Form controls for light glass card on orange bg
   ================================================================ */

/* -- INTER FONT (self-hosted) ------------------------------------ */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_18pt-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_18pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_18pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_18pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* -- BASE -------------------------------------------------------- */
body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
}

/* -- LOADING OVERLAY --------------------------------------------- */
.mainbg .loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.60);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: none;
}

.mainbg .loading > div {
    position: relative;
    top: 30%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.imgLogoLoader {
    background: #D32F2F;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    -webkit-box-shadow:
        0 0 0 14px rgba(255, 255, 255, 0.15),
        0 0 0 28px rgba(255, 255, 255, 0.07),
        0 0 60px rgba(211, 47, 47, 0.40);
    box-shadow:
        0 0 0 14px rgba(255, 255, 255, 0.15),
        0 0 0 28px rgba(255, 255, 255, 0.07),
        0 0 60px rgba(211, 47, 47, 0.40);
}

@-webkit-keyframes spin {
    0%   { -webkit-transform: rotate(0deg);   }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0%   { transform: rotate(0deg);   }
    100% { transform: rotate(360deg); }
}

/* -- VALIDATION MESSAGES (on the light card) --------------------- */
.rfvInvalid {
    background: rgba(220, 38, 38, 0.07);
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-left: 3px solid #dc2626;
    border-radius: 8px;
    color: #c52020;
    display: none;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 10px 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* same box, success state (e.g. password reset done) */
.rfvInvalid.is-success {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.22);
    border-left-color: #16a34a;
    color: #15803d;
}

.rfvCompanyPin {
    color: #c52020;
    margin-top: 5px;
    display: none;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.lblError {
    color: #c52020;
    display: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.loaderSpin { display: none; }

/* -- FIELD LABELS ------------------------------------------------ */
.field-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    color: #888899;
    text-transform: uppercase;
    letter-spacing: 0.70px;
    margin-bottom: 7px;
}

/* -- GLASS FORM INPUTS (light, inside white card) ---------------- */
.new-form-group {
    margin-bottom: 16px;
    position: relative;
}

.new-form-input {
    width: 100%;
    height: 48px;
    /* Semi-transparent white � lets tiny warm tint through from backdrop */
    border: 1.5px solid rgba(211, 47, 47, 0.18);
    border-radius: 10px;
    padding: 0 18px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.72);
    outline: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: border-color 0.22s, -webkit-box-shadow 0.22s, background 0.22s;
    transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}

.new-form-input::placeholder {
    color: rgba(0, 0, 0, 0.30);
    font-size: 13px;
}

.new-form-input:focus {
    border-color: #D32F2F;
    -webkit-box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.14);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.14);
    background: rgba(255, 255, 255, 0.92);
}

/* -- PASSWORD EYE TOGGLE ----------------------------------------- */
.pwd-input-wrap {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.pwd-input-wrap .new-form-input {
    padding-right: 52px;
}

.pwd-eye-btn {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.30);
    font-size: 14px;
    padding: 0;
    line-height: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
    top: 0;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.pwd-eye-btn:hover {
    color: #D32F2F;
}

/* -- REMEMBER ME + FORGOT PASSWORD ------------------------------- */
.login-meta-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 8px 0 24px;
}

.remember-me-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #7a7a8a;
    cursor: pointer;
    font-weight: 400;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-bottom: 0;
}

.remember-checkbox {
    width: 15px;
    height: 15px;
    accent-color: #D32F2F;
    cursor: pointer;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.forgot-pwd-link {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #D32F2F;
    text-decoration: none;
    font-weight: 600;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.forgot-pwd-link:hover {
    color: #BA2929;
    text-decoration: underline;
}

/* -- LOGIN BUTTON (orange gradient � pops on white card) ---------- */
.btn-login-main {
    width: 100%;
    height: 50px;
    background: -webkit-linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.10) 100%), #D32F2F;
    background:         linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.10) 100%), #D32F2F;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.25s;
    transition: all 0.25s;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    -webkit-box-shadow: 0 4px 20px rgba(211, 47, 47, 0.40);
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.40);
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
}

.btn-login-main:hover {
    background: -webkit-linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.10) 50%, rgba(0, 0, 0, 0.20) 100%), #D32F2F;
    background:         linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.10) 50%, rgba(0, 0, 0, 0.20) 100%), #D32F2F;
    -webkit-box-shadow: 0 6px 28px rgba(211, 47, 47, 0.52);
    box-shadow: 0 6px 28px rgba(211, 47, 47, 0.52);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
}

.btn-login-main:active {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-box-shadow: 0 2px 12px rgba(211, 47, 47, 0.30);
    box-shadow: 0 2px 12px rgba(211, 47, 47, 0.30);
}

/* -- SIGNUP BUTTON ----------------------------------------------- */
.btn-signup-link {
    width: 100%;
    height: 48px;
    background: transparent;
    color: #D32F2F;
    border: 1.5px solid rgba(211, 47, 47, 0.40);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.btn-signup-link:hover {
    background: rgba(211, 47, 47, 0.06);
    border-color: #D32F2F;
    color: #BA2929;
}

/* -- SIGNUP DIVIDER ---------------------------------------------- */
.signup-divider {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 4px 0 12px;
}

.signup-divider::before,
.signup-divider::after {
    content: '';
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border-bottom: 1px solid rgba(211, 47, 47, 0.16);
}

.signup-divider span {
    padding: 0 12px;
    color: rgba(0, 0, 0, 0.28);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* -- REGISTER LINK AREA ------------------------------------------ */
.pnlSignup {
    margin-bottom: 10px;
    text-align: center;
}

.pnlSignup a,
#lnkSIgnupPopup {
    color: #D32F2F;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.pnlSignup a:hover,
#lnkSIgnupPopup:hover {
    color: #BA2929;
    text-decoration: underline;
}

.lnkSIgnupPopup { cursor: pointer; }

/* Generic anchor */
a {
    color: #D32F2F;
    font-size: 12px;
}

a:focus,
a:hover {
    color: #BA2929;
}

.no-border { border-width: 0; }

/* -- STRIKE DIVIDER ---------------------------------------------- */
.strike {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    margin: 12px 0 16px;
}

.strike > span {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: rgba(0, 0, 0, 0.28);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    padding: 0 14px;
    white-space: nowrap;
}

.strike > span:before { right: 100%; }
.strike > span:after  { left:  100%; }

.strike > span:after,
.strike > span:before {
    content: "";
    position: absolute;
    width: 9rem;
    height: 1px;
    background: rgba(211, 47, 47, 0.18);
}

/* --------------------------------------------------------------
   MODAL STYLES
-------------------------------------------------------------- */
:root {
    --modal-duration: 0.26s;
    --modal-color: #111827;
}

.modal {
    display: none;
    background-color: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-content {
    margin: 5.5rem auto;
    width: 78%;
    height: 100%;
    -webkit-box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), 0 40px 80px rgba(0, 0, 0, 0.14);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), 0 40px 80px rgba(0, 0, 0, 0.14);
    animation-name: modalopen;
    animation-duration: var(--modal-duration);
    border-radius: 16px;
    overflow: hidden;
}

@keyframes modalopen {
    from { opacity: 0; -webkit-transform: translateY(-10px) scale(0.98); transform: translateY(-10px) scale(0.98); }
    to   { opacity: 1; -webkit-transform: translateY(0) scale(1);        transform: translateY(0) scale(1); }
}

.modal-header h2,
.modal-footer h3 { margin: 0; }

.modal-header {
    background: -webkit-linear-gradient(135deg, rgba(211, 47, 47, 0.75) 0%, #D32F2F 100%);
    background:         linear-gradient(135deg, rgba(211, 47, 47, 0.75) 0%, #D32F2F 100%);
    padding: 14px 18px;
    color: #fff;
    position: relative;
}

.modal-header .close {
    position: absolute;
    top: 11px;
    right: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.50);
    font-size: 15px;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    margin: 0 !important;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    -webkit-transition: background 0.18s;
    transition: background 0.18s;
}

.modal-header .close:hover { background: rgba(255, 255, 255, 0.28); }

.modal-header .close span {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    top: 0;
    line-height: 1;
}

.modal-body {
    padding: 14px 24px;
    background: #fff;
    color: #374151;
}

.modal-footer {
    background: var(--modal-color);
    padding: 12px 16px;
    color: #fff;
    text-align: center;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.modalHeading {
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* -- MODAL FORM CONTROLS ----------------------------------------- */
.form-group {
    margin-bottom: 10px;
    position: relative;
}

.inputCompanyPin { width: 100%; }

.form-control {
    height: 40px;
    padding-left: 60px;
    border-radius: 6px;
    width: 100%;
    color: #374151;
}

.form-control:focus {
    border: none;
    -webkit-box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.18) !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.18) !important;
    border-bottom: 2px solid #D32F2F !important;
}

.form-group label {
    display: inline-block;
    position: absolute;
    width: 50px;
    height: 40px;
    background-color: #374151;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    text-align: center;
    padding: 13px 10px 10px;
    color: #fff;
    margin-bottom: 0;
}

/* -- MODAL BUTTONS ----------------------------------------------- */
.btn { border-radius: 6px; }

.btn-primary {
    background-color: #fff !important;
    font-size: 11px !important;
    border: 1px solid #D32F2F !important;
    color: #D32F2F !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10) !important;
    outline-style: none !important;
    margin: 2px !important;
    width: auto !important;
    -webkit-transition: all 0.18s !important;
    transition: all 0.18s !important;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff !important;
    background-color: #D32F2F !important;
    font-size: 11px !important;
    border: 1px solid #D32F2F !important;
}

.btn-primary.active.focus, .btn-primary.active:focus, .btn-primary.active:hover,
.btn-primary:active.focus, .btn-primary:active:focus, .btn-primary:active:hover,
.open > .dropdown-toggle.btn-primary.focus,
.open > .dropdown-toggle.btn-primary:focus,
.open > .dropdown-toggle.btn-primary:hover {
    color: #fff !important;
    background-color: #D32F2F !important;
    border: 1px solid #D32F2F !important;
}

.btn-primary.disabled, .btn-primary[disabled] {
    color: #fff !important;
    background-color: #D32F2F !important;
    border: 1px solid #D32F2F !important;
    opacity: .5 !important;
}

.btnLogin  { width: 80px; float: right; }
.btnSignUp { width: 200px !important; }

.passwordStrength { margin-top: 5px; }

/* -- SIGNUP/FIELDSET LAYOUT -------------------------------------- */
.fieldborder {
    border: 1.5px solid #e5e7eb;
    padding: 1rem;
    border-radius: 10px;
}

.row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.pnlInsingleRow {
    clear: left !important;
    padding: 4px 0 0 0 !important;
    width: 900px !important;
    float: left !important;
}

.pnlTwoInRow   { padding: 4px 0 0 0 !important; float: left !important; }

.pnlLableColumn, span.pnlLableColumn {
    float: left;
    margin: 6px 2px 0 0;
    width: 106px;
    font-weight: normal;
}

.MediumTextbox  { width: 192px !important; }
.SmallTextbox   { width:  95px !important; }
.inputbox       { width: auto; height: auto; }
.labelfont      { font-size: larger; color: #111827; }
.dropdownlength { width: 220px !important; }

/* -- TABLE STYLES ------------------------------------------------ */
.table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

table td, table th {
    border: 1px solid #e5e7eb;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    color: #374151;
}

.thead {
    font-weight: 600;
    background-color: #f9fafb;
}

table input[type="text"],
table input[type="date"],
table select {
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 5px;
    font-size: 14px;
    color: #374151;
}

table input[type="checkbox"] {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

/* -- MISC -------------------------------------------------------- */
#imgMainLogo { height: 80px; }

.AboutEfro  { padding: 15px; font-size: 13px; }

.divcenter  { margin: auto; width: 50%; padding: 10px; }

.pnlSignup  { margin-bottom: 10px; }