:root {
    --csr-ink: #10261d;
    --csr-muted: #66756e;
    --csr-green: #087443;
    --csr-green-dark: #04552f;
    --csr-green-soft: #eaf6ef;
    --csr-line: #dce5e0;
    --csr-surface: #f7faf8;
}

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

body.account-body.accountbg {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--csr-surface);
}

body.account-body > .row.vh-100 {
    min-height: 100vh;
    height: auto !important;
    margin: 0;
}

body.account-body > .row.vh-100 > .col-12 {
    padding: 0;
}

body.account-body .auth-page {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
}

.csr-login {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(440px, .85fr);
    width: 100%;
    min-height: 100vh;
    color: var(--csr-ink);
    background: #fff;
}

.csr-login__story {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(2, 35, 23, .04) 0%, rgba(3, 43, 28, .16) 34%, rgba(3, 37, 25, .88) 100%),
        url('../image/login-care-team.png');
    background-position: center 38%;
    background-size: cover;
}

.csr-login--recovery .csr-login__story {
    background-image:
        linear-gradient(180deg, rgba(2, 35, 23, .06) 0%, rgba(3, 43, 28, .2) 42%, rgba(3, 37, 25, .9) 100%),
        url('../image/password-recovery-team.png');
    background-position: center 43%;
}

.csr-login__story::before {
    position: absolute;
    top: -9rem;
    left: -8rem;
    width: 23rem;
    height: 23rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgba(255, 255, 255, .035), 0 0 0 8rem rgba(255, 255, 255, .025);
    content: '';
}

.csr-login__story::after {
    position: absolute;
    right: 2.25rem;
    bottom: 2rem;
    width: 4rem;
    height: 4rem;
    border-top: .8rem solid rgba(255, 255, 255, .13);
    border-left: .8rem solid rgba(255, 255, 255, .13);
    content: '';
    transform: rotate(45deg);
}

.csr-login__story-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(2rem, 4.2vw, 4.75rem);
    color: #fff;
}

.csr-login__command {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: fit-content;
    padding: .55rem 1rem .55rem .6rem;
    border: 1px solid rgba(255, 255, 255, .27);
    border-radius: 999px;
    background: rgba(4, 38, 25, .34);
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.csr-login__command-mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 50%;
    color: var(--csr-green-dark);
    background: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.csr-login__identity {
    max-width: 44rem;
    margin-top: auto;
    padding: 5rem 0 2.75rem;
}

.csr-login__eyebrow {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.15rem;
    color: #d9f5e6;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.csr-login__eyebrow::before {
    width: 2.5rem;
    height: 2px;
    background: #9ae0b9;
    content: '';
}

.csr-login__identity h1 {
    max-width: 42rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.6vw, 4.2rem);
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: -.045em;
    text-shadow: 0 3px 24px rgba(0, 0, 0, .22);
}

.csr-login__identity h1 span {
    display: block;
    margin-top: .55rem;
    color: #a9e8c5;
}

.csr-login__identity p {
    max-width: 35rem;
    margin: 1.35rem 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: clamp(.95rem, 1.2vw, 1.08rem);
    line-height: 1.7;
}

.csr-login__trust {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .67);
    font-size: .73rem;
    line-height: 1.45;
}

.csr-login__trust strong {
    display: block;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
}

.csr-login__trust-icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .7rem;
    color: #d9f5e6;
    background: rgba(255, 255, 255, .12);
}

.csr-login__access {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5.5rem);
    background:
        radial-gradient(circle at 100% 0, rgba(8, 116, 67, .08), transparent 28rem),
        #fff;
}

.csr-login__access-inner {
    display: flex;
    width: min(100%, 29rem);
    min-height: min(79vh, 49rem);
    flex-direction: column;
}

.csr-login__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.csr-login__logo img {
    display: block;
    width: 5.5rem;
    height: 5.5rem;
    object-fit: contain;
}

.csr-login__portal-label {
    padding: .45rem .75rem;
    border: 1px solid #d8e7df;
    border-radius: 999px;
    color: var(--csr-green-dark);
    background: #f6fbf8;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.csr-login__welcome {
    margin-top: auto;
    padding-top: 4.5rem;
}

.csr-login__welcome-mark {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    margin-bottom: 1.5rem;
    place-items: center;
    border-radius: .8rem;
    color: var(--csr-green);
    background: var(--csr-green-soft);
    font-size: .85rem;
}

