/* ===== Redesign Layout: ec_arc_login ===== */
:root {
    --ntpc-primary: #5d87a1;
    --ntpc-primary-dark: #4a7089;
    --ntpc-accent: #6aa8c4;
    --ntpc-text: #2f3b45;
    --ntpc-muted: #7a8b9a;
    --ntpc-bg: #f5f7fa;
    --ntpc-card: #ffffff;
    --ntpc-border: #dde5ec;
    --ntpc-soft: #eef3f7;
    --ntpc-soft-blue: #e8f1f7;
    --ntpc-radius: 12px;
    --ntpc-radius-sm: 8px;
    --ntpc-shadow: 0 2px 10px rgba(47, 90, 124, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.loginBody {
    margin: 0;
    min-width: 1000px;
    color: var(--ntpc-text);
    font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
        url(img/loginBackground.png) no-repeat center center;
    background-size: cover;
}

.page-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 0;
}

#mobgBox.login-panel {
    width: 927px;
    min-height: 640px;
    height: auto;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 36px;
    box-shadow: 0 18px 36px rgba(93, 135, 161, 0.25);
}

.login-stage {
    position: relative;
    width: 100%;
    min-height: 640px;
    height: 100%;
    padding: 50px 26px 28px;
    display: flex;
    flex-direction: column;
}

.page-header {
    margin-left: 0;
    text-align: center;
}

.page-title {
    margin: 0;
    color: #41647e;
    font-size: 40pt;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 1px;
}

#selLogin.content-title {
    margin: 34px 0 0;
    color: #373a48;
    font-size: 24pt;
    font-weight: 700;
    line-height: 1.2;
}

.login-options {
    display: flex;
    justify-content: flex-start;
    gap: 34px;
    margin-top: 38px;
    margin-left: 0;
}

.btnBox.login-card {
    position: relative;
    display: block;
    width: 415px;
    height: 170px;
    padding: 24px 24px 18px 24px;
    border-radius: 8px;
    background: #6588a6;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(65, 100, 126, 0.2);
}

.btnBox.login-card:hover,
.btnBox.login-card:focus {
    color: #ffffff;
    text-decoration: none;
}

.titImg {
    position: absolute;
    left: 24px;
    top: 26px;
    width: 74px;
    height: 74px;
}

.titImg > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-copy {
    margin-left: 93px;
    padding-top: 4px;
}

.card-title {
    margin: 0;
    font-size: 24pt;
    font-weight: 700;
    line-height: 1.2;
}

.card-subtitle {
    margin-top: 2px;
    font-size: 18pt;
    font-weight: 700;
    line-height: 1.2;
}

.card-role {
    position: absolute;
    left: 29px;
    bottom: 14px;
    width: 357px;
    color: #ffe8b6;
    font-size: 13pt;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.login-related {
    margin-top: auto;
    padding-top: 36px;
}

.login-related-title {
    margin: 0 0 10px;
    color: var(--ntpc-text);
    font-size: 14pt;
    font-weight: 700;
    line-height: 1.3;
}

.login-related-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-related-left {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.login-related-left a,
.login-related-right a {
    color: var(--ntpc-primary);
    font-size: 12pt;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: underline;
}

.login-related-left a:hover,
.login-related-left a:focus,
.login-related-right a:hover,
.login-related-right a:focus {
    color: var(--ntpc-primary-dark);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    body.loginBody {
        min-width: 0;
    }

    .page-shell {
        display: block;
        padding: 20px 16px;
    }

    #mobgBox.login-panel {
        width: 100%;
        min-height: 0;
        height: auto;
        border-radius: 24px;
    }

    .login-stage {
        min-height: 0;
        padding: 28px 20px 24px;
    }

    .page-title {
        font-size: 24pt;
    }

    #selLogin.content-title {
        margin-top: 14px;
        font-size: 18pt;
    }

    .login-options {
        flex-direction: column;
        gap: 18px;
        margin-top: 20px;
        margin-left: 0;
    }

    .btnBox.login-card {
        width: 100%;
        max-width: 415px;
        margin: 0 auto;
    }

    .login-related {
        padding-top: 28px;
    }

    .login-related-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .login-related-right {
        align-self: flex-end;
    }
}

@media (max-width: 767px) {
    .btnBox.login-card {
        height: auto;
        min-height: 170px;
        padding-bottom: 52px;
    }

    .titImg {
        width: 60px;
        height: 60px;
    }

    .card-copy {
        margin-left: 76px;
    }

    .card-title {
        font-size: 18pt;
    }

    .card-subtitle {
        font-size: 13pt;
    }

    .card-role {
        left: 20px;
        width: calc(100% - 40px);
        font-size: 11pt;
    }
}
