﻿
/* 因 CSP 規範將 inline style 拆離之獨立 CSS 檔 */
/* ==========================================================================
                    Home/Index 頁面專用樣式表
   ========================================================================== */

/* --------------------------------------------------------------------------
   原有的主區塊樣式
   -------------------------------------------------------------------------- */

#mainFunction img {
    min-width: 4rem;
    min-height: 4rem;
    width: 70%;
}

#mainFunction p {
    font-size: 1.5rem; /* 約 24px */
    font-weight: bolder;
    color: black;
    margin: 5px 0;
}

#mainFunction .FunctionBtn {
    background-color: #95d2d7;
    padding: 5px 10px;
    margin: 10px 0px;
    border-radius: 10px;
    cursor: pointer;
}

#mainFunction .FunctionBtn a {
    min-height: 5rem;
    text-decoration: none;
}

#mainFunction .imgShape {
    width: 8rem;
    min-width: 8rem;
    height: 8rem;
    min-height: 8rem;
    border-radius: 50%;
    background-color: #e8ebef;
    padding: 2%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mainMessage table tr {
    border-top: none;
    border-bottom: 1px dashed #ababab;
}

#mainMessage table td {
    border: none;
}

#mainMessage p {
    font-size: large;
    font-weight: bolder;
    color: #1976d2;
}

@media screen and (min-width:768px) {
    #mainMessage p {
        font-size: medium;
    }

    #mainFunction .FunctionBtn {
        width: 30% !important;
    }

    #mainFunction .row > div:nth-child(1) {
        margin: 10px 0 10px 0;
    }

    /* 針對中間第二格維持原本的左右 4% */
    #mainFunction .row > div:nth-child(2) {
        margin: 10px 4%;
    }

    /* 針對右邊第三格微調左邊距 */
    #mainFunction .row > div:nth-child(3) {
        margin: 10px 0 10px 0;
    }

    #mainFunction img {
        min-width: 2rem;
        min-height: 2rem;
    }

    #mainFunction .imgShape {
        width: 4rem;
        min-width: 4rem;
        height: 4rem;
        min-height: 4rem;
    }
}

@media screen and (min-width:992px) {
    #mainFunction img {
        min-width: 4rem;
        min-height: 4rem;
    }

    #mainFunction .imgShape {
        width: 8rem;
        min-width: 8rem;
        height: 8rem;
        min-height: 8rem;
    }
}

#mainMessage span {
    color: #b0b0b0;
    border-radius: 50%;
    font-size: 5.3125em;
    display: block;
    margin: auto;
}

#mainMessage .list-item {
    list-style: none;
}

#mainMessage .focus p,
#mainMessage .focus span {
    color: #004a73;
}

#mainMessage .list-item div:hover p,
#mainMessage .list-item div:hover span {
    color: #004a73;
}

#loginMask {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #00000068;
    font-size: 24px;
    display: none; /* 預設隱藏，由 JS 切換 d-flex */
}

#loginMask > div:first-child {
    min-width: 300px;
    width: 50%;
    min-height: 250px;
    height: 40%;
    background-color: whitesmoke;
    border-radius: 10px;
}

.my-grid-layout {
    display: grid !important;
    grid-template-columns: 66% 34% !important; /* 電腦版強制 66 : 34 */
    gap: 20px !important; /* 左右兩區的間距 */
    align-items: stretch !important; /* 強制兩邊高度絕對等高 */
}

.btnproa {
    transition: filter 0.25s ease-in-out !important;
}

.btnproa:hover {
    cursor: pointer;
    filter: brightness(1.1);
}

.login-bottom-link {
    transition: opacity 0.2s ease-in-out;
}

.login-bottom-link:hover {
    opacity: 0.7;
}

/* --------------------------------------------------------------------------*/
.banner-container, .msg-ul {
    padding: 0 !important;
}

.msg-ul{
    margin-top: 50px;
}

.index-container {
    margin: auto;
}

.fn-col-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.fn-row-custom {
    margin: 0 50px 0px auto;
    padding: 0;
}

.fn-row-margin-bottom {
    margin-bottom: 20px;
    margin: auto;
}

#mainFunction .FunctionBtn.fn-btn-40 {
    width: 40% !important;
    margin: 0 !important;
}

.fn-link-padding {
    padding: 10px 0;
}

.fn-text-ps {
    padding-left: 10px;
}

.text-nowrap {
    font-size: 20px !important;
}

.img-shape-50 {
    width: 50% !important;
}

