.fm-login-page {
    --fm-teal: #159faa;
    --fm-teal-deep: #0b6f78;
    --fm-ink: #2f3e46;
    --fm-muted: #6d7e86;
    --fm-soft-red: #c64545;

    align-items: center;
    background:
        radial-gradient(circle at 14% 22%, rgba(122, 221, 216, 0.28), transparent 28%),
        radial-gradient(circle at 82% 6%, rgba(190, 246, 239, 0.48), transparent 28%),
        linear-gradient(135deg, #f8fffe 0%, #eafdff 48%, #ffffff 100%);
    box-sizing: border-box;
    color: var(--fm-ink);
    display: flex;
    font-family: "Manrope", "Lato", Arial, sans-serif;
    flex: 1 1 auto;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.fm-login-page *,
.fm-login-page *::before,
.fm-login-page *::after {
    box-sizing: border-box;
}

.fm-login-stage {
    align-items: center;
    aspect-ratio: auto;
    display: flex;
    height: 100vh;
    justify-content: center;
    max-height: none;
    min-height: 100vh;
    position: relative;
    width: 100%;
}

.fm-login-stage::before {
    background:
        radial-gradient(ellipse at center, rgba(239, 255, 253, 0.48) 0%, rgba(230, 251, 249, 0.22) 48%, transparent 70%);
    content: "";
    height: min(650px, calc(100vh - 36px));
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-56%, -50%);
    width: min(760px, calc(100% - 24px));
    z-index: 2;
}

.fm-background-art {
    border-radius: 0;
    box-shadow: none;
    inset: 0;
    overflow: hidden;
    position: absolute;
}

.fm-background-art::after {
    background:
        radial-gradient(circle at 48% 48%, rgba(255, 255, 255, 0.12), transparent 23%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(1, 118, 128, 0.1));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.fm-background-art img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transform: scale(1.14);
    width: 100%;
}

.fm-login-card {
    -webkit-backdrop-filter: blur(10px) saturate(1.03);
    backdrop-filter: blur(12px) saturate(1.04);
    background:
        linear-gradient(180deg, rgba(253, 255, 255, 0.99), rgba(242, 254, 252, 0.985));
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow:
        0 24px 56px rgba(8, 91, 101, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-style: normal;
    min-height: 0;
    padding: 30px 54px 24px;
    position: relative;
    transform: translate(-42px, -6px);
    width: min(520px, calc(100% - 32px));
    z-index: 5;
}

.fm-login-card::before {
    background:
        radial-gradient(ellipse at center, rgba(238, 255, 253, 0.36) 0%, rgba(238, 255, 253, 0.14) 52%, transparent 74%);
    border-radius: 999px;
    content: "";
    filter: blur(4px);
    inset: -46px -64px;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.fm-login-card > * {
    position: relative;
    z-index: 1;
}

.fm-login-card--compact {
    width: min(500px, calc(100% - 32px));
}

.fm-login-card--login {
    justify-content: center;
    min-height: 528px;
    padding: 34px 64px 28px;
    width: min(610px, calc(100% - 32px));
}

.fm-login-card--wide {
    padding: 26px 40px 22px;
    transform: translate(-24px, -2px);
    width: min(760px, calc(100% - 32px));
}

.fm-login-card--message {
    padding-bottom: 26px;
}

.fm-login-page + footer.footer {
    display: none !important;
}

.fm-login-heading {
    text-align: center;
}

.fm-brand-logo {
    display: block;
    height: auto;
    margin: 0 auto 10px;
    max-width: 238px;
    width: 62%;
}

.fm-login-card--login .fm-brand-logo {
    margin-bottom: 22px;
    max-width: 282px;
    width: 72%;
}

.fm-login-heading h1 {
    color: #213840;
    font-family: "Manrope", "Lato", Arial, sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
}

.fm-login-heading p {
    color: #60757d;
    font-size: 13px;
    line-height: 1.5;
    margin: 10px auto 0;
    max-width: 360px;
}

.fm-login-form {
    margin-top: 20px;
}

.fm-field {
    margin-bottom: 13px;
}

.fm-label-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.fm-label {
    color: #0a6670;
    display: block;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 4px;
}

.fm-forgot-link,
.fm-signup-line a {
    color: #075f68;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
}

.fm-forgot-link:hover,
.fm-signup-line a:hover,
.fm-forgot-link:focus,
.fm-signup-line a:focus {
    color: #084f56;
    text-decoration: underline;
}

.fm-input-wrap {
    position: relative;
}

.fm-login-page .fm-input {
    background: rgba(255, 255, 255, 0.4) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(40, 58, 66, 0.34) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #2a3d45 !important;
    font-size: 14.5px;
    font-style: normal;
    font-weight: 400;
    height: 38px;
    letter-spacing: 0;
    line-height: 38px;
    outline: none;
    padding: 0 38px 0 8px;
    width: 100%;
}

.fm-form-grid {
    display: grid;
    gap: 14px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fm-form-grid .fm-field {
    margin-bottom: 0;
}

.fm-field--full {
    grid-column: 1 / -1;
}

.fm-register-scroll {
    max-height: min(440px, calc(100vh - 260px));
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 8px 2px 0;
}

.fm-register-scroll::-webkit-scrollbar {
    width: 6px;
}

.fm-register-scroll::-webkit-scrollbar-thumb {
    background: rgba(11, 111, 120, 0.3);
    border-radius: 999px;
}

.fm-login-page select.fm-input {
    appearance: none;
    cursor: pointer;
}

.fm-dynamic-label {
    color: #0a6973;
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 4px;
}

.fm-recaptcha-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.fm-login-page .fm-input::placeholder {
    color: rgba(58, 74, 82, 0.54);
}

.fm-login-page .fm-input:focus {
    background: rgba(255, 255, 255, 0.58) !important;
    border-bottom-color: var(--fm-teal) !important;
}

.fm-login-page input:-webkit-autofill,
.fm-login-page input:-webkit-autofill:hover,
.fm-login-page input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.88) inset !important;
    -webkit-text-fill-color: var(--fm-ink) !important;
}

.fm-input-icon,
.fm-password-toggle {
    align-items: center;
    bottom: 0;
    color: rgba(47, 62, 70, 0.5);
    display: flex;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 2px;
    top: 0;
    width: 34px;
}

.fm-password-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    outline: none;
    padding: 0;
}

.fm-password-toggle:hover,
.fm-password-toggle:focus {
    color: var(--fm-teal-deep);
}

.fm-password-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(21, 159, 170, 0.18);
}

