/* Sutra authentication template, using its default brand palette. */

:root {
    --sutra-primary: #1688f8;
    --sutra-blue: #087ff5;
    --sutra-cyan: #06b7c9;
    --sutra-navy: #082f62;
    --sutra-ink: #102a4c;
    --sutra-muted: #607793;
    --sutra-line: #d7e4f2;
    --sutra-soft: #f3f8fd;
}

* {
    box-sizing: border-box;
}

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

body.sutra-auth {
    margin: 0;
    color: var(--sutra-ink);
    font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 8% 10%, rgba(6, 183, 201, .12), transparent 26rem),
        radial-gradient(circle at 92% 90%, rgba(101, 83, 219, .1), transparent 28rem),
        #edf5fc;
}

.sutra-auth::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--site-accent-gradient, linear-gradient(90deg, var(--sutra-blue), var(--sutra-cyan), #7454da));
    z-index: 10;
}

.sutra-auth-shell {
    min-height: 100vh;
    padding: 28px;
    display: grid;
    place-items: center;
}

.sutra-auth-frame {
    width: min(1180px, 100%);
    min-height: min(720px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    overflow: hidden;
    border: 1px solid rgba(174, 203, 231, .86);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(24, 58, 96, .16);
}

.sutra-auth-showcase {
    --sutra-auth-showcase-foreground: var(--site-banner-foreground, #fff);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 42px;
    display: flex;
    flex-direction: column;
    color: var(--sutra-auth-showcase-foreground);
    background: var(--site-banner-gradient,
        radial-gradient(circle at 78% 12%, rgba(31, 215, 224, .32), transparent 19rem),
        linear-gradient(145deg, #072c5a 0%, #07579b 56%, #06aebf 118%));
}

.sutra-auth-showcase::before,
.sutra-auth-showcase::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid color-mix(in srgb, var(--sutra-auth-showcase-foreground) 12%, transparent);
    border-radius: 50%;
}

.sutra-auth-showcase::before {
    width: 440px;
    height: 440px;
    top: -196px;
    right: -170px;
    box-shadow: 0 0 0 70px color-mix(in srgb, var(--sutra-auth-showcase-foreground) 3.5%, transparent), 0 0 0 140px color-mix(in srgb, var(--sutra-auth-showcase-foreground) 2.5%, transparent);
}

.sutra-auth-showcase::after {
    width: 300px;
    height: 300px;
    bottom: -220px;
    left: -100px;
    box-shadow: 0 0 0 58px color-mix(in srgb, var(--sutra-auth-showcase-foreground) 2.5%, transparent);
}

.sutra-auth-brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    justify-content: center;
    width: 98px;
    height: 108px;
    padding: 4px;
    border: 0;
    background: transparent;
}

.sutra-auth-brand img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    opacity: .98;
    transition: transform .25s ease, filter .25s ease;
    filter: brightness(0) invert(1) drop-shadow(0 12px 20px rgba(1, 28, 63, .24));
}

.sutra-auth-brand:hover img {
    transform: translateY(-3px) scale(1.04);
    filter: brightness(0) invert(1) drop-shadow(0 16px 26px rgba(1, 28, 63, .32));
}

.sutra-auth-intro {
    max-width: 540px;
    margin: auto 0 34px;
}

.sutra-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 19px;
    color: color-mix(in srgb, var(--sutra-auth-showcase-foreground) 78%, transparent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.sutra-auth-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--site-banner-foreground, #52e6bd);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--site-banner-foreground, #52e6bd) 12%, transparent);
}

.sutra-auth-intro h1 {
    margin: 0 0 17px;
    color: var(--sutra-auth-showcase-foreground);
    font-size: clamp(38px, 4.4vw, 58px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.04em;
}

.sutra-auth-intro p {
    max-width: 500px;
    margin: 0;
    color: color-mix(in srgb, var(--sutra-auth-showcase-foreground) 78%, transparent);
    font-size: 16px;
    line-height: 1.65;
}

.sutra-auth-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sutra-auth-feature {
    min-width: 0;
    padding: 16px 14px;
    border: 1px solid color-mix(in srgb, var(--sutra-auth-showcase-foreground) 16%, transparent);
    border-radius: 17px;
    background: color-mix(in srgb, var(--sutra-auth-showcase-foreground) 8.5%, transparent);
    backdrop-filter: blur(12px);
}

.sutra-auth-feature i {
    margin-bottom: 12px;
    color: var(--site-banner-foreground, #5fe0df);
    font-size: 17px;
}

.sutra-auth-feature strong,
.sutra-auth-feature span {
    display: block;
}

.sutra-auth-feature strong {
    color: var(--sutra-auth-showcase-foreground);
    font-size: 13px;
    line-height: 1.25;
}

.sutra-auth-feature span {
    margin-top: 5px;
    color: color-mix(in srgb, var(--sutra-auth-showcase-foreground) 78%, transparent);
    font-size: 10px;
    line-height: 1.4;
}

.sutra-auth-panel {
    position: relative;
    padding: clamp(34px, 5vw, 68px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(color-mix(in srgb, var(--site-buttons-color, var(--sutra-blue)) 3.5%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--site-buttons-color, var(--sutra-blue)) 3.5%, transparent) 1px, transparent 1px),
        #fff;
    background-size: 32px 32px;
}

.sutra-auth-panel-inner {
    width: 100%;
    max-width: 410px;
    margin: 0 auto;
}

.sutra-auth-portal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 44px;
}

.sutra-auth-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #52708e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sutra-auth-portal-badge i {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: var(--site-buttons-tint, #eaf4ff);
    color: var(--site-buttons-ink, var(--sutra-blue));
}

.sutra-auth-switch {
    color: var(--site-buttons-ink, #2470b8);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.sutra-auth-switch:hover {
    color: var(--site-buttons-ink, var(--sutra-navy));
}

.sutra-auth-heading {
    margin-bottom: 30px;
}

.sutra-auth-heading h2 {
    margin: 0 0 9px;
    color: var(--sutra-ink);
    font-size: 32px;
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -.025em;
}

.sutra-auth-heading p {
    margin: 0;
    color: var(--sutra-muted);
    font-size: 14px;
    line-height: 1.55;
}

.sutra-auth-panel .form-label {
    margin-bottom: 8px;
    color: #36516f;
    font-size: 12px;
    font-weight: 800;
}

.sutra-auth-panel .form-control {
    min-height: 52px;
    padding: 12px 15px;
    border: 1px solid #ccdae9;
    border-radius: 13px;
    background: rgba(248, 251, 254, .96);
    color: var(--sutra-ink);
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

.sutra-auth-panel .form-control:focus,
.sutra-auth-panel .form-check-input:focus {
    border-color: var(--site-buttons-ink, var(--sutra-blue));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-buttons-color, var(--sutra-blue)) 10%, transparent);
}

.sutra-auth-panel .form-control:focus {
    background: #fff;
}

.sutra-auth-panel .input-group .form-control {
    border-radius: 13px !important;
}

.sutra-auth-panel .input-group:has(.show-password-btn) .form-control {
    border-radius: 13px !important;
}

.sutra-auth-panel .input-group:has(.show-password-btn) {
    flex-wrap: nowrap;
    gap: 9px;
}

.sutra-auth-panel .show-password-btn {
    flex: 0 0 52px;
    min-width: 52px;
    border: 1px solid #ccdae9;
    border-radius: 13px !important;
    background: #f1f7fc;
    color: #47708f;
}

.sutra-auth-panel .form-check-input {
    width: 18px;
    height: 18px;
    border-color: #aac1d8;
}

.sutra-auth-panel .form-check-input:checked {
    border-color: var(--site-buttons-ink, var(--sutra-blue));
    background-color: var(--site-buttons-ink, var(--sutra-blue));
}

.sutra-auth-panel .form-check-label {
    padding-top: 2px;
    color: #5c728a;
    font-size: 13px;
    font-weight: 600;
}

.sutra-auth-panel .btn-primary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 53px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(120deg, var(--sutra-blue), var(--sutra-cyan));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    box-shadow: 0 14px 28px rgba(8, 127, 245, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.sutra-auth-panel .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(8, 127, 245, .28);
}

.sutra-auth-panel .btn-outline-secondary {
    border-color: #c6d8e9;
    border-radius: 10px;
    color: #45647f;
    font-weight: 700;
}

.sutra-auth-panel a {
    color: var(--site-buttons-ink, #1372cb);
    font-weight: 700;
    text-decoration: none;
}

.sutra-auth-panel .alert {
    border: 0;
    border-radius: 13px;
    font-size: 13px;
}

.sutra-auth-trust {
    margin-top: 32px;
    padding-top: 22px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-top: 1px solid #e3ebf3;
    color: #7a8fa4;
    font-size: 11px;
    font-weight: 600;
}

.sutra-auth-trust i {
    color: #25a77b;
}

.auth-full-page {
    max-width: 1680px;
    margin: 0 auto;
}

@media (min-width: 901px) and (max-height: 820px) {
    .sutra-auth-shell {
        height: 100dvh;
        min-height: 0;
        padding-block: 20px;
    }

    .sutra-auth-frame {
        height: calc(100dvh - 40px);
        min-height: 0;
    }

    .sutra-auth-showcase {
        padding-block: 30px;
    }

    .sutra-auth-brand {
        width: 82px;
        height: 90px;
    }

    .sutra-auth-intro {
        margin-bottom: 24px;
    }

    .sutra-auth-intro h1 {
        font-size: clamp(34px, 4vw, 48px);
    }

    .sutra-auth-feature {
        padding-block: 12px;
    }

    .sutra-auth-panel {
        padding-block: 28px;
    }

    .sutra-auth-portal {
        margin-bottom: 22px;
    }

    .sutra-auth-heading {
        margin-bottom: 20px;
    }

    .sutra-auth-trust {
        margin-top: 20px;
        padding-top: 16px;
    }
}

@media (max-width: 900px) {
    .sutra-auth-shell {
        padding: 18px;
    }

    .sutra-auth-frame {
        min-height: calc(100vh - 36px);
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .sutra-auth-showcase {
        min-height: 260px;
        padding: 28px;
    }

    .sutra-auth-intro {
        margin: 44px 0 0;
    }

    .sutra-auth-intro h1 {
        font-size: 36px;
    }

    .sutra-auth-features {
        display: none;
    }

    .sutra-auth-panel {
        padding: 34px 26px;
    }

    .sutra-auth-portal {
        margin-bottom: 30px;
    }
}

@media (max-width: 520px) {
    .sutra-auth-shell {
        padding: 0;
    }

    .sutra-auth-frame {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .sutra-auth-showcase {
        min-height: 210px;
        padding: 26px 22px;
    }

    .sutra-auth-brand {
        width: 76px;
        height: 84px;
        padding: 3px;
    }

    .sutra-auth-brand img {
        width: 100%;
    }

    .sutra-auth-intro {
        margin-top: 32px;
    }

    .sutra-auth-intro h1 {
        margin-bottom: 10px;
        font-size: 30px;
    }

    .sutra-auth-intro p {
        font-size: 13px;
    }

    .sutra-auth-panel {
        padding: 30px 22px 38px;
    }

    .sutra-auth-heading h2 {
        font-size: 27px;
    }
}

/* Preserve client logo colors and aspect ratio on the dark sign-in panel. */
.sutra-auth-brand, .registration-brand { width: min(280px, 100%); height: 100px; padding: 8px 14px; background: #fff; border-radius: 12px; }
.sutra-auth-brand img, .sutra-auth-brand:hover img, .registration-brand img { width: 100%; height: 100%; object-fit: contain; filter: none; }
