
@import "../../root.css";
@import "../../general.css";

:root {
    --font-size-h1: 46px;
    --font-size-footer: 14px;
    --font-size-lead: 16px;
    --font-size-details: 18px;
    --font-size-welcome: 26px;
    --font-size-caption: 12px;
}


* {
    margin: 0px;
    padding: 0px;
    outline: none;
    user-select: none;
    -moz-user-select: none;
    box-sizing: border-box;
}
*:focus,
*::-moz-focus-inner {
    outline: none !important;
    border: none;
}
input {
    user-select: text !important;
    -moz-user-select: text !important;
}
.bold {
    font-weight: bold;
}
html,
body {
    height: 100%;
}
body {
    margin: 0px;
    padding: 0px;
    background-color: var(--color-white);
}

.login_page {
    display: flex;
    min-height: 100vh;
}

/* language toggle */
.lang_toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20;
    height: 36px;
    padding: 0 18px;
    border-radius: 18px;
    background-color: rgba(255,255,255,.92);
    color: var(--primary-color);
    border: 1px solid var(--primary-color-4);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: auto;
}
.lang_toggle:hover {
    background-color: var(--color-white);
}
[dir="rtl"] .lang_toggle {
    right: auto;
    left: 20px;
}

/* left brand / marketing panel */
.brand_panel {
    flex: 1 1 65%;
    background-color: var(--primary-color);
    color: var(--color-white);
    padding: clamp(20px, 4vh, 56px) 64px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}
.brand_panel .brand_decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.brand_panel .decor_icon {
    position: absolute;
    color: var(--color-white);
    opacity: .08;
}
.brand_panel .decor_paper {
    font-size: 260px;
    top: -50px;
    right: -70px;
    transform: rotate(-12deg);
}
.brand_panel .decor_calc {
    font-size: 180px;
    bottom: -20px;
    right: 110px;
    transform: rotate(10deg);
}
.brand_panel .brand_content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.brand_panel .brand_logo {
    display: flex;
    align-items: center;
    margin-bottom: 64px;
}
.brand_panel .brand_logo .logo_box {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 8px 14px;
}
.brand_panel .brand_logo img {
    height: 26px;
    width: auto;
    display: block;
}
.brand_panel .eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: clamp(8px, 1.5vh, 16px);
    position: relative;
    padding-left: 28px;
}
.brand_panel .eyebrow:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 2px;
    background-color: currentColor;
}
[dir="rtl"] .brand_panel .eyebrow {
    padding-left: 0;
    padding-right: 28px;
}
[dir="rtl"] .brand_panel .eyebrow:before {
    left: auto;
    right: 0;
}
[dir="rtl"] .brand_panel .decor_paper {
    right: auto;
    left: -70px;
    transform: rotate(12deg);
}
[dir="rtl"] .brand_panel .decor_calc {
    right: auto;
    left: 110px;
    transform: rotate(-10deg);
}
.brand_panel h1 {
    font-size: var(--font-size-h1);
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: clamp(10px, 2vh, 30px);
    max-width: 460px;
}
.brand_panel .lead {
    font-size: var(--font-size-lead);
    line-height: 1.6;
    opacity: .9;
    max-width: 420px;
    margin-bottom: clamp(14px, 3vh, 50px);
}
.brand_panel .feature_list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    column-gap: 40px;
    row-gap: 12px;
    margin-bottom: clamp(12px, 2vh, 32px);
}
.brand_panel .feature_list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.brand_panel .feature_list .mdi {
    background-color: rgba(255,255,255,.18);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.brand_panel .capability_row {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.brand_panel .capability_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: clamp(8px, 1.5vh, 20px) 10px;
    border-left: 1px solid var(--divider-color, rgba(0,0,0,.08));
}
.brand_panel .capability_item:first-child {
    border-left: none;
}
[dir="rtl"] .brand_panel .capability_item {
    border-left: none;
    border-right: 1px solid var(--divider-color, rgba(0,0,0,.08));
}
[dir="rtl"] .brand_panel .capability_item:first-child {
    border-right: none;
}
.brand_panel .capability_icon {
    width: clamp(48px, 7vh, 90px);
    height: clamp(48px, 7vh, 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-bottom: 2px;
}
.brand_panel .capability_icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.brand_panel .capability_label {
    font-size: 15px;
    font-weight: 700;
    color: var(--tab-selected-color);
}
.brand_panel .capability_desc {
    font-size: 12px;
    line-height: 1.4;
    color: var(--label-color);
}

.brand_panel .capability_tagline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: clamp(10px, 1.5vh, 24px);
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    text-align: center;
}
.brand_panel .capability_tagline .tagline_line {
    flex: 1 1 auto;
    height: 1px;
    background-color: rgba(255,255,255,.25);
}

.chart_card {
    background-color: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    padding: clamp(10px, 1.5vh, 20px) 24px;
    margin-top: clamp(10px, 1.5vh, 24px);
}
.chart_card .chart_head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.chart_card .chart_label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .75;
}
.chart_card .chart_value {
    font-size: 26px;
    font-weight: 700;
    margin-top: 6px;
}
.chart_card .chart_delta {
    background-color: rgba(255,255,255,.16);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.chart_card svg {
    width: 100%;
    height: clamp(36px, 6vh, 80px);
    display: block;
    margin-top: clamp(6px, 1vh, 14px);
}
.chart_card .chart_axis {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: .7;
    margin-top: 8px;
}

/* right form panel */
.form_panel {
    flex: 1 1 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.login_window {
    width: 100%;
    max-width: 390px;
    text-align: left;
    position: relative;
}
.login_window .brand_logo {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}
.login_window .brand_logo img {
    height: 100px;
    width: auto;
    display: block;
}
.welcome {
    font-size: var(--font-size-welcome);
    font-weight: 700;
    color: var(--tab-selected-color);
    margin-bottom: 6px;
}
.enter_details {
    color: var(--label-color);
    font-size: var(--font-size-details);
    margin-bottom: 24px;
}

.field {
    margin-bottom: 20px;
}
.field_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.forget_pass,
.back_to_login {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    text-decoration: none;
}
.forget_pass:hover {
    color: var(--primary-color-3);
}

.security_note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: var(--primary-color-6);
    border: 1px solid var(--primary-color-5);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 24px;
}
.security_note .mdi {
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}
.security_note strong {
    display: block;
    font-size: 13px;
    color: var(--tab-selected-color);
    margin-bottom: 2px;
}
.security_note span {
    font-size: 12px;
    color: var(--label-color);
    line-height: 1.5;
}

.brand_footer {
    margin-top: 24px;
    text-align: center;
    font-size: var(--font-size-footer);
    color: var(--label-color);
}
.brand_footer a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}
.brand_footer a:hover {
    color: var(--primary-color-3);
    text-decoration: underline;
}

