body.rella-v2-login-page .rella-v2-main,
body.rella-v2-login-page .rella-v2-login {
    min-height: calc(100vh - var(--rella-v2-header-desktop-height));
    background: var(--rella-v2-green);
}

body.rella-v2-login-page .rella-v2-header {
    z-index: 1050;
}

.rella-v2-login {
    width: 100%;
    padding: 30px 0 96px;
    font-family: var(--rella-v2-font);
    color: var(--rella-v2-text);
}

.rella-v2-login-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 520px);
    align-items: center;
    gap: clamp(70px, 7vw, 128px);
    width: min(calc(100% - 96px), 1600px);
    min-height: 690px;
    margin: 0 auto;
    padding: 70px clamp(56px, 6vw, 112px) 74px;
    border-radius: 46px;
    overflow: hidden;
}

.rella-v2-login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 540px;
    padding: 0 0 8px;
}

.rella-v2-login-hero-copy {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    margin: 0;
}

.rella-v2-login-hero-copy p {
    margin: 0 0 8px;
    color: var(--rella-v2-orange);
    font-size: var(--rella-v2-font-size-lg);
    font-weight: var(--rella-v2-font-weight-semibold);
    line-height: 1.4;
}

.rella-v2-login-hero-copy strong {
    display: block;
    color: var(--rella-v2-green);
    font-size: 52px;
    font-weight: var(--rella-v2-font-weight-bold);
    line-height: 1.08;
    letter-spacing: 0;
}

.rella-v2-login-hero-stack {
    position: relative;
    width: min(560px, 100%);
    height: 340px;
    margin: 42px 0 0 132px;
}

.rella-v2-login-hero-stack img {
    position: absolute;
    display: block;
    width: 228px;
    height: 228px;
    object-fit: cover;
    border-radius: 44px;
    box-shadow: var(--rella-v2-shadow-category);
}

.rella-v2-login-hero-stack img:nth-child(1) {
    left: 0;
    top: 72px;
    transform: rotate(-12deg);
}

.rella-v2-login-hero-stack img:nth-child(2) {
    left: 146px;
    top: 0;
    z-index: 2;
    transform: rotate(2deg);
}

.rella-v2-login-hero-stack img:nth-child(3) {
    right: 44px;
    top: 118px;
    transform: rotate(17deg);
}

.rella-v2-login-card {
    align-self: center;
    width: 100%;
    max-width: 520px;
    margin: 26px 0 0;
    padding: 52px 48px 44px;
    border: 0;
    border-radius: 36px;
    background: var(--rella-v2-white);
    box-shadow: var(--rella-v2-shadow-warm);
}

.rella-v2-login-heading {
    margin-bottom: 34px;
    text-align: left;
}

.rella-v2-login-kicker {
    margin: 0 0 8px;
    color: var(--rella-v2-orange);
    font-size: var(--rella-v2-font-size-sm);
    font-weight: var(--rella-v2-font-weight-semibold);
    line-height: 1.4;
    text-transform: uppercase;
}

.rella-v2-login-heading h1 {
    margin: 0;
    color: var(--rella-v2-green);
    font-size: 46px;
    font-weight: var(--rella-v2-font-weight-bold);
    line-height: 1.08;
    letter-spacing: 0;
}

.rella-v2-login-heading h1::after {
    content: ".";
    color: var(--rella-v2-orange);
}

.rella-v2-login-heading > p:last-child {
    margin: 12px 0 0;
    color: var(--rella-v2-muted);
    font-size: var(--rella-v2-font-size-md);
    font-weight: var(--rella-v2-font-weight-regular);
    line-height: 1.55;
}

.rella-v2-login-form .r-form-field {
    margin-bottom: 22px;
}

.rella-v2-login-form .r-form-label {
    color: var(--rella-v2-color-text-strong);
}

.rella-v2-login-form .input-form-rella.r-form-control--boxed {
    min-height: 60px;
    padding: 0 20px;
    border-color: var(--rella-v2-border);
    border-radius: var(--rella-v2-radius-xs);
    color: var(--rella-v2-text);
    font-size: var(--rella-v2-font-size-md);
    font-weight: var(--rella-v2-font-weight-regular);
}

.rella-v2-login-form .input-form-rella.r-form-control--boxed:focus {
    border-color: var(--rella-v2-orange);
    box-shadow: 0 0 0 4px rgba(255, 110, 63, 0.16);
}

.rella-v2-login-actions {
    margin: 14px 0 0;
}

