* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    background-color: #052c43;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow: hidden;
    color: var(--text-color);
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(115deg, rgba(0, 85, 137, 0.9), rgba(2, 28, 43, 0.98)),
        url("../images/bg.3bfbd5670735.webp") center / cover no-repeat;
}

.login_page {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(430px, 40.7vw) minmax(0, 1fr);
    overflow: hidden;
}

.login_showcase {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(2rem, 4.4vh, 3.2rem) clamp(1.4rem, 4vw, 4rem);
    border-radius: 0 64px 64px 0;
    background: #f3f3f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.2rem, 4vh, 3rem);
    box-shadow: none;
}

.brand_mark {
    width: min(450px, 87%);
    min-width: 315px;
    aspect-ratio: 3.1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.brand_mark img {
    display: block;
    width: calc(100% + 4rem);
    height: calc(100% + 4rem);
    object-fit: contain;
    clip-path: inset(8px);
}

.phone_preview {
    position: relative;
    width: min(240px, 47%);
    min-width: 182px;
    margin-block: auto;
    padding: 0.45rem;
    border: 3px solid #e2e5ea;
    border-radius: 34px;
    background: linear-gradient(145deg, #fbfbfd, #e7eaf0);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.95),
        inset 8px 0 12px rgba(255, 255, 255, 0.7),
        inset -8px 0 12px rgba(145, 151, 164, 0.18),
        0 20px 30px rgba(14, 28, 42, 0.2);
}

.phone_preview::before {
    content: "";
    position: absolute;
    top: 10%;
    left: -5px;
    width: 3px;
    height: 15%;
    border-radius: 999px;
    background: #d0d4dc;
}

.phone_preview::after {
    content: "";
    position: absolute;
    top: 10%;
    left: 50%;
    z-index: 2;
    width: 24%;
    height: 0.65rem;
    border-radius: 0 0 999px 999px;
    background: rgba(224, 228, 235, 0.92);
    transform: translateX(-50%);
}

.phone_preview img {
    display: block;
    width: 100%;
    max-height: min(66vh, 560px);
    border-radius: 27px;
    object-fit: contain;
}

.powered_by {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: min(310px, 72%);
    color: #0a3957;
}

.powered_by span {
    flex: 0 0 auto;
    font-size: clamp(0.78rem, 1.1vw, 1rem);
    line-height: 1;
}

.powered_by img {
    display: block;
    width: min(230px, 100%);
    height: auto;
    max-height: 82px;
    object-fit: contain;
}

.login_access {
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(2rem, 6vh, 5rem) clamp(2rem, 7vw, 7.8rem);
    background:
        linear-gradient(115deg, rgba(0, 91, 137, 0.9), rgba(3, 32, 49, 0.98)),
        url("../images/bg.3bfbd5670735.webp") center / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.6rem, 4vh, 2.6rem);
}

.mobile_login_logo,
.mobile_service_cards {
    display: none;
}

.login_form {
    width: min(535px, 100%);
    padding: clamp(1.8rem, 4.2vh, 2.3rem) clamp(2.25rem, 5vw, 4rem);
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
    text-align: center;
}

form h1 {
    margin: 0 0 clamp(1.4rem, 3vh, 1.9rem);
    color: #323232;
    font-size: clamp(1.65rem, 2.2vw, 2.05rem);
    font-weight: 800;
    line-height: 1.1;
}

.login_error {
    width: 100%;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #f4b5b5;
    border-radius: 8px;
    background-color: #fff1f1;
    color: #b00020;
    font-size: 0.92rem;
    font-weight: 700;
}

.username_input,
.password_input {
    width: 100%;
}

.password_input {
    position: relative;
    margin-top: 0.9rem;
}

.form_input {
    display: block;
    width: 100%;
    height: 3.35rem;
    border: 2px solid transparent;
    border-radius: 18px;
    background-color: #e8f1ff;
    color: #343a43;
    font-size: 1rem;
    font-weight: 600;
    padding: 0 1rem;
}

.password_input .form_input {
    padding-right: 3.4rem;
}

.form_input::placeholder {
    color: #747c88;
    font-weight: 600;
}

.form_input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(var(--secondary-color-rgb), 0.12);
}

.toggle_img {
    position: absolute;
    top: 50%;
    right: 1.15rem;
    width: 1.35rem;
    transform: translateY(-50%);
    cursor: pointer;
}

.remember_wrapper {
    width: 100%;
    margin: 0.85rem 0 0;
    text-align: left;
}

.remember_label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #6c7280;
    font-size: 0.82rem;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
}

