.ls-login-page {
    --ls-login-teal: #13aeb3;
    --ls-login-teal-dark: #0b5f64;
    --ls-login-muted: #c9c9c9;
    min-height: calc(100vh - 50px);
    margin-top: -12px;
    position: relative;
    overflow: hidden;
    background: #061629 url("../images/login/login_bg.png") center center / cover no-repeat;
    font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
    color: var(--ls-login-teal-dark);
}

.ls-login-home {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 150px;
    height: 130px;
    display: block;
    background-image: url("../images/login/gohome_normal1.png");
    background-size: 100% 100%;
    border: 0;
    animation: ls-home-blink 1.6s steps(1, end) infinite;
}

.ls-login-home:hover {
    background-image: url("../images/login/gohome_hover.png");
    animation: none;
}

.ls-login-home:active {
    background-image: url("../images/login/gohome_active.png");
    animation: none;
}

.ls-login-space {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ls-login-space img {
    position: absolute;
    display: block;
    object-fit: contain;
    user-select: none;
}

.ls-login-space__earth {
    left: clamp(-105px, -5vw, -48px);
    bottom: clamp(-100px, -6vw, -48px);
    width: clamp(310px, 28vw, 500px);
}

.ls-login-space__oscar {
    left: clamp(65px, 8vw, 160px);
    bottom: clamp(35px, 6vh, 90px);
    width: clamp(150px, 14vw, 230px);
}

.ls-login-space__ufo--large {
    left: 28%;
    top: 13%;
    width: clamp(90px, 8vw, 140px);
}

.ls-login-space__ufo--small {
    left: 48%;
    top: 7%;
    width: clamp(72px, 6vw, 112px);
}

.ls-login-space__planet--moon {
    left: 42%;
    bottom: 4%;
    width: clamp(115px, 13vw, 220px);
}

.ls-login-space__planet--blue {
    left: 9%;
    top: 12%;
    width: clamp(78px, 7vw, 125px);
}

.ls-login-space__planet--brown {
    left: 25%;
    top: 43%;
    width: clamp(108px, 11vw, 190px);
}

.ls-login-space__planet--red {
    left: 55%;
    top: 31%;
    width: clamp(72px, 6vw, 112px);
}

.ls-login-space__astronaut {
    left: 51%;
    bottom: 9%;
    width: clamp(85px, 8vw, 135px);
    transform: rotate(-7deg);
}

.ls-login-space__rocket {
    right: 3%;
    bottom: 5%;
    width: clamp(90px, 8vw, 140px);
    transform: rotate(-10deg);
}

@keyframes ls-home-blink {
    0%, 49% {
        background-image: url("../images/login/gohome_normal1.png");
    }

    50%, 100% {
        background-image: url("../images/login/gohome_normal2.png");
    }
}

.ls-login-stage {
    position: relative;
    z-index: 1;
    width: min(100%, 1480px);
    min-height: calc(100vh - 50px);
    margin: 0 auto;
    padding: 72px 48px 54px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.ls-login-card {
    position: relative;
    width: min(100%, 560px);
    min-height: 500px;
    margin-right: clamp(20px, 7vw, 120px);
    padding: 64px 72px 54px;
    background: #fff;
    border: 8px solid var(--ls-login-teal);
    border-radius: 0 52px 52px 52px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, .08);
}

.ls-login-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 181px;
    left: -14px;
    top: -68px;
    background: url("../images/login/login01.png") center / contain no-repeat;
    pointer-events: none;
}

.ls-login-card::after {
    content: "";
    position: absolute;
    width: 88px;
    height: 97px;
    right: -42px;
    top: 58%;
    background: url("../images/login/login02.png") center / contain no-repeat;
    pointer-events: none;
}

.ls-login-card__title {
    margin: 0 0 70px;
    text-align: center;
    color: var(--ls-login-teal-dark);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .65em;
    text-indent: .65em;
}

.ls-login-field {
    margin-bottom: 16px;
}

.ls-login-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ls-login-teal-dark);
    font-size: 18px;
    font-weight: 700;
}

.ls-login-input-wrap {
    height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 2px solid #c8c8c8;
    border-radius: 999px;
    background: #fff;
}

.ls-login-input-wrap:focus-within {
    border-color: var(--ls-login-teal);
    box-shadow: 0 0 0 4px rgba(19, 174, 179, .14);
}

.ls-login-input-wrap img {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.ls-login-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
}

.ls-login-input::placeholder {
    color: #c9c9c9;
    font-weight: 600;
}