.login-box-wrapper {
    background-color: #e5e5e5;
    border-radius: 15px;
    padding: 15px 15px 25px 15px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.login-box-header {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 2.5rem;
    color: #1e3a47;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-box-header-icon {
    font-size: 1.6rem;
}

.login-box-card {
    background-color: #73c0c2;
    border-radius: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.login-tabs {
    display: flex;
    margin-bottom: 0;
    font-weight: bold;
    font-size: 1.65rem;
    user-select: none;
}

.login-tab-member {
    flex: 1;
    text-align: center;
    padding: 14px 5px;
    background-color: #aedce1;
    color: #1a4f50;
    font-weight: bold;
    cursor: pointer;
    border-top-left-radius: 10px;
    transition: all 0.2s ease;
    font-size: 20px;
}

.login-tab-organ {
    flex: 1;
    text-align: center;
    padding: 14px 5px;
    background-color: #aa8e65;
    color: #fde3a4;
    font-weight: normal;
    cursor: pointer;
    border-top-right-radius: 10px;
    transition: all 0.2s ease;
    font-size: 20px;
}

.login-form-custom {
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 25px 15px 20px 15px;
    background-color: #aedce1;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.form-field-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row-custom {
    display: flex;
    align-items: center;
    width: 100%;
}

.form-row-center {
    display: flex;
    align-items: center;
    width: 100%;
}

.form-label-col {
    width: 42px;
    flex-shrink: 0;
    text-align: right;
    margin-right: 10px;
}

.form-label-text {
    font-weight: bold;
    font-size: 1.8rem;
    white-space: nowrap;
    margin: 0;
    position: relative;
    left: -8px;
}

.form-input-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-input-col-gap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.form-control-login-full {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.8rem;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.05);
    background-color: #fff;
}

.validation-msg-custom {
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin-top: 2px;
}

.pwd-hint-custom {
    width: 100%;
    font-size: 1.6rem;
    font-weight: bold;
    display: block;
    margin-top: -10px;
}

.vcode-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 6px;
}

.vcode-input-custom {
    flex: 1.2;
    min-width: 0;
    padding: 10px 12px;
    border: none;
    border-radius: 5px;
    font-size: 1.5rem;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.05);
    background-color: #fff;
}

.vcode-img-custom {
    width: auto !important;
    border-radius: 5px;
    cursor: pointer;
    object-fit: contain;
    background: #fff;
}

.vcode-audio-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.vcode-audio-icon {
    font-size: 2rem;
    color: #1e3a47;
}

.vcode-iframe-hidden {
    height: 0;
    width: 0;
    border: 0;
    display: none;
}

.noscript-msg-custom {
    color: red;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

.login-submit-btn {
    flex-grow: 1;
    background: linear-gradient(180deg, #fbc02d, #f57f17);
    color: #fff;
    margin: 10px auto 0 auto;
    border: none;
    font-weight: bold;
    padding: 10px;
    border-radius: 25px;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    outline: none;
    transition: all 0.2s;
    width:100%;
}

.login-divider-line {
    width: 100%;
    height: 1px;
    background-color: currentColor;
    opacity: 0.25;
    margin-top: 25px;
}

.login-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.login-bottom-link-custom {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.login-link-sep {
    display: inline-block;
    width: 1px;
    height: 14px;
    background-color: currentColor;
    opacity: 0.25;
    flex-shrink: 0;
}

.forgot-id-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tab-btn-inline {
    display: inline-block;
    cursor: pointer;
    font-size: 20px !important;
}

.tab-title {
    font-size:24px !important;
}

.pos-relative {
    position: relative;
}

.mask-close-btn {
    position: absolute !important;
    top: 0;
    right: 0;
    margin: 0.5rem 1rem;
    cursor: pointer;
}

.mask-text-item {
    margin: 10px;
    font-size: 1.875rem;
}

.mask-btn-area {
    height: 50%;
    align-self: end;
}

.mask-btn-nowrap {
    text-wrap: nowrap;
}

.mask-link-item {
    vertical-align: middle;
    height: 50%;
    width: 100%;
}

@media screen and (max-width: 992px) {
    /* 覆蓋原本的 66% 34% */
    .my-grid-layout {
        grid-template-columns: 100% !important;
        gap: 25px !important;
    }

        .my-grid-layout > div:nth-child(1) {
            order: 2; /* 第一個子容器（六大功能）排到下方 */
        }

        .my-grid-layout > div:nth-child(2) {
            order: 1; /* 第二個子容器（登入區塊）排到上方 */
        }

    #mainFunction .FunctionBtn.fn-btn-40 {
        width: 100% !important;
        padding: 0 10px;
        margin: 10px 40px !important;
    }
    .login-box-wrapper {
        margin:auto;
        width: calc(100% - 60px);
    }
    .vcode-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .vcode-input-custom {
        flex: 1 1 100px;
        min-width: 0;
    }
}