.csr-login__welcome h2 {
    margin: 0;
    color: var(--csr-ink);
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.csr-login__welcome p {
    margin: .75rem 0 0;
    color: var(--csr-muted);
    font-size: .93rem;
}

.csr-login__form {
    margin-top: 2.25rem;
}

.csr-login__alert {
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
    border: 1px solid #f3c4c4;
    border-radius: .7rem;
    color: #8b2424;
    background: #fff4f4;
    font-size: .82rem;
    line-height: 1.5;
}

.csr-login__field + .csr-login__field {
    margin-top: 1.25rem;
}

.csr-login__field label {
    margin: 0 0 .55rem;
    color: #263b32;
    font-size: .78rem;
    font-weight: 650;
}

.csr-login__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.csr-login__label-row a {
    color: var(--csr-green);
    font-size: .75rem;
    font-weight: 600;
}

.csr-login__label-row a:hover {
    color: var(--csr-green-dark);
    text-decoration: underline;
}

.csr-login__input {
    position: relative;
}

.csr-login__input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 1rem;
    color: #7c8d84;
    font-size: .9rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.csr-login__form .csr-login__input .form-control {
    height: 3.45rem;
    padding: 0 3.1rem 0 2.85rem;
    border: 1px solid var(--csr-line);
    border-radius: .75rem;
    color: var(--csr-ink);
    background: #fff;
    font-size: .88rem;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.csr-login__form .csr-login__input .form-control::placeholder {
    color: #9aa6a0;
}

.csr-login__form .csr-login__input .form-control:hover {
    border-color: #b9cbc1;
}

.csr-login__form .csr-login__input .form-control:focus {
    border-color: var(--csr-green);
    background: #fbfefc;
    box-shadow: 0 0 0 .22rem rgba(8, 116, 67, .1);
}

.csr-login__password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: .65rem;
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: .55rem;
    color: #718078;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.csr-login__password-toggle:hover,
.csr-login__password-toggle:focus {
    color: var(--csr-green);
    background: var(--csr-green-soft);
    outline: none;
}

.csr-login__form .validationMessage {
    display: block;
    margin-top: .42rem;
    color: #a83636;
    font-size: .72rem;
}

.csr-login__submit {
    display: flex;
    width: 100%;
    height: 3.5rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.75rem;
    padding: 0 1.35rem;
    border: 0;
    border-radius: .75rem;
    color: #fff;
    background: var(--csr-green);
    font-size: .86rem;
    font-weight: 650;
    box-shadow: 0 .65rem 1.4rem rgba(8, 116, 67, .2);
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.csr-login__submit:hover,
.csr-login__submit:focus {
    color: #fff;
    background: var(--csr-green-dark);
    box-shadow: 0 .8rem 1.75rem rgba(4, 85, 47, .24);
    outline: none;
    transform: translateY(-1px);
}

.csr-login__submit:active {
    transform: translateY(0);
}

.csr-login__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 3.5rem;
    color: #8a9790;
    font-size: .66rem;
}

.csr-login__footer i {
    margin-right: .35rem;
    color: var(--csr-green);
}

.csr-login__recovery-back {
    margin-top: 1.5rem;
    text-align: center;
}

.csr-login__recovery-back a {
    color: var(--csr-green);
    font-size: .78rem;
    font-weight: 650;
}

.csr-login__recovery-back a:hover,
.csr-login__recovery-back a:focus {
    color: var(--csr-green-dark);
    text-decoration: underline;
}

.csr-login__recovery-back i {
    margin-right: .4rem;
    font-size: .68rem;
}

@media (max-width: 1050px) {
    .csr-login {
        grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    }

    .csr-login__story-content {
        padding: 2.5rem;
    }

    .csr-login__identity h1 {
        font-size: clamp(2rem, 4vw, 3.2rem);
    }
}

@media (max-width: 800px) {
    .csr-login {
        display: block;
        background: var(--csr-surface);
    }

    .csr-login__story {
        min-height: 23rem;
        background-position: center 27%;
    }

    .csr-login__story-content {
        min-height: 23rem;
        padding: 1.5rem;
    }

    .csr-login__identity {
        padding: 4rem 0 0;
    }

    .csr-login__identity h1 {
        max-width: 35rem;
        font-size: clamp(1.75rem, 7vw, 2.7rem);
    }

    .csr-login__identity p,
    .csr-login__trust {
        display: none;
    }

    .csr-login__access {
        min-height: auto;
        padding: 2.25rem 1.35rem 1.5rem;
    }

    .csr-login__access-inner {
        min-height: 40rem;
    }

    .csr-login__welcome {
        padding-top: 4rem;
    }
}

@media (max-width: 480px) {
    .csr-login__story,
    .csr-login__story-content {
        min-height: 20rem;
    }

    .csr-login__story {
        background-position: 48% 23%;
    }

    .csr-login__command {
        font-size: .59rem;
    }

    .csr-login__identity {
        padding-top: 3rem;
    }

    .csr-login__eyebrow {
        margin-bottom: .8rem;
        font-size: .63rem;
    }

    .csr-login__portal-label {
        display: none;
    }

    .csr-login__welcome {
        padding-top: 3.5rem;
    }

    .csr-login__footer {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .csr-login *,
    .csr-login *::before,
    .csr-login *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
