/* Shared CRM authentication presentation. */

.fi-simple-layout {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 15%, rgb(8 119 124 / 0.13), transparent 26rem),
        linear-gradient(135deg, #102943 0%, #143a55 58%, #0a6b72 145%);
}

.fi-simple-main {
    border: 1px solid rgb(215 228 232 / 0.9);
    border-radius: 20px;
    background: rgb(255 255 255 / 0.98);
    box-shadow: 0 28px 80px rgb(3 19 34 / 0.32);
}

.fi-simple-header-heading {
    color: #102943;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.fi-simple-header-subheading {
    color: #5a6a78;
}

.fi-simple-main .fi-input-wrp {
    border-color: #c9dadd;
    background: #fbfdfd;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.fi-simple-main .fi-input-wrp:focus-within {
    border-color: #08777c;
    background: #fff;
    box-shadow: 0 0 0 3px rgb(8 119 124 / 0.13);
}

.fi-simple-main .fi-btn-color-primary {
    min-height: 3rem;
    border: 1px solid #08777c;
    background: linear-gradient(135deg, #0b8990, #08777c);
    box-shadow: 0 8px 20px rgb(8 119 124 / 0.18);
    font-weight: 750;
}

.fi-simple-main .fi-btn-color-primary:hover {
    background: linear-gradient(135deg, #08777c, #075f65);
}

.fi-simple-main a {
    color: #08777c;
    font-weight: 650;
    text-underline-offset: 3px;
}

.fi-simple-main code {
    padding: 0.08rem 0.28rem;
    border-radius: 0.3rem;
    background: #eef6f7;
    color: #102943;
    font-size: 0.82em;
}

.ipcom-auth-showcase {
    display: none;
}

body.ipcom-login-page .fi-simple-layout {
    justify-content: flex-start;
    padding: clamp(0.75rem, 2vw, 1.5rem);
}

body.ipcom-login-page .fi-simple-main-ctn {
    width: 100%;
}

body.ipcom-login-page .fi-simple-main {
    width: min(1180px, 100%);
    max-width: 1180px !important;
    overflow: hidden;
    padding: 0 !important;
    border-radius: 26px;
}

body.ipcom-login-page .fi-simple-page {
    display: grid;
    min-height: min(680px, calc(100dvh - 2.5rem));
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

body.ipcom-login-page .fi-simple-page-content {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: clamp(1.5rem, 3vw, 3rem);
}

body.ipcom-login-page .fi-simple-header {
    margin-bottom: 0;
    text-align: left;
}

body.ipcom-login-page .fi-simple-header .fi-logo {
    justify-content: flex-start;
}

body.ipcom-login-page .fi-simple-header .fi-logo img {
    width: min(270px, 76%);
    height: auto !important;
    max-height: 82px;
    object-fit: contain;
    object-position: left center;
}

body.ipcom-login-page .fi-simple-header-heading,
body.ipcom-login-page .fi-simple-header-subheading {
    text-align: left;
}

body.ipcom-login-page .ipcom-auth-showcase {
    position: relative;
    display: flex;
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.75rem;
    overflow: hidden;
    padding: clamp(1.75rem, 3vw, 3rem);
    background:
        radial-gradient(circle at 78% 12%, rgb(45 184 197 / 0.25), transparent 17rem),
        linear-gradient(145deg, #eff9f9 0%, #dceff0 100%);
    color: #102943;
}

body.ipcom-login-page .ipcom-auth-showcase::after {
    position: absolute;
    right: -8rem;
    bottom: -9rem;
    width: 23rem;
    height: 23rem;
    border: 4rem solid rgb(8 119 124 / 0.07);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.ipcom-auth-showcase-copy,
.ipcom-auth-illustration,
.ipcom-auth-assurance {
    position: relative;
    z-index: 1;
}

.ipcom-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #08777c;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ipcom-auth-kicker::before {
    width: 1.8rem;
    height: 2px;
    background: #2db8c5;
    content: "";
}

.ipcom-auth-showcase h2 {
    max-width: 13ch;
    margin: 1rem 0 0.9rem;
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.ipcom-auth-showcase p {
    max-width: 38rem;
    margin: 0;
    color: #425769;
    font-size: 1.06rem;
    line-height: 1.65;
}

.ipcom-auth-illustration {
    width: min(100%, 540px);
    max-height: 300px;
    margin: auto;
    object-fit: contain;
}

.ipcom-auth-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.ipcom-auth-assurance span {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgb(8 119 124 / 0.18);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.65);
    color: #245363;
    font-size: 0.78rem;
    font-weight: 750;
}

body.ipcom-login-page .fi-simple-main [style*="rgba(245, 158, 11, 0.35)"] {
    border-color: rgb(8 119 124 / 0.24) !important;
    background: rgb(238 246 247 / 0.72) !important;
}

.ipcom-demo-login-details {
    margin-bottom: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgb(8 119 124 / 0.2);
    border-radius: 0.75rem;
    background: rgb(238 246 247 / 0.72);
    color: #324a5d;
    font-size: 0.84rem;
    line-height: 1.45;
}

.ipcom-demo-login-details h2 {
    margin: 0;
    color: #102943;
    font-size: 0.95rem;
    font-weight: 800;
}

.ipcom-demo-login-details p {
    margin: 0.25rem 0 0;
}

.ipcom-demo-login-details nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.ipcom-demo-login-details nav a {
    padding: 0.38rem 0.62rem;
    border: 1px solid rgb(8 119 124 / 0.2);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.78);
    line-height: 1.2;
    text-decoration: none;
}

.ipcom-demo-login-details nav a[aria-current="page"] {
    border-color: #08777c;
    background: #08777c;
    color: #fff;
}

.ipcom-demo-sales-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.ipcom-demo-sales-links a {
    padding: 0.32rem 0.55rem;
    border: 1px solid rgb(8 119 124 / 0.2);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.62);
    color: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.ipcom-demo-sales-links a:hover,
.ipcom-demo-sales-links a:focus-visible {
    border-color: #08777c;
    color: #08777c;
}

.ipcom-demo-login-details .ipcom-demo-sales-links {
    padding-top: 0.65rem;
    border-top: 1px solid rgb(8 119 124 / 0.14);
}

.ipcom-demo-login-details .ipcom-demo-sales-links a {
    flex: 1 1 auto;
    color: #245363;
}

body.ipcom-demo-login-page .fi-simple-page-content > .fi-grid {
    gap: 1rem;
}

@media (min-width: 921px) {
    body.ipcom-demo-login-page .fi-simple-page {
        min-height: min(650px, calc(100dvh - 2.5rem));
    }

    body.ipcom-demo-login-page .fi-simple-page-content,
    body.ipcom-demo-login-page .ipcom-auth-showcase {
        padding: clamp(1.35rem, 2.5vw, 2.5rem);
    }

    body.ipcom-demo-login-page .ipcom-auth-illustration {
        max-height: 250px;
    }
}

@media (max-width: 920px) {
    body.ipcom-login-page .fi-simple-page {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    body.ipcom-login-page .fi-simple-page-content {
        grid-column: 1;
        padding: clamp(1.5rem, 6vw, 3rem);
    }

    body.ipcom-login-page .ipcom-auth-showcase {
        display: none;
    }
}

@media (max-width: 640px) {
    body.ipcom-login-page .fi-simple-layout {
        padding: 0.75rem;
    }

    body.ipcom-login-page .fi-simple-main {
        border-radius: 18px;
    }

    body.ipcom-demo-login-page .fi-simple-page-content {
        padding: 1.35rem;
    }

    .ipcom-demo-login-details {
        margin-bottom: 1rem;
        padding: 0.8rem;
    }
}

.dark .fi-simple-main {
    border-color: rgb(71 85 105 / 0.7);
    background: rgb(17 24 39 / 0.97);
}

.dark .fi-simple-header-heading {
    color: #f8fafc;
}

.dark .fi-simple-main .fi-input-wrp {
    border-color: #475569;
    background: rgb(15 23 42 / 0.72);
}

.dark .fi-simple-main code {
    background: #1e293b;
    color: #e2e8f0;
}

.dark .ipcom-demo-login-details {
    border-color: rgb(45 184 197 / 0.3);
    background: rgb(15 23 42 / 0.68);
    color: #cbd5e1;
}

.dark .ipcom-demo-login-details h2 {
    color: #f8fafc;
}

.dark .ipcom-demo-login-details nav a {
    border-color: rgb(45 184 197 / 0.3);
    background: rgb(30 41 59 / 0.8);
}

.dark .ipcom-demo-login-details nav a[aria-current="page"] {
    background: #0b8990;
    color: #fff;
}
