/* =====================================================
   auth.css — styles for login, register, forgot-password
   Extracted from style.css to reduce unused CSS per page.
   Do NOT import on the landing page — use style.css there.
   ===================================================== */

/* ── Base resets ── */
body,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}
* {
    line-height: 1.4;
}
.login-form .icon,
.submit-button {
    cursor: pointer;
}

/* ── CSS Custom Properties ── */
* {
    --acsl-FF: "Poppins", sans-serif;
    --acsl-brand: #662d91;
    --acsl-body: #e8f1ff;
    --acsl-box: #127cab;
    --acsl-link: #014e86;
    --acsl-complied: #74b749;
    --acsl-light-green: #dbffde;
    --acsl-total: #086a93;
    --acsl-notcomplied: #cf4a4a;
    --acsl-pending: #ffb400;
    --acsl-yellow: #fdc02d;
    --acsl-light-yellow: #fff7db;
    --acsl-darkgray1: #545454;
    --acsl-lightgray: #ebebeb;
    --acsl-lightblack1: #090909;
    --acsl-lightblack2: #292929;
    --acsl-light-pink: #ffdbfa;
    --acsl-prussianblue: #0f3849;
    --acsl-tablehead: #e0ebef;
    --acsl-lightblue: #dbedff;
    --acsl-newspaperheading: #413829;
    --acsl-newspapertext: #54401e;
    --acsl-lightbg: #f4f4f5;
    --acsl-lightborder1: #dbe8f1;
    --acsl-lightborder2: #e7eef3;
    --acsl-inputborder: #cddbe6;
    --acsl-white: #fff;
    --acsl-black: #090909;
    --acsl-transparent: transparent;
    --sidebar-color: #f5f9ff;
    --acsl-regularFW: 400;
    --acsl-mediumFW: 500;
    --acsl-semiboldFW: 600;
    --acsl-boldFW: 700;
    --trans-02: all 0.2s ease;
    --trans-04: all 0.5s ease;
    font-family: var(--acsl-FF);
    font-weight: var(--acsl-RegularFW);
    text-decoration: none;
}

/* ── Base HTML/body ── */
main {
    margin-bottom: -10px;
}
html {
    overflow-x: hidden;
}
body {
    font-size: 1rem;
    background-color: var(--acsl-white);
    height: 100vh;
}
a,
h1,
h2,
h3,
h4,
h5,
h6,
li,
p,
span,
ul {
    font-family: var(--acsl-FF);
    font-weight: var(--acsl-RegularFW);
}
p {
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.7;
}
img {
    max-inline-size: 100%;
    display: block;
    margin-bottom: 10px;
}

/* ── Spacing utilities used on auth pages ── */
.pt-40 {
    padding-top: 40px;
}
.pb-40 {
    padding-bottom: 40px;
}
.d-none {
    display: none !important;
}

/* ── Layout ── */
.acsl-container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.acsl-row {
    display: flex;
    gap: 1em;
}
.align-middle {
    display: flex;
    align-items: center;
}
.acsl-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.acsl-col {
    border: 0 solid rgba(0, 0, 0, 0.8);
    flex: 0 0 calc(25% - 15px);
    display: flex;
}

