:root {
    /* Desktop Base: 2560px */
    --dw: 2560;
    /* Mobile Base: 393px */
    --mw: 393;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #F3F6FC;
    color: #111928;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
}

.slide {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #F3F6FC;
    border-radius: calc(20 / var(--dw) * 100vw);
    margin: 0 auto;
    overflow: hidden;
    padding: calc(64 / var(--dw) * 100vw);
}

.auth-layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(128 / var(--dw) * 100vw);
    min-height: calc(100vh - calc(96 / var(--dw) * 100vw));
    padding-bottom: calc(64 / var(--dw) * 100vw);
}

.ellipse {
    position: absolute;
    filter: blur(calc(384 / var(--dw) * 100vw));
    z-index: 0;
    opacity: 0.6;
}

.ellipse1 {
    width: calc(1331 / var(--dw) * 100vw);
    height: calc(800 / var(--dw) * 100vw);
    left: calc(973 / var(--dw) * 100vw);
    top: calc(200 / var(--dw) * 100vw);
    background: #CED6F5;
}

.ellipse2 {
    width: calc(1536 / var(--dw) * 100vw);
    height: calc(768 / var(--dw) * 100vw);
    left: calc(77 / var(--dw) * 100vw);
    top: calc(80 / var(--dw) * 100vw);
    background: #FFFFFF;
}

.auth-card {
    width: calc(693 / var(--dw) * 100vw);
    padding: calc(80 / var(--dw) * 100vw);
    border-radius: calc(27 / var(--dw) * 100vw);
    background: rgba(220, 224, 234, 0.6);
    border: calc(1.33 / var(--dw) * 100vw) solid rgba(255, 255, 255, 1);
    box-shadow: 0 calc(2.67 / var(--dw) * 100vw) calc(13.33 / var(--dw) * 100vw) rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(calc(27 / var(--dw) * 100vw));
    display: flex;
    flex-direction: column;
    gap: calc(32 / var(--dw) * 100vw);
    position: relative;
    margin-left: calc(-100 / var(--dw) * 100vw);
    left: 15%;
}

.login-title {
    margin: 0;
    font-size: calc(53 / var(--dw) * 100vw);
    line-height: 1.2;
    font-weight: 700;
    color: #000000;
    text-align: center;
}

.login-info {
    display: flex;
    flex-direction: column;
    gap: calc(12 / var(--dw) * 100vw);
    font-size: calc(18 / var(--dw) * 100vw);
    color: #111928;
    word-break: break-word;
}

.telegram-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(13 / var(--dw) * 100vw);
    width: calc(533 / var(--dw) * 100vw);
    min-width: calc(336 / var(--dw) * 100vw);
    min-height: calc(67 / var(--dw) * 100vw);
    margin: 0 auto;
    border-radius: calc(67 / var(--dw) * 100vw);
    background: #54ABF0;
    color: #FFFFFF;
    font-weight: 600;
    font-size: calc(21 / var(--dw) * 100vw);
    text-align: center;
    padding-inline: calc(64 / var(--dw) * 100vw);
    letter-spacing: 0;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.telegram-button:hover {
    background: #4A9AD9;
}

.telegram-button:active {
    background: #3D89C4;
}

.telegram-button__icon {
    width: calc(24 / var(--dw) * 100vw);
    height: calc(22 / var(--dw) * 100vw);
    flex-shrink: 0;
}

.telegram-widget-container {
    width: 100% !important;
    padding: calc(32 / var(--dw) * 100vw) 0 !important;
}

.telegram-widget-inner {
    width: 100% !important;
    display: block !important;
}

.telegram-widget-inner iframe {
    transform: scale(1.6) !important;
    transform-origin: center center !important;
    margin: 0 auto !important;
    display: block !important;
}

iframe[src*="telegram"] {
    transform: scale(1.6) !important;
    transform-origin: center center !important;
    margin: 0 auto !important;
    display: block !important;
}

.hero-side {
    flex: 1;
    position: relative;
    min-height: calc(576 / var(--dw) * 100vw);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-top: calc(112 / var(--dw) * 100vw);
}

