:root {
    --main-color: #4baaf0;
    --main-color-darker: #2494e7;
    --main-color-darker-strong: #147fcb;
    --ink: #102546;
    --muted: #8491a4;
    --field-border: #dbe1e9;
}

* { box-sizing: border-box; }

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    color: var(--ink);
    font-family: "Source Sans Pro", Arial, sans-serif;
    font-size: 16px;
    direction: ltr;
    overflow-x: hidden;
}

#background {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: #163251;
}

#background::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(90deg, rgba(10, 38, 72, .25), rgba(9, 27, 53, .14));
}

#background-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.container {
    display: flex;
    align-items: center;
    position: relative;
    width: min(930px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 0 0 66.8%;
    padding: 24px 0;
    transform: translateX(-50%);
}

.corner-logo {
    position: fixed !important;
    top: 100px !important;
    left: 50px !important;
    z-index: 10;
    display: block;
    margin: 0 !important;
    transform: none !important;
}

.corner-logo img {
    display: block;
    width: 310px;
    height: auto;
}

.login-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    width: 100%;
    min-height: 680px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 11px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 34px rgba(5, 23, 48, .26);
}

.intelligence-panel {
    position: relative;
    overflow: hidden;
    padding: 76px 36px 42px;
    border: 12px solid #f5f9ff;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background:
        radial-gradient(circle at 78% 10%, rgba(110, 186, 255, .26) 0 11px, transparent 13px),
        linear-gradient(135deg, rgba(238, 247, 255, .97), rgba(250, 252, 255, .93));
    box-shadow: inset -1px 0 0 rgba(202, 221, 241, .45);
}

.intelligence-panel::before,
.intelligence-panel::after {
    position: absolute;
    width: 430px;
    height: 430px;
    content: "";
    border: 1px solid rgba(83, 160, 237, .18);
    border-radius: 50%;
    pointer-events: none;
}

.intelligence-panel::before { top: -175px; left: -250px; }
.intelligence-panel::after { right: -305px; bottom: -200px; }

.ai-mark {
    position: relative;
    width: 108px;
    height: 103px;
    margin: 0 0 17px 22px;
    color: #6f96e9;
}

.ai-mark span {
    position: absolute;
    display: block;
    background: currentColor;
    transform: rotate(45deg);
}

.ai-mark span:nth-child(1) {
    top: 31px;
    left: 26px;
    width: 50px;
    height: 50px;
    border-radius: 3px;
}

.ai-mark span:nth-child(2) {
    top: 4px;
    left: 60px;
    width: 24px;
    height: 24px;
    border-radius: 2px;
}

.ai-mark span:nth-child(3) {
    top: 0;
    left: 22px;
    width: 18px;
    height: 18px;
    border-radius: 2px;
}

.ai-powered {
    position: relative;
    margin: 0;
    color: #357de6;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.intelligence-panel h1 {
    position: relative;
    margin: 5px 0 18px;
    color: #0e2649;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.25;
}

.title-rule {
    position: relative;
    display: block;
    width: 40px;
    height: 2px;
    margin-bottom: 26px;
    background: #3e9fe9;
}

.intelligence-copy {
    position: relative;
    max-width: 220px;
    margin: 0;
    color: #8491a4;
    font-size: 16px;
    line-height: 1.55;
}

.benefit-list {
    position: relative;
    display: grid;
    gap: 22px;
    margin: 53px 0 0;
    padding: 0;
    list-style: none;
}

.benefit-list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: #4489eb;
}

.benefit-icon {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit-list strong,
.benefit-list small {
    display: block;
}

.benefit-list strong {
    color: #31445e;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
}

.benefit-list small {
    margin-top: 2px;
    color: #8491a4;
    font-size: 12px;
    line-height: 1.25;
}

.login-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 67px 53px 52px 62px;
    background: #fff;
}

.login-heading { margin: 0 0 48px; }

.login-heading p,
.login-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 1.14;
}

.login-heading p {
    color: #16273f;
    font-size: 29px;
}

.login-heading h2 {
    margin-top: 4px;
    color: #4398e7;
    font-size: 34px;
}

#loginForm { width: 100%; }

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 68px;
    margin: 0 0 30px;
    border: 1px solid var(--field-border);
    border-radius: 4px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.input-group:focus-within {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(75, 170, 240, .14);
}

.field-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 23px;
    color: #8791a0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-group input {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 16px 0 3px;
    border: 0;
    outline: 0;
    color: #233852;
    background: transparent;
    font: inherit;
    font-size: 18px;
}

