:root {
    --fr-navy: #061b3a;
    --fr-navy-2: #0a2a59;
    --fr-blue: #1463ff;
    --fr-blue-soft: #eaf2ff;
    --fr-teal: #05b89f;
    --fr-green: #11b96a;
    --fr-purple: #7646e8;
    --fr-text: #0b1f44;
    --fr-muted: #64748b;
    --fr-border: #dfe7f2;
    --fr-bg: #f7f9fd;
    --fr-danger: #d9364f;
}

* {
    box-sizing: border-box;
}

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

body.fr-login-page {
    margin: 0;
    min-height: 100vh;
    color: var(--fr-text);
    background: #ffffff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.fr-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 32%) 1fr;
    overflow: hidden;
}

.fr-login-showcase {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 12%, rgba(20, 99, 255, .08) 0 10px, transparent 11px),
        radial-gradient(circle at 16% 17%, rgba(20, 99, 255, .06) 0 13px, transparent 14px),
        linear-gradient(145deg, #f6f9ff 0%, #eef4ff 62%, #f8fbff 100%);
    border-right: 1px solid #edf1f7;
    padding: 56px 62px;
    overflow: hidden;
}

.fr-login-showcase:before,
.fr-login-showcase:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.fr-login-showcase:before {
    width: 460px;
    height: 190px;
    left: -135px;
    bottom: -90px;
    background: rgba(50, 108, 255, .08);
    transform: rotate(9deg);
}

.fr-login-showcase:after {
    width: 380px;
    height: 145px;
    left: 75px;
    bottom: -80px;
    background: rgba(82, 128, 255, .07);
    transform: rotate(-8deg);
}

.fr-showcase-inner {
    position: relative;
    z-index: 2;
    max-width: 355px;
    margin: 22px auto 0;
}

.fr-showcase-mark {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
}

.fr-showcase-mark img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: var(--fr-navy);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 16px 32px rgba(10, 42, 89, .18);
}

.fr-mark-notification {
    position: absolute;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    right: -3px;
    bottom: 2px;
    background: var(--fr-teal);
    border: 4px solid #eef5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.fr-mark-notification svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fr-showcase-copy {
    padding-bottom: 38px;
    border-bottom: 1px solid #d9e2f0;
}

.fr-showcase-copy h1 {
    margin: 0 0 19px;
    font-size: 31px;
    line-height: 1.23;
    font-weight: 750;
    letter-spacing: -.6px;
    color: var(--fr-text);
}

.fr-showcase-copy h1 span {
    color: var(--fr-blue);
}

.fr-showcase-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: #5f6f88;
}

.fr-feature-list {
    padding-top: 31px;
}

.fr-feature-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 17px;
    align-items: start;
    margin-bottom: 27px;
}

.fr-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fr-feature-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fr-feature-icon-green {
    background: #def8ec;
    color: #08a75c;
}

.fr-feature-icon-blue {
    background: #e4efff;
    color: #1463ff;
}

.fr-feature-icon-purple {
    background: #f1eaff;
    color: var(--fr-purple);
}

.fr-feature-item h2 {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 750;
    margin: 2px 0 7px;
    color: var(--fr-text);
}

.fr-feature-item p {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

.fr-login-main {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.fr-login-main:before {
    content: "";
    position: absolute;
    top: -210px;
    left: 26%;
    width: 540px;
    height: 290px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(48, 103, 255, .06), rgba(48, 103, 255, 0));
}

.fr-login-decoration {
    position: absolute;
    pointer-events: none;
}

.fr-decoration-ring {
    width: 210px;
    height: 210px;
    border: 2px solid rgba(20, 99, 255, .08);
    border-radius: 50%;
    right: 10%;
    bottom: 17%;
}

.fr-decoration-ring:after {
    content: "";
    position: absolute;
    inset: 27px;
    border: 2px solid rgba(20, 99, 255, .06);
    border-radius: 50%;
}

.fr-login-dots {
    position: absolute;
    top: 70px;
    right: 70px;
    width: 90px;
    height: 90px;
    opacity: .22;
    background-image: radial-gradient(#8aa9de 1.4px, transparent 1.4px);
    background-size: 14px 14px;
}

.fr-login-content {
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 54px 62px 28px;
}

.fr-login-card {
    width: 100%;
    max-width: 565px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid #dce3ed;
    border-radius: 18px;
    padding: 43px 48px 38px;
    box-shadow: 0 18px 52px rgba(11, 31, 68, .10);
}

.fr-card-brand {
    text-align: center;
}

.fr-card-logo {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fr-navy);
    border-radius: 17px;
    box-shadow: 0 10px 25px rgba(6, 27, 58, .16);
}

.fr-card-logo img {
    width: 47px;
    height: 47px;
    object-fit: contain;
}

.fr-card-brand h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 760;
    letter-spacing: -.5px;
    color: var(--fr-text);
}