.rella-v2-login-submit {
    width: 100% !important;
    max-width: none !important;
    min-height: 60px;
    padding: 0 24px;
    border-radius: var(--rella-v2-radius-xs);
    background: var(--rella-v2-orange);
    color: var(--rella-v2-white);
    font-size: var(--rella-v2-font-size-lg);
    font-weight: var(--rella-v2-font-weight-semibold);
}

.rella-v2-login-submit:hover,
.rella-v2-login-submit:focus-visible {
    background: var(--rella-v2-orange-dark);
    color: var(--rella-v2-white);
}

.rella-v2-login-register {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 28px 0 0;
    color: var(--rella-v2-muted);
    font-size: var(--rella-v2-font-size-sm);
    line-height: 1.5;
    text-align: center;
}

.rella-v2-login-register .logins {
    color: var(--rella-v2-green);
    font-weight: var(--rella-v2-font-weight-semibold);
    text-decoration: none;
}

.rella-v2-login-register .logins:hover,
.rella-v2-login-register .logins:focus-visible {
    color: var(--rella-v2-orange);
    text-decoration: underline;
}

body.rella-v2-login-page .rella-v2-message-modal .modal-content {
    border: 0;
    border-radius: var(--rella-v2-radius-panel);
    overflow: hidden;
}

body.rella-v2-login-page #errorModal .modal-dialog {
    width: 360px !important;
    max-width: calc(100vw - 48px) !important;
    margin: max(24px, calc((100vh - 330px) / 2)) auto 0 !important;
}

body.rella-v2-login-page #errorModal .modal-content {
    border: 1px solid var(--rella-v2-border) !important;
    border-radius: 28px !important;
    background: var(--rella-v2-white) !important;
    box-shadow: 0 24px 70px rgba(57, 23, 19, 0.16);
}

body.rella-v2-login-page #errorModal .modal-header {
    position: relative;
    align-items: flex-start;
    min-height: 0 !important;
    padding: 26px 70px 0 32px !important;
    border: 0 !important;
    background: var(--rella-v2-white) !important;
    color: var(--rella-v2-text) !important;
}

body.rella-v2-login-page #errorModal .modal-title {
    max-width: none;
    margin: 0;
    color: var(--rella-v2-text) !important;
    font-size: 24px;
    font-weight: 700;
    line-height: 29px;
    letter-spacing: 0;
}

body.rella-v2-login-page #errorModal .rella-v2-login-error-close {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #d8d1cf !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

body.rella-v2-login-page #errorModal .rella-v2-login-error-close::before {
    color: #d8d1cf;
    font-size: 24px;
    line-height: 38px;
}

body.rella-v2-login-page #errorModal .modal-body {
    padding: 18px 32px 30px !important;
}

body.rella-v2-login-page #errorModal .modal-body p {
    margin: 0;
    color: var(--rella-v2-text);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

body.rella-v2-login-page #errorModal .modal-footer {
    display: flex !important;
    padding: 0 32px 32px !important;
    border: 0 !important;
}

body.rella-v2-login-page .rella-v2-message-modal .modal-footer .btn-secondary {
    width: 100% !important;
    height: 56px !important;
    margin: 0 !important;
    border: 0;
    border-radius: 10px;
    background: var(--rella-v2-orange);
    color: var(--rella-v2-white);
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 22px !important;
}

body.rella-v2-login-page .rella-v2-mobile-nav {
    display: none;
}

body.rella-v2-login-page footer {
    display: none !important;
}