.remember_label input[type="checkbox"] {
    width: 0.95rem;
    height: 0.95rem;
    accent-color: var(--primary-color);
}

.login_btn {
    display: block;
    width: 100%;
    min-height: 3.45rem;
    margin: clamp(1.9rem, 4.2vh, 2.7rem) 0 0.75rem;
    border: 0;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.96rem;
    font-weight: 900;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.login_btn:hover,
.login_btn:focus-visible {
    background-color: #e63910;
    box-shadow: 0 14px 24px rgba(var(--primary-color-rgb), 0.24);
    transform: translateY(-1px);
}

.login_hint {
    width: min(420px, 100%);
    margin: 0 auto;
    color: #6b7280;
    font-size: 0.72rem;
    line-height: 1.35;
}

.service_message {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.9rem;
    width: min(620px, 100%);
    color: #fff;
    text-align: center;
}

.service_message p {
    flex: 0 0 100%;
    margin: 0;
    color: var(--primary-color);
    font-size: clamp(2.45rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 0.95;
    text-shadow:
        -2px -2px 0 #fff,
        0 -2px 0 #fff,
        2px -2px 0 #fff,
        2px 0 0 #fff,
        2px 2px 0 #fff,
        0 2px 0 #fff,
        -2px 2px 0 #fff,
        -2px 0 0 #fff;
}

.service_message span,
.youtube_link {
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
    line-height: 1;
}

.service_message > span {
    font-weight: 500;
}

.youtube_link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border: 2px solid #fff;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.youtube_link:hover,
.youtube_link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.youtube_play {
    position: relative;
    display: inline-block;
    width: 2.45rem;
    height: 1.7rem;
    border-radius: 0.42rem;
    background-color: #ff0000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.youtube_play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    width: 0;
    height: 0;
    border-top: 0.42rem solid transparent;
    border-bottom: 0.42rem solid transparent;
    border-left: 0.68rem solid #fff;
    transform: translate(-42%, -50%);
}

@media (min-width: 1800px) and (min-height: 1000px) {
    .login_page {
        grid-template-columns: minmax(620px, 39vw) minmax(0, 1fr);
    }

    .login_showcase {
        padding: clamp(3rem, 5vh, 5rem) clamp(3rem, 5vw, 6rem);
        border-radius: 0 82px 82px 0;
        gap: clamp(2rem, 4vh, 4.5rem);
    }

    .brand_mark {
        width: min(775px, 92%);
        min-width: 588px;
    }

    .brand_mark img {
        width: calc(100% + 6rem);
        height: calc(100% + 6rem);
        clip-path: inset(10px);
    }

    .phone_preview {
        width: min(429px, 57%);
        min-width: 352px;
        padding: 0.65rem;
        border-radius: 44px;
    }

    .phone_preview::after {
        height: 0.85rem;
    }

    .phone_preview img {
        max-height: min(68vh, 760px);
        border-radius: 35px;
    }

    .powered_by {
        width: min(520px, 82%);
        gap: 0.85rem;
    }

    .powered_by span {
        font-size: clamp(1.25rem, 1.1vw, 1.55rem);
    }

    .powered_by img {
        width: min(430px, 100%);
        height: auto;
        max-height: 140px;
    }

    .login_access {
        padding: clamp(6rem, 10vh, 10.5rem) clamp(7.5rem, 12vw, 16.5rem);
        gap: clamp(3.3rem, 6vh, 5.4rem);
    }

    .login_form {
        width: min(1035px, 100%);
        padding: clamp(3.6rem, 6.75vh, 5rem) clamp(6rem, 8.25vw, 9rem);
    }

    form h1 {
        margin-bottom: clamp(2.85rem, 4.5vh, 3.6rem);
        font-size: clamp(3.15rem, 2.25vw, 3.9rem);
    }

    .form_input,
    .login_btn {
        height: 6rem;
        min-height: 6rem;
        border-radius: 30px;
        font-size: 1.7rem;
    }

    .password_input {
        margin-top: 1.65rem;
    }

    .remember_wrapper {
        margin-top: 1.35rem;
    }

    .remember_label {
        gap: 0.85rem;
        font-size: 1.24rem;
    }

    .remember_label input[type="checkbox"] {
        width: 1.45rem;
        height: 1.45rem;
    }

    .login_btn {
        margin-top: clamp(3.6rem, 6.3vh, 5rem);
        font-size: 1.62rem;
    }

    .login_hint {
        width: min(780px, 100%);
        font-size: 1.29rem;
    }

    .service_message {
        width: min(1230px, 100%);
        gap: 1.05rem 1.8rem;
    }

    .service_message p {
        font-size: clamp(4.5rem, 5.05vw, 6.5rem);
        text-shadow:
            -3px -3px 0 #fff,
            0 -3px 0 #fff,
            3px -3px 0 #fff,
            3px 0 0 #fff,
            3px 3px 0 #fff,
            0 3px 0 #fff,
            -3px 3px 0 #fff,
            -3px 0 0 #fff;
    }

    .service_message span,
    .youtube_link {
        font-size: clamp(2.3rem, 2.1vw, 3rem);
    }

    .youtube_play {
        width: 4.65rem;
        height: 3.15rem;
        border-radius: 0.82rem;
    }
}

@media (max-width: 1120px) {
    .login_page {
        grid-template-columns: minmax(340px, 38vw) minmax(0, 1fr);
    }

    .login_showcase {
        padding-inline: 1.5rem;
        border-radius: 0 48px 48px 0;
    }

    .brand_mark {
        width: min(375px, 92%);
    }

    .phone_preview {
        width: min(202px, 56%);
        min-width: 157px;
        border-radius: 30px;
    }

    .phone_preview img {
        border-radius: 23px;
    }

    .login_access {
        padding-inline: 2rem;
    }
}

@media (max-width: 820px) {
    body {
        overflow-y: auto;
    }

    .login_page {
        min-height: 100svh;
        display: flex;
        flex-direction: column;
    }

    .login_showcase {
        display: none;
    }

    .login_access {
        min-height: 100svh;
        padding: 1.2rem 1rem 1.1rem;
        gap: 0.95rem;
        justify-content: flex-start;
    }

    .mobile_login_logo {
        display: block;
        width: min(315px, 86vw);
        height: auto;
        margin: 0 auto 0.1rem;
        object-fit: contain;
    }

    .login_form {
        width: min(323px, 100%);
        padding: 0.95rem 0.75rem;
        border-radius: 12px;
    }

    form h1 {
        margin-bottom: 1rem;
        font-size: 1.45rem;
    }

    .form_input,
    .login_btn {
        height: 3rem;
        min-height: 3rem;
        border-radius: 14px;
    }

    .password_input {
        margin-top: 0.65rem;
    }

    .login_btn {
        margin-top: 1.1rem;
    }

    .login_hint {
        font-size: 0.58rem;
        line-height: 1.28;
    }

    .mobile_service_cards {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.55rem;
        width: min(323px, 100%);
    }

    .mobile_service_card {
        min-height: 4rem;
        padding: 0.55rem 0.45rem;
        border-radius: 12px;
        background: #fff;
        color: #0a3957;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.32rem;
    }

    .mobile_service_card > span {
        font-size: 0.66rem;
        font-weight: 700;
        line-height: 1;
    }

    .mobile_youtube_card strong {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        color: #111827;
        font-size: 0.82rem;
        line-height: 1;
    }

    .mobile_powered_card img {
        display: block;
        width: min(108px, 100%);
        height: auto;
        max-height: 32px;
        object-fit: contain;
    }

    .service_message {
        width: min(323px, 100%);
    }

    .service_message p {
        font-size: clamp(1.8rem, 10vw, 2.55rem);
        text-shadow:
            -1.4px -1.4px 0 #fff,
            0 -1.4px 0 #fff,
            1.4px -1.4px 0 #fff,
            1.4px 0 0 #fff,
            1.4px 1.4px 0 #fff,
            0 1.4px 0 #fff,
            -1.4px 1.4px 0 #fff,
            -1.4px 0 0 #fff;
    }

    .service_message > span,
    .service_message .youtube_link {
        display: none;
    }
}

@media (max-width: 430px), (max-height: 650px) {
    .login_showcase {
        display: none;
    }

    .login_access {
        min-height: 100svh;
        padding: 0.85rem;
        gap: 0.75rem;
    }

    .mobile_login_logo {
        width: min(285px, 84vw);
    }

    .login_form {
        width: min(323px, 100%);
        padding: 0.68rem;
    }

    form h1 {
        margin-bottom: 0.75rem;
        font-size: 1.28rem;
    }

    .form_input,
    .login_btn {
        height: 2.7rem;
        min-height: 2.7rem;
        font-size: 0.9rem;
    }

    .remember_label {
        font-size: 0.74rem;
    }

    .login_hint {
        display: block;
        font-size: 0.52rem;
    }

    .service_message p {
        font-size: clamp(1.45rem, 9vw, 1.95rem);
    }

    .service_message span,
    .youtube_link {
        font-size: 1rem;
    }

    .youtube_play {
        width: 1.6rem;
        height: 1.08rem;
        border-radius: 0.28rem;
    }
}
