/* MyRent login transition ------------------------------------------------ */

.myrent-login-loading {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 38%, rgba(33, 150, 243, .18), transparent 34%),
        rgba(10, 24, 33, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.myrent-login-loading.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

body.myrent-login-is-loading {
    overflow: hidden !important;
}

.myrent-login-loading-card {
    position: relative;
    width: min(420px, calc(100vw - 40px));
    padding: 30px 34px 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 30px 90px rgba(2, 20, 31, .34);
    text-align: center;
    transform: translateY(10px) scale(.98);
    transition: transform .22s ease;
}

.myrent-login-loading-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2196f3, #16a7a0, #2196f3);
    background-size: 200% 100%;
    animation: myrent-login-header-flow 1.6s linear infinite;
}

.myrent-login-loading.is-visible .myrent-login-loading-card {
    transform: translateY(0) scale(1);
}

.myrent-login-loading-brand {
    display: flex;
    justify-content: center;
    min-height: 34px;
    margin-bottom: 10px;
}

.myrent-login-loading-brand img {
    display: block;
    width: auto;
    max-width: 150px;
    height: 34px;
    object-fit: contain;
}

.myrent-login-loading-visual {
    width: 124px;
    height: 124px;
    margin: 2px auto 10px;
}

.myrent-login-loading-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.myrent-login-svg-track,
.myrent-login-svg-progress {
    fill: none;
    stroke-width: 5;
}

.myrent-login-svg-track {
    stroke: #e6eef2;
}

.myrent-login-svg-progress {
    stroke: #168793;
    stroke-linecap: round;
    stroke-dasharray: 346;
    stroke-dashoffset: 250;
    transform: rotate(-90deg);
    transform-origin: 80px 80px;
    animation: myrent-login-progress 1.75s ease-in-out infinite;
}

.myrent-login-svg-building {
    fill: rgba(22, 135, 147, .08);
    stroke: #168793;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: myrent-login-building-pulse 1.8s ease-in-out infinite;
}

.myrent-login-svg-check {
    fill: #fff;
    stroke: #2e9f69;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: 118px 48px;
    animation: myrent-login-check 1.8s ease-in-out infinite;
}

.myrent-login-loading-title {
    margin-top: 3px;
    margin-bottom: 7px;
    color: #17313f;
    font-size: 19px;
    font-weight: 650;
    line-height: 1.35;
}

.myrent-login-loading-text {
    min-height: 42px;
    max-width: 330px;
    margin: 0 auto;
    color: #72818a;
    font-size: 13px;
    line-height: 1.55;
}

.myrent-login-loading-dots::after {
    content: "";
    display: inline-block;
    width: 1.25em;
    text-align: left;
    animation: myrent-login-dots 1.35s steps(4, end) infinite;
}

.myrent-login-loading-steps {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
}

.myrent-login-loading-steps span {
    width: 22px;
    height: 4px;
    border-radius: 4px;
    background: #dce5e9;
    transition: background .25s ease, transform .25s ease;
}

.myrent-login-loading-steps span.is-active {
    background: #168793;
    transform: scaleX(1.08);
}

.myrent-login-loading-secure {
    margin-top: 18px;
    color: #94a1a8;
    font-size: 11px;
    letter-spacing: .02em;
}

.myrent-login-loading-secure i {
    margin-right: 5px;
    color: #2e9f69;
}

.myrent-login-button-label {
    display: inline-block;
}

@keyframes myrent-login-progress {
    0% {
        stroke-dashoffset: 300;
        transform: rotate(-90deg);
    }

    55% {
        stroke-dashoffset: 70;
        transform: rotate(75deg);
    }

    100% {
        stroke-dashoffset: 300;
        transform: rotate(270deg);
    }
}

@keyframes myrent-login-building-pulse {
    0%, 100% {
        opacity: .72;
        transform: translateY(1px);
        transform-origin: 80px 80px;
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
        transform-origin: 80px 80px;
    }
}

@keyframes myrent-login-check {
    0%, 30% {
        opacity: 0;
        transform: scale(.75);
    }

    45%, 82% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(.85);
    }
}

@keyframes myrent-login-header-flow {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 200% 0;
    }
}

@keyframes myrent-login-dots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75%, 100% { content: "..."; }
}

@media (max-width: 575.98px) {
    .myrent-login-loading {
        padding: 16px;
    }

    .myrent-login-loading-card {
        width: 100%;
        padding: 26px 22px 22px;
        border-radius: 14px;
    }

    .myrent-login-loading-visual {
        width: 110px;
        height: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .myrent-login-loading,
    .myrent-login-loading-card,
    .myrent-login-svg-progress,
    .myrent-login-svg-building,
    .myrent-login-svg-check,
    .myrent-login-loading-card::before,
    .myrent-login-loading-dots::after {
        transition: none;
        animation-duration: 3s;
    }
}
