/* ==========================================================================
   CEAT QBM Portal - sign-in pages theme
   Loaded after assets/website/css/main.css by MasterPageLogin.master, so it
   restyles Default.aspx, ForgotPassword.aspx and SetPassword.aspx. Uses the
   same brand tokens as theme.css.

   Layout: the form sits in a column on the left; the rest of the screen, full
   height, is a brand-blue panel holding one big logo (.login_brand).
   ========================================================================== */
:root {
    --brand: #203F99;
    --brand-600: #19337F;
    --ink: #1B2437;
    --ink-2: #48526A;
    --ink-3: #667085;
    --field-line: #D3DAE8;
    --danger: #C62828;
    --danger-50: #FDEEEE;
    --font: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --login-w: clamp(400px, 36vw, 560px); 
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: #fff;
    color: var(--ink);
    font-family: var(--font) !important;
    -webkit-font-smoothing: antialiased;
}

input,
button {
    font-family: inherit;
}

/* Form column (left) */
.main_body {
    position: relative;
    top: 0 !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: var(--login-w);
    min-height: 100vh;
    padding: 0 clamp(28px, 4vw, 56px) !important;
    overflow: visible;
    background: #fff !important;
    background-image: none !important;
}

.support_widget_container {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    overflow: visible;
}

.support_widget {
    float: none;
    width: 100%;
    max-width: 400px;
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.support_widget .container {
    width: auto;
    padding: 0;
    overflow: visible;
}

.support_widget .container > br {
    display: none;
}

.support_widget .container > div {
    margin-bottom: 14px;
}

.page_title_msg {
    padding: 0;
    color: var(--ink);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    text-align: left;
}

.login_sub {
    margin: -6px 0 28px !important;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.5;
}

.support_widget .description {
    color: var(--ink-3);
    font-size: 14px;
    text-align: left;
}

/* Brand panel (right): full height, one big logo.
   The logo image carries its own blue (#203F99) as background, so the panel is
   exactly that flat blue and the image blends in with no visible edge. */
.login_brand {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: var(--login-w);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #203F99;
}

.login_brand img {
    display: block;
    width: min(80%, 1000px); /* the source image is 1200px wide, so never scale it up */
    height: auto;
    /* the last pixel column of the source image is black; trim it off */
    -webkit-clip-path: inset(0 0.4% 0 0);
    clip-path: inset(0 0.4% 0 0);
}

/* Fields */
.support_widget input[type=text],
.support_widget input[type=password] {
    box-sizing: border-box;
    width: 100% !important;
    height: 48px;
    margin: 0 0 4px;
    padding: 0 14px;
    border: 1px solid var(--field-line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.support_widget input::placeholder {
    color: var(--ink-3);
    opacity: 1;
}

.support_widget input[type=text]:hover,
.support_widget input[type=password]:hover {
    border-color: #9FAAC4;
}

.support_widget input[type=text]:focus,
.support_widget input[type=password]:focus {
    border-color: var(--brand);
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(32, 63, 153, .18) !important;
}

.support_widget input[type=checkbox] {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 2px;
    accent-color: var(--brand);
    vertical-align: -3px;
    cursor: pointer;
}

.support_widget label {
    color: var(--ink-2);
    font-size: 14px;
    cursor: pointer;
}

/* Validation (pages set ForeColor="Red" inline) */
.support_widget span[style*="color:Red"] {
    color: var(--danger) !important;
    font-size: 12px;
    font-weight: 500;
}

.support_widget .error_text {
    display: block;
    padding: 10px 12px;
    border: 1px solid #F3C4C4;
    border-radius: 10px;
    background: var(--danger-50);
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
}

.support_widget .error_text:empty {
    display: none;
}

/* Primary button and secondary link */
.support_widget .menu_item {
    box-sizing: border-box;
    float: none;
    width: 100%;
    height: 48px;
    margin: 6px 0 0;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--brand);
    box-shadow: 0 2px 6px rgba(32, 63, 153, .35);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.support_widget .menu_item:hover {
    background: var(--brand-600);
    box-shadow: 0 6px 16px rgba(32, 63, 153, .38);
    color: #fff;
}

.support_widget .menu_item:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.support_widget a.borderless-button {
    display: block;
    padding: 10px 0 0;
    color: var(--brand) !important;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.support_widget a.borderless-button:hover {
    color: var(--brand-600) !important;
    text-decoration: underline !important;
}

/* Footer */
.footer {
    flex-shrink: 0;
    padding: 20px 0 24px;
    background: transparent;
    color: var(--ink-3);
    font-size: 12px;
    text-align: left;
}

/* Tablet and phone: the brand panel becomes a banner above the form */
@media (max-width: 860px) {
    #frm {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .login_brand {
        position: static;
        order: -1;
        flex-shrink: 0;
        height: 168px;
    }

    .login_brand img {
        width: min(62%, 340px);
    }

    .main_body {
        flex: 1 0 auto;
        width: 100%;
        min-height: 0;
        padding: 0 24px !important;
    }

    .support_widget_container {
        align-items: flex-start;
        justify-content: center;
        padding: 28px 0 16px;
    }

    .support_widget {
        max-width: 440px;
    }

    .page_title_msg {
        font-size: 24px;
    }
}