/* ── Auth page background & box ── */
.fullheight {
    height: 100vh;
    display: flex;
    align-items: center;
}
.bg-blue-gradient {
    background: #fff;
    background: linear-gradient(120deg, #fff 0, #e2ebff 100%);
}
.acsl-login-title {
    font-size: 18px;
    line-height: 1.3em;
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 20px;
}
.login-box {
    box-shadow: 0 0 15px 0 #e2ebff;
    border-radius: 10px;
    background: url(images/login-bg-svg.webp) bottom/cover no-repeat;
    max-width: 820px;
    padding: 30px;
    min-height: 340px;
    display: flex;
    align-items: center;
}

/* ── Logo ── */
.main-content img,
a.logo-link-width {
    outline: 0;
}
.logo-link-width img {
    width: 240px !important;
    display: block;
}

/* ── Login form typography ── */
.login-form a,
.login-form p,
.register .select2 span {
    font-size: 12px;
}
.login-form .register i {
    margin-right: 5px;
}

/* ── Form structure ── */
.forgot-pw,
.login-form .register {
    width: fit-content;
    font-weight: 500;
    text-decoration: none;
}
.forgot-pw,
.register,
.submit-button {
    display: block;
}
.login-form .form-group {
    position: relative;
    margin-bottom: 15px;
}
.login-form input,
.login-form select {
    width: calc(100% - 50px);
    padding: 10px 40px 10px 10px;
    font-size: 13px;
    border: 1px solid #c6c6c6;
    border-radius: 5px;
    box-shadow: 2px 2px 6px 0 #c6c6c675;
    background-color: var(--acsl-white) !important;
    outline: 0;
}
.login-form a:focus-visible,
.login-form button:focus-visible {
    text-decoration: underline;
    outline: 0;
    transition: outline 0.3s ease-in-out;
}
.login-form select {
    width: calc(100%);
}
.login-form input::placeholder,
.login-form select::placeholder {
    color: #c6c6c6;
    font-size: 12px;
}
.login-form .icon {
    position: absolute;
    top: 12px;
    right: 10px;
    font-size: 14px;
    color: #54687d;
}
.login-form .icon:hover {
    color: #333;
}

/* ── Forgot password link ── */
.forgot-pw {
    margin-top: -5px !important;
    color: #20a2dc !important;
    font-size: 13px !important;
    padding: 3px;
    margin-bottom: 10px;
}

/* ── Submit button ── */
.submit-button {
    margin-left: auto;
    padding: 10px 15px;
    background-color: #365c96;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
}
.submit-button:hover {
    background-color: var(--acsl-brand) !important;
    transition: 0.3s;
}

/* ── Login form links & register link ── */
.login-form a {
    color: #20a2dc;
}
.login-form .register {
    margin-bottom: -38px;
    display: block;
    background-color: #dedede;
    padding: 11px 15px;
    border-radius: 8px;
    color: #000;
    transition: 0.2s ease-in-out;
}
.login-form .register:hover {
    background-color: #000;
    color: #fff;
}

/* ── Policy links ── */
.policy-links {
    margin-top: 10px;
    margin-bottom: 20px;
}

/* ── Register page specific ── */
.register .row {
    display: flex;
    width: 100%;
    column-gap: 10px;
}
.register .col-50 {
    margin: 0 0 15px;
    flex: 1;
}
.register .policy-links {
    margin-top: 0;
    margin-bottom: 20px;
}
.register span.select2-selection {
    padding: 5px 0 0;
    min-height: 40px;
    border: 1px solid #c6c6c6;
    box-shadow: 2px 2px 6px 0 #c6c6c675;
}
.select2-container .select2-selection--single {
    height: 40px !important;
    line-height: 40px !important;
}
.select2-container .select2-selection__arrow {
    height: 38px !important;
    top: 1px;
}

/* ── Alert / session status ── */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* ── Mobile responsive ── */
@media (max-width: 600px) {
    p {
        font-size: 12px !important;
    }
    .d-none-mobile {
        display: none;
    }
    .login-box,
    .register .row {
        display: block;
    }
    .login-box {
        background: unset;
        margin: 0 10px;
        background-color: #fff;
        max-height: 80vh;
        overflow-y: auto;
        padding: 20px 0 20px 20px;
    }
    #registerform,
    #subForm {
        width: calc(100% - 20px);
    }
    .login-form .register {
        margin-top: 10px;
        margin-bottom: 10px;
        width: calc(100% - 30px);
        text-align: center;
    }
    .submit-button {
        width: 100%;
    }
    .acsl-row-2 {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    .login-form .register {
        width: calc(100% - 30px);
        text-align: center;
        display: inline-block;
        margin-bottom: 10px;
    }
    .submit-button {
        width: 100%;
        display: inline-block;
    }
}

/* ── ACSL Web Component shadow-DOM styles ── */
acsl-input-fields::part(name_input),
acsl-input-fields::part(email_input) {
    line-height: 40px !important;
    padding: 0 12px 0 15px !important;
    font-size: 11px !important;
    font-family: Poppins, sans-serif !important;
    height: 40px;
}
acsl-password-field::part(password-input) {
    font-size: 12px !important;
    height: 40px;
}
acsl-password-field::part(password-toggle-icon) {
    margin-top: 5px !important;
}
acsl-password-field::part(password-toggle) {
    right: 5px !important;
}
acsl-input-fields::part(name_icon_wrapper),
acsl-input-fields::part(email_icon_wrapper),
acsl-input-fields::part(phone_icon_wrapper) {
    left: unset !important;
    right: 10px !important;
}
.button-container {
    display: flex;
    place-content: space-between;
}
acsl-button::part(button) {
    font-family: var(--font-family);
    font-size: 12px;
}
acsl-input-fields::part(name_error) {
    margin-left: 0px !important;
    font-size: 10px !important;
    color: red;
}
acsl-input-fields::part(phone_input) {
    font-family: var(--font-family);
}
acsl-icon::part(acsl-icon) svg {
    width: 20px !important;
    height: 20px !important;
}
acsl-input-fields::part(email_error),
acsl-input-fields::part(name_error) {
    display: none;
}
acsl-button::part(icon-icon-right),
acsl-hyperlink::part(hyper-right-icon) {
    --width: 18px;
    --height: 18px;
}
acsl-input-fields::part(name_wrapper),
acsl-input-fields::part(email_wrapper),
acsl-input-fields::part(phone_wrapper) {
    max-width: unset !important;
}
acsl-inputfields {
    --inputfields-font-size-input: 11px;
}
acsl-password-field::part(error-container) {
    display: none;
}

/* All hyperlinks — base style */
acsl-hyperlink:not([hyperlink-id="login-link"])::part(hyperlink) {
    text-decoration: none;
    margin-top: -5px;
    color: rgb(32, 162, 220);
    font-size: 13px;
    padding: 3px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
}

/* login-link — button appearance */
acsl-hyperlink[hyperlink-id="login-link"]::part(hyperlink) {
    display: inline-flex;
    align-items: center;
    background-color: #dedede;
    padding: 11px 15px;
    border-radius: 8px;
    color: #000;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    width: fit-content;
    transition: background-color 0.2s ease-in-out;
    margin-bottom: -38px;
}
acsl-hyperlink[hyperlink-id="login-link"]::part(hyperlink):hover {
    background-color: #c8c8c8;
}
acsl-password-field::part(toggle-button) {
    right: 5px;
    top: 20px;
}

/* ── Autofill override (prevents yellow background on autofill) ── */
acsl-input-fields::part(name_input):-webkit-autofill,
acsl-input-fields::part(name_input):-webkit-autofill:hover,
acsl-input-fields::part(name_input):-webkit-autofill:focus,
acsl-input-fields::part(name_input):-webkit-autofill:active,
acsl-input-fields::part(email_input):-webkit-autofill,
acsl-input-fields::part(email_input):-webkit-autofill:hover,
acsl-input-fields::part(email_input):-webkit-autofill:focus,
acsl-input-fields::part(email_input):-webkit-autofill:active,
acsl-input-fields::part(phone_input):-webkit-autofill,
acsl-input-fields::part(phone_input):-webkit-autofill:hover,
acsl-input-fields::part(phone_input):-webkit-autofill:focus,
acsl-input-fields::part(phone_input):-webkit-autofill:active,
acsl-password-field::part(input):-webkit-autofill,
acsl-password-field::part(input):-webkit-autofill:hover,
acsl-password-field::part(input):-webkit-autofill:focus,
acsl-password-field::part(input):-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    background-color: #ffffff !important;
    background-image: none !important;
    -webkit-text-fill-color: inherit !important;
    color: inherit !important;
    transition: background-color 99999s ease-in-out 0s !important;
    animation-name: none !important;
}
