:root {
    --wch-blue: #0a84ff;
    --wch-blue-dark: #0066d6;
    --wch-blue-soft: #eaf4ff;
    --wch-ink: #10233f;
    --wch-muted: #63738a;
    --wch-line: #dbe7f4;
    --wch-white: #ffffff;
}

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

body.wch-login {
    margin: 0 !important;
    overflow-x: hidden;
    background: #f5f9ff !important;
    color: var(--wch-ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Arial, sans-serif !important;
}

body.wch-login > .authentication-form-wrapper:not(.wch-native-auth-wrapper),
body.wch-login > .container,
body.wch-login > .tw-container {
    display: none !important;
}

.wch-login-shell {
    display: grid;
    grid-template-columns: minmax(460px, 1.08fr) minmax(420px, .92fr);
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--wch-white);
}

.wch-login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background-color: #0b5f9e;
    background-image: var(--wch-login-background);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.wch-login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 12%, rgba(105, 204, 255, .36), transparent 34%),
        linear-gradient(145deg, rgba(0, 71, 151, .26), rgba(0, 35, 79, .62));
}

.wch-login-visual-shade {
    display: flex;
    align-items: flex-end;
    min-height: 100%;
    padding: clamp(44px, 7vw, 96px);
    background: linear-gradient(180deg, rgba(4, 31, 61, 0) 33%, rgba(4, 31, 61, .78) 100%);
}

.wch-login-visual-content {
    width: min(620px, 100%);
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 31, 76, .25);
}

.wch-login-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 13px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.wch-login-headline {
    max-width: 600px;
    margin: 24px 0 16px;
    color: #fff !important;
    font-size: clamp(36px, 4.3vw, 62px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.wch-login-description {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(15px, 1.45vw, 18px);
    line-height: 1.65;
}

.wch-login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 46px clamp(28px, 5vw, 78px);
    background:
        radial-gradient(circle at 100% 0, rgba(10, 132, 255, .09), transparent 34%),
        #fff;
}

.wch-login-form-inner {
    width: min(440px, 100%);
}

.wch-login-brand {
    min-height: 72px;
    margin-bottom: 28px;
}

.wch-login-logo {
    display: block;
    width: auto;
    max-width: min(330px, 100%);
    height: auto;
    max-height: 94px;
    object-fit: contain;
    object-position: left center;
}

.wch-login-brand-text-fallback::before {
    content: attr(data-brand);
    color: var(--wch-ink);
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.025em;
}

.wch-native-auth-wrapper.authentication-form-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wch-native-auth-wrapper .wch-native-logo-hidden {
    display: none !important;
}

.wch-native-auth-wrapper h1,
.wch-native-auth-wrapper h2,
.wch-native-auth-wrapper h3 {
    color: var(--wch-ink) !important;
    letter-spacing: -.025em;
}

.wch-native-auth-wrapper h1 {
    margin-bottom: 9px !important;
    font-size: clamp(27px, 3vw, 34px) !important;
    font-weight: 750 !important;
}

.wch-native-auth-wrapper .panel,
.wch-native-auth-wrapper .panel_s,
.wch-native-auth-wrapper .panel-body {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.wch-native-auth-wrapper .panel-body,
.wch-native-auth-wrapper .panel_s .panel-body {
    padding: 0 !important;
}

.wch-native-auth-wrapper label {
    margin-bottom: 8px !important;
    color: #31435c !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

.wch-native-auth-wrapper input[type="email"],
.wch-native-auth-wrapper input[type="text"],
.wch-native-auth-wrapper input[type="password"] {
    width: 100% !important;
    height: 52px !important;
    padding: 0 16px !important;
    border: 1px solid var(--wch-line) !important;
    border-radius: 14px !important;
    outline: none !important;
    background: #f9fbfe !important;
    color: var(--wch-ink) !important;
    font-size: 15px !important;
    box-shadow: 0 1px 2px rgba(16, 35, 63, .03) !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.wch-native-auth-wrapper input:focus {
    border-color: var(--wch-blue) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(10, 132, 255, .13) !important;
}

.wch-native-auth-wrapper .form-group,
.wch-native-auth-wrapper .tw-mb-4,
.wch-native-auth-wrapper .tw-mb-6 {
    margin-bottom: 20px !important;
}

.wch-native-auth-wrapper button[type="submit"],
.wch-native-auth-wrapper input[type="submit"],
.wch-native-auth-wrapper .btn-primary {
    min-height: 52px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--wch-blue), var(--wch-blue-dark)) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 24px rgba(10, 132, 255, .24) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.wch-native-auth-wrapper button[type="submit"]:hover,
.wch-native-auth-wrapper input[type="submit"]:hover,
.wch-native-auth-wrapper .btn-primary:hover {
    filter: saturate(1.08) brightness(.98);
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(10, 132, 255, .3) !important;
}

.wch-native-auth-wrapper a {
    color: #0877dc !important;
    font-weight: 600;
}

.wch-native-auth-wrapper .checkbox label,
.wch-native-auth-wrapper label[for*="remember"] {
    color: var(--wch-muted) !important;
    font-weight: 500 !important;
}

.wch-native-auth-wrapper .alert {
    border: 0 !important;
    border-radius: 13px !important;
}

.wch-login-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 30px;
    color: #7b8ba0;
    font-size: 12px;
    font-weight: 600;
}

.wch-login-secure svg {
    width: 15px;
    height: 15px;
    fill: #78a7d8;
}

@media (max-width: 980px) {
    .wch-login-shell {
        grid-template-columns: minmax(340px, .82fr) minmax(400px, 1fr);
    }

    .wch-login-visual-shade {
        padding: 44px;
    }

    .wch-login-headline {
        font-size: 39px;
    }
}

@media (max-width: 760px) {
    body.wch-login {
        background: #fff !important;
    }

    .wch-login-shell {
        display: block;
        min-height: 100dvh;
    }

    .wch-login-visual {
        min-height: 180px;
        height: 26vh;
        max-height: 245px;
        background-position: center 35%;
    }

    .wch-login-visual-shade {
        padding: 24px;
    }

    .wch-login-visual-content {
        display: none;
    }

    .wch-login-form-side {
        align-items: flex-start;
        min-height: calc(100dvh - 180px);
        margin-top: -24px;
        padding: 34px 22px 30px;
        border-radius: 24px 24px 0 0;
        position: relative;
        z-index: 2;
    }

    .wch-login-brand {
        min-height: 55px;
        margin-bottom: 22px;
    }

    .wch-login-logo {
        max-height: 68px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wch-native-auth-wrapper input,
    .wch-native-auth-wrapper button,
    .wch-native-auth-wrapper .btn-primary {
        transition: none !important;
    }
}