.fr-card-brand p {
    margin: 7px 0 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--fr-teal);
}

.fr-card-divider {
    height: 1px;
    background: #e4e9f1;
    margin: 29px 0 26px;
}

.fr-login-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    margin: 0 0 18px;
    border: 1px solid #ffd2da;
    border-radius: 10px;
    background: #fff4f6;
    color: #b3273d;
    font-size: 13px;
    line-height: 1.45;
}

.fr-login-alert svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.fr-form-group {
    margin-bottom: 19px;
}

.fr-form-group label {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 650;
    color: #253753;
    margin-bottom: 8px;
}

.fr-input-wrap {
    position: relative;
}

.fr-input-wrap input {
    width: 100%;
    height: 54px;
    border: 1px solid #d5dde9;
    border-radius: 9px;
    background: #fff;
    color: #142540;
    padding: 0 46px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.fr-input-wrap input::placeholder {
    color: #8b99ae;
}

.fr-input-wrap input:focus {
    border-color: #3779ff;
    box-shadow: 0 0 0 3px rgba(20, 99, 255, .10);
}

.fr-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    color: #68778c;
    pointer-events: none;
}

.fr-input-icon svg,
.fr-password-toggle svg,
.fr-secure-note svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fr-password-toggle {
    position: absolute;
    width: 38px;
    height: 38px;
    right: 8px;
    top: 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    padding: 9px;
    cursor: pointer;
}

.fr-password-toggle:hover,
.fr-password-toggle:focus {
    color: var(--fr-blue);
    background: #f3f7ff;
    outline: none;
}

.fr-password-toggle.is-visible {
    color: var(--fr-blue);
}

.fr-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 2px 0 24px;
}

.fr-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #56657c;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.fr-check-label input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--fr-blue);
}

.fr-help-text {
    font-size: 13px;
    color: var(--fr-blue);
    cursor: help;
}

.fr-signin-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #061b3a 0%, #0b326c 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(6, 27, 58, .13);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.fr-signin-btn:hover,
.fr-signin-btn:focus {
    color: #fff;
    background: linear-gradient(90deg, #0a2a59 0%, #104892 100%);
    box-shadow: 0 11px 22px rgba(6, 27, 58, .17);
    transform: translateY(-1px);
    outline: none;
}

.fr-secure-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #52637a;
    font-size: 13px;
}

.fr-secure-note svg {
    width: 20px;
    height: 20px;
    color: var(--fr-teal);
}

.fr-login-footer {
    width: 100%;
    max-width: 900px;
    margin-top: 50px;
    border-top: 1px solid #e4e9f1;
    padding: 21px 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    color: #697990;
    font-size: 11px;
}

.fr-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: #3470d8;
}

@media (max-width: 1199px) {
    .fr-login-shell {
        grid-template-columns: 360px 1fr;
    }

    .fr-login-showcase {
        padding: 48px 38px;
    }

    .fr-login-content {
        padding-left: 38px;
        padding-right: 38px;
    }
}

@media (max-width: 899px) {
    .fr-login-shell {
        display: block;
        background: linear-gradient(145deg, #f6f9ff, #fff 45%);
    }

    .fr-login-showcase {
        display: none;
    }

    .fr-login-main,
    .fr-login-content {
        min-height: 100vh;
    }

    .fr-login-content {
        padding: 38px 22px 24px;
    }

    .fr-login-card {
        max-width: 525px;
        padding: 38px 30px 32px;
    }

    .fr-login-footer {
        margin-top: 32px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .fr-footer-links {
        justify-content: center;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .fr-login-content {
        padding: 22px 14px 18px;
    }

    .fr-login-card {
        padding: 30px 20px 27px;
        border-radius: 15px;
    }

    .fr-card-brand h2 {
        font-size: 25px;
    }

    .fr-card-brand p {
        font-size: 16px;
    }

    .fr-card-divider {
        margin: 23px 0;
    }

    .fr-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .fr-login-dots,
    .fr-decoration-ring {
        display: none;
    }

    .fr-footer-links {
        display: none;
    }
}

/* Forgot / Reset Password additions */
a.fr-help-text {
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}
a.fr-help-text:hover,
a.fr-help-text:focus {
    color: #0b326c;
    text-decoration: underline;
    outline: none;
}
.fr-login-alert-success {
    border-color: #b9eadc;
    background: #effbf7;
    color: #16765f;
}
.fr-login-alert-success svg {
    stroke-width: 2.3;
}
.fr-auth-back {
    margin-top: 20px;
    text-align: center;
}
.fr-auth-back a {
    color: #315b98;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}
.fr-auth-back a:hover,
.fr-auth-back a:focus {
    color: #0b326c;
    text-decoration: underline;
    outline: none;
}
