/* 登入頁標題樣式 */
.login-title-epa {
    margin: 0 0 0.75rem;
    font-family: "Segoe UI", "Noto Sans TC", sans-serif;
    font-size: clamp(2.6rem, 9vw, 4.4rem);
    font-weight: 700;
    /* 字重稍微減輕，更顯溫潤 */
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;

    /* 頂部較亮，底部收在柔和的深灰 */
    background: linear-gradient(180deg, #d4d4d4 0%, #737373 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}


.login-title-epb {
    font-size: 40px;
    opacity: 0.4;
    font-weight: 800;
}

/* 您現有的樣式保持不變 */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.button-33 {
    background-color: #c2fbd7;
    border-radius: 100px;
    box-shadow: rgba(44, 187, 99, .2) 0 -25px 18px -14px inset, rgba(44, 187, 99, .15) 0 1px 2px, rgba(44, 187, 99, .15) 0 2px 4px, rgba(44, 187, 99, .15) 0 4px 8px, rgba(44, 187, 99, .15) 0 8px 16px, rgba(44, 187, 99, .15) 0 16px 32px;
    color: green;
    cursor: pointer;
    display: inline-block;
    font-family: CerebriSans-Regular, -apple-system, system-ui, Roboto, sans-serif;
    padding: 7px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 250ms;
    border: 0;
    font-size: 16px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-33:hover {
    box-shadow: rgba(44, 187, 99, .35) 0 -25px 18px -14px inset, rgba(44, 187, 99, .25) 0 1px 2px, rgba(44, 187, 99, .25) 0 2px 4px, rgba(44, 187, 99, .25) 0 4px 8px, rgba(44, 187, 99, .25) 0 8px 16px, rgba(44, 187, 99, .25) 0 16px 32px;
    transform: scale(1.05) rotate(-1deg);
}

/* EPB 主題（當為 EPB 層級時套用） */
.epb-theme {
    background-color: #ecf0f5;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: normal;
    font-variant: normal;
    color: #758697;
}

/* 針對 input-group 內的錯誤訊息調整樣式 */
.input-group.is-invalid-group .invalid-feedback {
    /* 如果希望錯誤訊息在 input-group 的下方 */
    position: absolute;
    top: 100%;
    /* 將錯誤訊息定位在 input-group 底部 */
    left: 0;
    z-index: 1;
    /* 確保在其他元素之上 */
}

/* 如果想讓整個 input-group 都有紅色邊框，可以這樣做 */
.input-group.is-invalid-group .form-control {
    border-color: #dc3545 !important;
}

.input-group.is-invalid-group .btn-outline-secondary {
    border-color: #dc3545 !important;
    /* 也可以調整按鈕顏色 */
    color: #dc3545 !important;
}

/* 為避免 CSP 封鎖 inline style（style-src-attr），改用 class */

.img-max-68 {
    max-width: 68%;
}

.captcha-img {
    width: 140px;
}

/* 登入中遮罩樣式 */
.login-loading-overlay {
    position: absolute;
    top: -1rem;
    left: -1rem;
    right: -1rem;
    bottom: -1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    pointer-events: all;
}

.login-loading-overlay .spinner-border {
    width: 2.75rem;
    height: 2.75rem;
}

.login-loading-text {
    margin-top: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

@media (max-width: 576px) {
    .login-title-epa {
        letter-spacing: 0.14em;
    }
}