@media (max-width: 809px) {
    body.rella-v2-login-page .rella-v2-main,
    body.rella-v2-login-page .rella-v2-login {
        min-height: calc(100vh - var(--rella-v2-header-mobile-height));
    }

    .rella-v2-login {
        padding: 0 0 calc(var(--rella-v2-bottom-nav-bar-height) + 34px);
    }

    .rella-v2-login-shell {
        display: block;
        width: min(100vw, var(--rella-v2-viewport-mobile));
        min-height: auto;
        padding: calc(var(--rella-v2-header-mobile-height) + 34px) 24px 54px;
        border-radius: var(--rella-v2-radius-panel) var(--rella-v2-radius-panel) 0 0;
    }

    .rella-v2-login-hero {
        position: absolute;
        z-index: 1060;
        left: 50%;
        top: 168px;
        display: block;
        width: min(var(--rella-v2-content-mobile), calc(100vw - 120px));
        min-height: 0;
        padding: 0;
        transform: translateX(-50%);
        text-align: left;
    }

    .rella-v2-login-hero-copy {
        width: 100%;
    }

    .rella-v2-login-hero-copy p {
        margin: 0 0 7px;
        color: var(--rella-v2-white);
        font-size: var(--rella-v2-font-size-sm);
        font-weight: var(--rella-v2-font-weight-semibold);
        line-height: 17px;
    }

    .rella-v2-login-hero-copy strong {
        color: var(--rella-v2-white);
        font-size: 24px;
        font-weight: var(--rella-v2-font-weight-bold);
        line-height: 29px;
    }

    .rella-v2-login-hero-stack {
        display: none;
    }

    .rella-v2-login-card {
        max-width: none;
        margin-top: 20px;
        padding: 24px 22px 22px;
        border-radius: 24px;
    }

    .rella-v2-login-heading {
        margin-bottom: 18px;
        text-align: center;
    }

    .rella-v2-login-heading h1 {
        font-size: 36px;
    }

    .rella-v2-login-heading > p:last-child {
        font-size: var(--rella-v2-font-size-sm);
    }

    .rella-v2-login-form .input-form-rella.r-form-control--boxed,
    .rella-v2-login-submit {
        min-height: 50px;
    }

    .rella-v2-login-form .r-form-field {
        margin-bottom: 16px;
    }

    .rella-v2-login-actions {
        margin-top: 8px;
    }

    .rella-v2-login-register {
        margin-top: 18px;
    }

    body.rella-v2-login-page .rella-v2-mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 300;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 37px;
        width: min(100vw, var(--rella-v2-viewport-mobile));
        height: 75px;
        min-height: 75px;
        margin: 0 auto;
        border-radius: 30px 30px 0 0;
        background: var(--rella-v2-orange);
        box-shadow: none;
        transform: none;
    }

    body.rella-v2-login-page .rella-v2-mobile-nav a {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: rgba(255, 255, 255, 0.82);
        font-size: 24px;
        line-height: 1;
        text-decoration: none;
    }

    body.rella-v2-login-page .rella-v2-mobile-nav a.active {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--rella-v2-white);
        font-size: 24px;
        transform: translateY(-9px);
    }

    body.rella-v2-login-page .rella-v2-mobile-nav a.active::before {
        content: "";
        position: absolute;
        z-index: -1;
        left: 50%;
        top: 50%;
        width: 77px;
        height: 77px;
        border: 4px solid var(--rella-v2-orange);
        border-radius: 50%;
        background: #f35d2c;
        transform: translate(-50%, -50%);
    }

    body.rella-v2-login-page .rella-v2-mobile-nav a:hover {
        color: var(--rella-v2-white);
        opacity: 1 !important;
    }
}

@media (max-width: 420px) {
    .rella-v2-login-shell {
        padding-right: 18px;
        padding-left: 18px;
    }

    .rella-v2-login-hero {
        width: min(330px, calc(100vw - 60px));
    }

    .rella-v2-login-card {
        margin-top: 22px;
        padding: 26px 22px 24px;
    }

    .rella-v2-login-heading {
        margin-bottom: 16px;
    }

    .rella-v2-login-heading h1 {
        font-size: 32px;
    }

    .rella-v2-login-heading > p:last-child {
        margin-top: 8px;
    }

    .rella-v2-login-form .r-form-field {
        margin-bottom: 14px;
    }

    .rella-v2-login-form .input-form-rella.r-form-control--boxed {
        min-height: 48px;
    }

    .rella-v2-login-actions {
        margin-top: 8px;
    }

    .rella-v2-login-submit {
        min-height: 52px;
    }

    .rella-v2-login-register {
        margin-top: 18px;
    }

    body.rella-v2-login-page .rella-v2-mobile-nav {
        gap: 22px;
    }

    body.rella-v2-login-page #errorModal .modal-dialog {
        max-width: calc(100vw - 32px) !important;
    }

    body.rella-v2-login-page #errorModal .modal-header {
        padding: 24px 60px 0 28px !important;
    }

    body.rella-v2-login-page #errorModal .modal-title {
        font-size: 23px;
        line-height: 28px;
    }

    body.rella-v2-login-page #errorModal .modal-body {
        padding: 16px 28px 28px !important;
    }

    body.rella-v2-login-page #errorModal .modal-body p {
        font-size: 17px;
        line-height: 27px;
    }

    body.rella-v2-login-page #errorModal .modal-footer {
        padding: 0 28px 28px !important;
    }
}