/* Edge/IE provides its own reveal control. The page already has a designed one. */
.ls-login-input::-ms-reveal,
.ls-login-input::-ms-clear {
    display: none;
}

.ls-login-password-toggle {
    width: 32px;
    height: 32px;
    padding: 0;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ls-login-password-toggle img {
    width: 30px;
    height: 30px;
}

.ls-login-account-text {
    margin: -24px 0 24px;
    color: var(--ls-login-teal-dark);
    font-size: 17px;
    font-weight: 700;
}

.ls-login-message {
    min-height: 28px;
    margin: 10px 0 24px;
    text-align: center;
    color: var(--ls-login-teal);
    font-size: 18px;
    font-weight: 800;
}

.ls-login-message.is-error {
    color: var(--ls-login-teal);
}

.ls-login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
}

.ls-login-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ls-login-teal-dark);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.ls-login-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ls-login-check__box {
    width: 30px;
    height: 30px;
    display: inline-block;
    border: 2px solid var(--ls-login-teal-dark);
    background: #fff;
}

.ls-login-check input:checked + .ls-login-check__box {
    border: 0;
    background: url("../images/login/login_select1.svg") center / contain no-repeat;
}

.ls-login-button {
    min-width: 116px;
    height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--ls-login-teal);
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .35em;
    text-indent: .35em;
    cursor: pointer;
}

.ls-login-button:hover:not(:disabled) {
    box-shadow: 0 0 0 4px #ffff00;
}

.ls-login-button:active:not(:disabled) {
    background: #05838a;
    box-shadow: none;
}

.ls-login-button:disabled {
    background: #c8f0f2;
    color: #fff;
    cursor: default;
}

.ls-login-link {
    color: var(--ls-login-teal-dark);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.ls-login-link:hover {
    color: var(--ls-login-teal);
}

.ls-login-modal .modal-content {
    border: 6px solid var(--ls-login-teal);
    border-radius: 0 34px 34px 34px;
    color: var(--ls-login-teal-dark);
}

.ls-login-modal .modal-title {
    font-weight: 800;
}

@media (max-width: 1023px) {
    .ls-login-stage {
        padding: 76px 28px 44px;
        justify-content: center;
    }

    .ls-login-card {
        margin-right: 0;
    }

    .ls-login-space__rocket,
    .ls-login-space__planet--red,
    .ls-login-space__ufo--small {
        display: none;
    }
}

@media (max-width: 640px) {
    .ls-login-home {
        width: 90px;
        height: 78px;
    }

    .ls-login-stage {
        padding: 120px 14px 28px;
        align-items: flex-start;
    }

    .ls-login-space__earth {
        left: -82px;
        bottom: -40px;
        width: 245px;
    }

    .ls-login-space__oscar {
        left: 20px;
        bottom: 24px;
        width: 112px;
    }

    .ls-login-space__ufo--large {
        left: 8%;
        top: 36px;
        width: 82px;
    }

    .ls-login-space__planet--blue {
        left: auto;
        right: 12px;
        top: 90px;
        width: 72px;
    }

    .ls-login-space__planet--moon,
    .ls-login-space__planet--brown,
    .ls-login-space__astronaut {
        display: none;
    }

    .ls-login-card {
        min-height: 0;
        padding: 52px 24px 30px;
        border-width: 6px;
        border-radius: 0 34px 34px 34px;
    }

    .ls-login-card::before {
        width: 112px;
        height: 136px;
        top: -52px;
    }

    .ls-login-card::after {
        width: 64px;
        height: 70px;
        right: -18px;
        top: 58%;
    }

    .ls-login-card__title {
        margin-bottom: 48px;
        font-size: 25px;
    }

    .ls-login-input-wrap {
        height: 50px;
        padding: 0 14px;
    }

    .ls-login-input,
    .ls-login-label,
    .ls-login-message,
    .ls-login-link,
    .ls-login-check {
        font-size: 16px;
    }

    .ls-login-actions {
        gap: 12px;
    }

    .ls-login-button {
        min-width: 104px;
        height: 46px;
        padding: 0 22px;
        font-size: 17px;
    }
}

.ls-checkin-card {
    width: min(100%, 520px);
    min-height: 500px;
    padding: 40px 50px 50px;
    border-width: 10px;
}

.ls-checkin-card::before {
    width: 90px;
    height: 100px;
    left: -20px;
    top: -30px;
    background-image: url("../images/login/login03.png");
}

.ls-checkin-card::after {
    content: none;
}

.ls-checkin-panel {
    display: none;
}

.ls-checkin-panel.is-active {
    display: block;
}

.ls-checkin-greeting {
    margin: 0 0 18px;
    text-align: center;
    color: var(--ls-login-teal-dark);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.55;
}

.ls-checkin-message {
    min-height: 22px;
    margin-bottom: 8px;
    text-align: center;
    color: var(--ls-login-teal);
    font-size: 14px;
    font-weight: 700;
}

.ls-checkin-fields {
    display: grid;
    gap: 12px;
}

.ls-checkin-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.ls-checkin-row .ls-login-label {
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 700;
}

.ls-checkin-input,
.ls-checkin-select {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 2px solid var(--ls-login-teal);
    border-radius: 999px;
    background-color: #fff;
    color: #000;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    outline: none;
}

.ls-checkin-input::placeholder {
    color: var(--ls-login-muted);
}

.ls-checkin-input[readonly],
.ls-checkin-select:disabled {
    color: #155a61;
    background-color: #f7fbfb;
    opacity: 1;
}

.ls-checkin-select {
    padding-right: 44px;
    appearance: none;
    background-image: url("../images/login/icon_menudown_normal.svg");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px 24px;
    color: var(--ls-login-teal);
}

.ls-checkin-select:hover:not(:disabled) {
    background-image: url("../images/login/icon_menudown_hoverl.svg");
}

.ls-checkin-select:focus:not(:disabled) {
    box-shadow: 0 0 0 4px rgba(19, 174, 179, .14);
}

.ls-checkin-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ls-checkin-select--wide {
    grid-column: auto;
}

.ls-checkin-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
}