.title-gradient {
    position: absolute;
    top: 0;
    left: calc(360 / var(--dw) * 100vw);
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: calc(134 / var(--dw) * 100vw);
    line-height: 1.05;
    text-align: left;
    background: linear-gradient(94.41deg, #C4D0FB 34.84%, #3758F9 105.3%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
}

.city-image {
    position: relative;
    width: calc(832 / var(--dw) * 100vw);
    max-width: calc(832 / var(--dw) * 100vw);
    margin-left: calc(-160 / var(--dw) * 100vw);
    z-index: 2;
    left: calc(-300 / var(--dw) * 100vw);
    bottom: calc(-12 / var(--dw) * 100vw);
}

.city-image img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-text {
    position: absolute;
    bottom: calc(40 / var(--dw) * 100vw);
    left: 50%;
    transform: translateX(-50%);
    font-size: calc(14 / var(--dw) * 100vw);
    font-weight: 400;
    color: #8899A8;
    z-index: 2;
}

@media (max-width: 1200px) {
    .auth-layout {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .hero-side {
        width: 100%;
        justify-content: center;
        align-items: flex-end;
    }

    .title-gradient {
        left: 0;
    }

    .city-image {
        width: calc(1088 / var(--dw) * 100vw);
        margin-left: calc(-128 / var(--dw) * 100vw);
    }
}

@media (max-width: 768px) {
    :root {
        --dw: var(--mw);
    }

    html,
    body {
        overflow-y: auto;
    }

    .slide {
        border-radius: 0;
        padding: calc(32 / var(--mw) * 100vw);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .auth-layout {
        justify-content: center;
        align-items: center;
    }

    .auth-card {
        width: 100%;
        max-width: unset;
        padding: calc(48 / var(--mw) * 100vw);
        margin: auto;
        margin-left: auto;
    }

    .telegram-button {
        width: 100%;
        min-width: 100%;
    }

    .telegram-widget-container {
        padding: calc(28 / var(--mw) * 100vw) 0 !important;
    }

    .telegram-widget-inner iframe {
        transform: scale(1.4) !important;
        margin: 0 auto !important;
        display: block !important;
    }

    iframe[src*="telegram"] {
        transform: scale(1.4) !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .hero-side {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        min-height: auto;
    }

    .title-gradient {
        position: relative;
        font-size: calc(64 / var(--mw) * 100vw);
        text-align: center;
        margin-bottom: calc(24 / var(--mw) * 100vw);
        left: auto;
        top: auto;
    }

    .city-image {
        width: 100%;
        margin: 0;
        left: 0;
        bottom: 0;
    }

    .login-title {
        font-size: calc(38 / var(--mw) * 100vw);
    }

    .login-info {
        font-size: calc(15 / var(--mw) * 100vw);
    }

    .footer-text {
        font-size: calc(12 / var(--mw) * 100vw);
    }
}

@media (max-width: 480px) {
    .auth-layout {
        gap: calc(32 / var(--mw) * 100vw);
    }

    .login-title {
        font-size: calc(32 / var(--mw) * 100vw);
    }

    .telegram-button {
        font-size: calc(17 / var(--mw) * 100vw);
    }

    .telegram-widget-container {
        padding: calc(24 / var(--mw) * 100vw) 0 !important;
    }

    .telegram-widget-inner iframe {
        transform: scale(1.3) !important;
        margin: 0 auto !important;
        display: block !important;
    }

    iframe[src*="telegram"] {
        transform: scale(1.3) !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

@media (min-width: 900px) and (max-width: 1280px) and (orientation: landscape) {
    .auth-layout {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: calc(64 / var(--dw) * 100vw);
        min-height: calc(100vh - calc(96 / var(--dw) * 100vw));
        padding-bottom: calc(32 / var(--dw) * 100vw);
    }

    .auth-card {
        width: calc(624 / var(--dw) * 100vw);
        padding: calc(58 / var(--dw) * 100vw);
        gap: calc(29 / var(--dw) * 100vw);
        margin-left: 0;
        left: 0;
        flex-shrink: 0;
    }

    .login-title {
        font-size: calc(48 / var(--dw) * 100vw);
    }

    .telegram-widget-inner iframe {
        transform: scale(1.05) !important;
        margin: 0 auto !important;
        display: block !important;
    }

    iframe[src*="telegram"] {
        transform: scale(1.05) !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .hero-side {
        flex: 1;
        min-height: calc(480 / var(--dw) * 100vw);
        justify-content: flex-end;
        align-items: flex-end;
        padding-top: calc(80 / var(--dw) * 100vw);
        width: auto;
    }

    .title-gradient {
        position: absolute;
        font-size: calc(190 / var(--dw) * 100vw);
        left: calc(289 / var(--dw) * 100vw);
        top: -15%;
        z-index: 1;
    }

    .city-image {
        width: calc(700 / var(--dw) * 100vw);
        max-width: calc(700 / var(--dw) * 100vw);
        margin-left: calc(-120 / var(--dw) * 100vw);
        left: auto;
        bottom: 0;
        z-index: 2;
    }
}

@media (width: 1280px) and (orientation: landscape) {
    .auth-card {
        width: calc(756 / var(--dw) * 100vw);
        padding: calc(48 / var(--dw) * 100vw);
        left: 10%;
    }

    .telegram-widget-inner iframe {
        transform: scale(1.02) !important;
        margin: 0 auto !important;
        display: block !important;
    }

    iframe[src*="telegram"] {
        transform: scale(1.02) !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .city-image {
        width: calc(1200 / var(--dw) * 100vw);
        max-width: calc(1200 / var(--dw) * 100vw);
        right: 1%;
        /* top: -53%; */
        padding-top: -7%;
        margin-top: 0%;
    }
}