.input-group input::placeholder { color: #9ba1ac; opacity: 1; }

.password-group input { padding-right: 46px; }

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 54px;
    height: 100%;
    border: 0;
    color: #838d9d;
    background: transparent;
    cursor: pointer;
}

.password-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle:hover,
.password-toggle:focus-visible { color: var(--main-color-darker); outline: 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#remember-login-panel,
#remember-me-panel,
#login-btn-panel { width: 100%; }

#remember-login-panel { height: auto; }

#login-btn-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-button {
    width: 100%;
    height: 57px;
    margin: 1px 0 20px;
    border: 0;
    border-radius: 3px;
    color: #fff;
    background: #4baaf0;
    box-shadow: 0 3px 5px rgba(51, 154, 228, .22);
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.login-button:hover,
.login-button:focus-visible {
    outline: 0;
    background: #2699e9;
    box-shadow: 0 5px 9px rgba(51, 154, 228, .3);
    transform: translateY(-1px);
}

.forgot-password-link {
    color: #3e9ee7;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
}

.forgot-password-link:hover,
.forgot-password-link:focus-visible { color: #147fcb; text-decoration: underline; outline: 0; }

.app-downloads { margin-top: auto; padding-top: 59px; }

.app-downloads > p {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 23px;
    color: #9ca4b0;
    font-size: 17px;
    text-align: center;
    white-space: nowrap;
}

.app-downloads > p::before,
.app-downloads > p::after {
    flex: 1;
    height: 1px;
    content: "";
    background: #e5e7eb;
}

.mobile-app-buttons { width: 100%; }

.mobile-app-buttons ul,
.mobile-app-buttons ul.shorted {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-app-buttons li { list-style: none; }

.mobile-app-buttons ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 1px solid #249be9;
    border-radius: 4px;
    background: #4baaf0;
    transition: background .2s ease, transform .2s ease;
}

.mobile-app-buttons ul li a:hover,
.mobile-app-buttons ul li a:focus-visible {
    outline: 0;
    background: #2699e9;
    transform: translateY(-2px);
}

.mobile-app-buttons ul li a svg {
    width: 29px;
    height: 38px;
    fill: #fff;
}

.tooltip { position: relative; }

.tooltiptext {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    z-index: 4;
    width: max-content;
    max-width: 220px;
    padding: 6px 9px;
    border-radius: 3px;
    color: #fff;
    background: #233852;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .2s ease, transform .2s ease;
}

.tooltip:hover .tooltiptext,
.tooltip:focus-visible .tooltiptext { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1200px) {
    .container { margin: 0 auto; transform: none; }
}

@media (max-width: 1000px) {
    .container { width: min(900px, calc(100% - 38px)); padding: 32px 0; }
    .corner-logo { left: 24px !important; top: 24px !important; }
    .corner-logo img { width: 170px; }
    .login-shell { grid-template-columns: 286px minmax(0, 1fr); min-height: 635px; }
    .intelligence-panel { padding: 52px 29px 36px; }
    .login-box { padding: 54px 42px; }
    .login-heading { margin-bottom: 38px; }
    .login-heading p { font-size: 26px; }
    .login-heading h2 { font-size: 30px; }
    .mobile-app-buttons ul li a { width: 66px; height: 66px; }
}

@media (max-width: 700px) {
    body { background: #edf4fb; }
    #background::after { background: rgba(12, 42, 75, .48); }
    .container { width: min(500px, calc(100% - 32px)); padding: 23px 0 32px; }
    .corner-logo { top: 18px !important; left: 18px !important; width: max-content; }
    .corner-logo img { width: 170px; }
    .login-shell { display: block; min-height: 0; border-radius: 10px; }
    .intelligence-panel { display: none; }
    .login-box { min-height: 0; padding: 42px 30px 34px; }
    .login-heading { margin-bottom: 32px; }
    .login-heading p { font-size: 26px; }
    .login-heading h2 { font-size: 29px; }
    .app-downloads { margin-top: 0; padding-top: 44px; }
}

@media (max-width: 400px) {
    .container { width: calc(100% - 22px); padding-top: 16px; }
    .login-box { padding: 32px 20px 27px; }
    .login-heading p { font-size: 23px; }
    .login-heading h2 { font-size: 26px; }
    .input-group { height: 60px; margin-bottom: 22px; }
    .login-button { height: 53px; }
    .app-downloads > p { gap: 8px; font-size: 15px; }
    .mobile-app-buttons ul,
    .mobile-app-buttons ul.shorted { gap: 9px; }
    .mobile-app-buttons ul li a { width: 55px; height: 55px; }
    .mobile-app-buttons ul li a svg { width: 23px; height: 30px; }
}