.notification {
    display: none;
    margin-bottom: 20px;
}
.notification_type {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 10px;
    padding: 12px 16px;
}
.notification_type .notification-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}
.notification_type .notification-message {
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.notification-error {
    background-color: #fbeaea;
}
.notification-error .notification-icon {
    background-color: var(--error-color, #db5353);
}
.notification-error .notification-message {
    color: var(--error-color, #db5353);
}

.notification-success {
    background-color: #eaf6e9;
}
.notification-success .notification-icon {
    background-color: var(--success-color);
}
.notification-success .notification-message {
    color: var(--success-color);
}

.notification-info {
    background-color: var(--primary-color-5);
}
.notification-info .notification-icon {
    background-color: var(--primary-color);
}
.notification-info .notification-message {
    color: var(--primary-color);
}

.g-recaptcha {
    margin: 0 0 20px;
    height: 77px;
    width: 302px;
}

.text_center {
    text-align: center !important;
}
.text_justify {
    text-align: left !important;
    font-size: 14px !important;
}
[dir="rtl"] .text_justify {
    text-align: right !important;
}
.spacer {
    height: 20px;
}
#forgetPass {
    display: none;
}
.loading_bg {
    position: absolute;
    top: calc(50% - 42px);
    left: calc(50% - 42px);
    width: 84px;
    height: 84px;
    display: none;
}

/* rtl: mirror the input icon / eye-toggle positions */
[dir="rtl"] .input_icon_div i {
    left: initial;
    right: 14px;
}
[dir="rtl"] .input_icon_div .input_field {
    padding-left: 16px;
    padding-right: 44px;
}
[dir="rtl"] .input_icon_div .mdi-eye,
[dir="rtl"] .input_icon_div .mdi-eye-off {
    right: initial;
    left: 14px;
}
[dir="rtl"] .login_window {
    text-align: right;
}

/* dir_aware.js flips .input_icon_div[dir="ltr"] back to an ltr layout even on an rtl page */
.input_icon_div[dir="ltr"] i {
    left: 14px;
    right: initial;
}
.input_icon_div[dir="ltr"] .input_field {
    padding-left: 44px;
    padding-right: 16px;
}
.input_icon_div[dir="ltr"] .mdi-eye,
.input_icon_div[dir="ltr"] .mdi-eye-off {
    left: initial;
    right: 14px;
}

/* desktop: pin the footer to the bottom corner of the viewport, on the same side as the login form */
@media only screen and (min-width: 901px) {
    /* clamp to the viewport so the page itself never scrolls on desktop;
       if the brand panel's marketing content is a touch taller than the
       viewport (browser chrome height differs, e.g. Firefox vs Chrome),
       only that decorative panel scrolls internally, not the whole page */
    .login_page {
        height: 100vh;
        overflow: hidden;
    }
    .form_panel {
        height: 100%;
        overflow-y: auto;
    }
    .brand_footer {
        position: fixed;
        left: 40px;
        right: auto;
        bottom: 24px;
        margin-top: 0;
        z-index: 5;
    }
    [dir="rtl"] .brand_footer {
        left: auto;
        right: 40px;
    }
}

/* mobile: show the login form only, hide the marketing panel */
@media only screen and (max-width: 900px) {
    .brand_panel {
        display: none;
    }
    .form_panel {
        flex: 1 1 100%;
        width: 100%;
        padding: 32px 24px;
    }
    .login_window .brand_logo img {
        height: 70px;
    }
}
@media only screen and (max-width: 516px) {
    .form_panel {
        padding: 24px 16px;
    }
    .lang_toggle {
        top: 12px;
        right: 12px;
    }
    [dir="rtl"] .lang_toggle {
        left: 12px;
    }
}