.ls-checkin-privacy,
.ls-checkin-submit,
.ls-privacy-agree {
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
}

.ls-checkin-privacy {
    width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    background: var(--ls-login-teal);
}

.ls-checkin-privacy img {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
}

.ls-checkin-privacy:hover,
.ls-checkin-submit:hover:not(:disabled),
.ls-privacy-agree:hover:not(:disabled) {
    box-shadow: 0 0 0 4px #ffff00;
}

.ls-checkin-privacy:active,
.ls-privacy-agree:active:not(:disabled) {
    background: #018188;
    box-shadow: none;
}

.ls-checkin-submit {
    width: 180px;
    background: #c4bd97;
}

.ls-checkin-submit:active:not(:disabled) {
    background: #a99b50;
    box-shadow: none;
}

.ls-checkin-submit:disabled,
.ls-privacy-agree:disabled {
    opacity: .25;
    cursor: default;
}

.ls-checkin-hint {
    width: 220px;
    margin-top: 6px;
    text-align: center;
    color: #666;
    font-size: 12px;
    line-height: 1.3;
}

.ls-privacy-panel {
    position: relative;
}

.ls-privacy-panel .ls-login-card__title {
    margin-bottom: 22px;
}

.ls-privacy-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border: 0;
    background: url("../images/login/closepanel_normal.svg") center / contain no-repeat;
    cursor: pointer;
}

.ls-privacy-close:hover {
    background-image: url("../images/login/closepanel_hover.svg");
}

.ls-privacy-close:active {
    background-image: url("../images/login/closepanel_active.svg");
}

.ls-privacy-body {
    height: 300px;
    overflow-y: auto;
    padding-right: 16px;
    color: var(--ls-login-teal-dark);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.65;
    outline: none;
}

.ls-privacy-body p {
    margin: 0 0 18px;
}

.ls-privacy-agree {
    width: 220px;
    display: block;
    margin: 20px auto 0;
    background: var(--ls-login-teal);
}

@media (max-width: 640px) {
    .ls-checkin-card {
        width: min(100%, 330px);
        min-height: 560px;
        padding: 40px 30px;
        border-width: 7px;
    }

    .ls-checkin-card::before {
        width: 63px;
        height: 70px;
        left: -10px;
        top: -20px;
    }

    .ls-checkin-greeting,
    .ls-checkin-row .ls-login-label,
    .ls-checkin-input,
    .ls-checkin-select {
        font-size: 16px;
    }

    .ls-checkin-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .ls-checkin-input,
    .ls-checkin-select {
        height: 40px;
        padding: 0 16px;
    }

    .ls-checkin-actions {
        flex-direction: column;
        align-items: center;
        margin-top: 22px;
    }

    .ls-checkin-submit {
        width: 220px;
    }

    .ls-privacy-body {
        height: 340px;
        font-size: 16px;
    }
}