.fm-validation {
    color: var(--fm-soft-red);
    font-size: 12px;
    margin-top: 5px;
    min-height: 15px;
}

.fm-validation .field-validation-valid {
    display: none;
}

.fm-error-message {
    background: rgba(198, 69, 69, 0.1);
    border: 1px solid rgba(198, 69, 69, 0.18);
    border-radius: 8px;
    color: var(--fm-soft-red);
    font-size: 13px;
    margin: 2px 0 16px;
    padding: 10px 12px;
    text-align: center;
}

.fm-success-message {
    background: rgba(21, 159, 122, 0.1);
    border: 1px solid rgba(21, 159, 122, 0.18);
    border-radius: 8px;
    color: #0b775f;
    font-size: 13px;
    margin: 2px 0 16px;
    padding: 10px 12px;
    text-align: center;
}

.fm-submit-button {
    background: linear-gradient(180deg, #28b4bf 0%, #159faa 100%);
    border: 0;
    border-radius: 7px;
    box-shadow: 0 13px 25px rgba(19, 132, 143, 0.24);
    color: #ffffff;
    cursor: pointer;
    display: block;
    font-size: 13.5px;
    font-style: normal;
    font-weight: 700;
    height: 45px;
    letter-spacing: 0.01em;
    line-height: 45px;
    margin-top: 8px;
    outline: none;
    padding: 0 18px;
    text-align: center;
    width: 100%;
}

.fm-secondary-button {
    align-items: center;
    border: 1px solid rgba(11, 111, 120, 0.28);
    border-radius: 7px;
    color: #0b6f78;
    display: flex;
    font-size: 13px;
    font-weight: 600;
    height: 42px;
    justify-content: center;
    margin-top: 10px;
    text-decoration: none;
    width: 100%;
}

.fm-secondary-button:hover,
.fm-secondary-button:focus {
    background: rgba(21, 159, 170, 0.08);
    color: #084f56;
    text-decoration: none;
}

.fm-link-button,
.fm-link-button:hover,
.fm-link-button:focus {
    text-decoration: none;
}

.fm-submit-button:hover,
.fm-submit-button:focus {
    background: linear-gradient(180deg, #1da7b2 0%, #0d8994 100%);
}

.fm-submit-button:focus-visible {
    box-shadow:
        0 13px 25px rgba(19, 132, 143, 0.24),
        0 0 0 4px rgba(21, 159, 170, 0.22);
}

.fm-signup-line {
    align-items: center;
    border-top: 1px solid rgba(47, 62, 70, 0.12);
    color: #6b7d85;
    display: flex;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 400;
    gap: 5px;
    justify-content: center;
    margin-top: 18px;
    padding-top: 12px;
    text-align: center;
}

.fm-login-support-mark {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.fm-login-support-mark img {
    display: block;
    height: 46px;
    object-fit: contain;
    width: auto;
}

.fm-confirm-icon {
    align-items: center;
    background: rgba(21, 159, 170, 0.1);
    border: 1px solid rgba(21, 159, 170, 0.24);
    border-radius: 999px;
    color: var(--fm-teal);
    display: inline-flex;
    font-size: 20px;
    height: 42px;
    justify-content: center;
    margin: 2px 0 12px;
    width: 42px;
}

.fm-background-support {
    align-items: center;
    bottom: 28px;
    color: rgba(235, 255, 253, 0.9);
    display: flex;
    font-size: 12px;
    font-style: italic;
    gap: 24px;
    justify-content: center;
    left: 18px;
    line-height: 1.2;
    position: absolute;
    right: 18px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(5, 67, 75, 0.45);
    z-index: 4;
}

@media (max-width: 991px) {
    .fm-login-stage {
        height: 100vh;
        min-height: 100vh;
    }

    .fm-login-card {
        transform: translateY(4px);
        width: min(500px, calc(100% - 32px));
    }

    .fm-login-card--login {
        width: min(560px, calc(100% - 32px));
    }

    .fm-login-card--wide {
        width: min(720px, calc(100% - 32px));
    }

    .fm-background-art img {
        object-position: 50% center;
        transform: scale(1.18);
    }
}

@media (max-width: 640px) {
    .fm-login-stage {
        height: 100vh;
        min-height: 100vh;
        width: 100%;
    }

    .fm-background-art img {
        object-position: 50% center;
        transform: scale(1.24);
    }

    .fm-login-card {
        padding: 24px 24px 20px;
        min-height: auto;
        transform: translateY(-12px);
        width: calc(100% - 24px);
    }

    .fm-login-card--wide {
        padding: 22px 20px 18px;
        width: calc(100% - 20px);
    }

    .fm-form-grid {
        grid-template-columns: 1fr;
    }

    .fm-register-scroll {
        max-height: calc(100vh - 250px);
        padding-right: 4px;
    }

    .fm-brand-logo {
        max-width: 190px;
        width: 72%;
    }

    .fm-login-card--login {
        min-height: auto;
    }

    .fm-login-card--login .fm-brand-logo {
        max-width: 236px;
        width: 82%;
    }

    .fm-login-heading h1 {
        font-size: 24px;
    }

    .fm-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .fm-forgot-link {
        align-self: flex-end;
    }

    .fm-signup-line {
        flex-wrap: wrap;
    }

    .fm-login-support-mark img {
        height: 38px;
    }

    .fm-background-support {
        bottom: 18px;
        flex-direction: column;
        font-size: 11px;
        gap: 3px;
    }
}
