/* 基礎頁面設置 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

/* LOGIN FORM */
.login {
    background-image: url('/static/images/1920X1080_1_0.jpg');
    height: auto;
}

.login #header {
    background: #0ba2cd; 
    height: auto;
    padding: 15px 16px;
    justify-content: center;
    z-index: 0;
}

.login #header h1 {
    font-size: 1.125rem;
    margin: 0;
}

.login #header h1 a {
    color: var(--header-link-color);
}

.login #content {
    /*height: calc(100vh - 200px);*//*kuoc 20241107*/
    overflow-y: auto;
    padding: 16px 32px;/*penny edit 20241211*/
    box-sizing: border-box;
}
.login #content-main {gap: 1rem;}/*penny add 20241211*/

.login #container {
    border: 2px solid var(--hairline-color);
    border-radius: 12px;
    overflow: hidden;
    width: 50em;
    min-width: 300px;
    /*margin: 100px auto;*//*kuoc 20241107*/
    margin:50px auto;/*kuoadd 20241107*/
    /*height: 38.5em;*//*kuoc 20241107*/
}

/* Form Styles */
.form-row {
    margin-bottom: 16px;/*(20px)penny edit 20241211*/
    display: flex;
    flex-direction: column;
    padding: 0px 24px;/*(4px 27px)penny edit 20241211*/
    text-align: left;
}

.form-row label {
    display: inline-block;
    line-height: 1.75rem;/*penny edit 20241211*/
    width: 9rem;
    font-size: 1.5rem;/*penny edit 20241211*/
    text-align-last: justify;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-row input {
    font-size: 1.5rem;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* Submit Row */
.login .submit-row {
    /* margin-top: 20px; */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;              /* 元素之間的間距 */
    /* padding: 1em 0 0 0; *//*penny cm 20241211*/
    text-align: center;
    flex-direction: column;/*penny add 20241211*/
}

.submit-row input {
    font-size: 1.4rem;/*kuomod 1.5rem 20241107*/
    width: auto;            /* 讓按鈕寬度符合內容 */
    min-width: 100px;       /* 設定最小寬度 */
    padding: 8px 20px;      /* 增加按鈕內部間距 */
    cursor: pointer;        /* 滑鼠移過時顯示指針 */
}

.submit-row a {
    font-size: 1.0rem;
    color: #0c89c3;
    font-weight: bold;
    /* vertical-align: middle; */
}

.submit-row a:hover {
    color: #00364f;
    border-bottom: 1px solid;
}

/* Tab System */
.tab {
    display: none;
}

.tab.active {
    display: block;
}

.tab-control {
    font-weight: bold;
    font-size: 1.875rem;/*(old:2rem)penny edit 20241211*/
    cursor: pointer;
    padding: 4px 8px;/*(old:5px)penny edit 20241211*/
    display: inline-block;
    margin: 0px;
    border-radius: 10px 10px 0px 0px;
    /* border: 2px solid #ccc; */
    border: 2px solid #ccc;
    border-bottom: none;
}

.tab-container {
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    margin: 0px;
    border-bottom: 2px solid #ccc;
}

.tab-container .tab-control.active {
    /* text-shadow: 1px 1px #aaa9a9; */
    text-shadow: 1px 1px 1px #575757;/*penny edit 20241211*/
    /* padding-right: 12px; */
    /* background-color: #0c89c3; */
    background-color: var(--secondary);/*penny edit 20241211*/
    font-weight: bold;
    color: #fff;
}

/* Sub Tab System */
.sub-tab {
    display: none;
    flex-direction: column; /* yisheng add 20241107*/
    padding: 20px; /* yisheng add 20241107*/
    background-color: var(--body-bg);/*(old:#fff) yisheng add 20241107*//*penny edit 20241210*/
}

.sub-tab.active {
    /* display: block; */ /* yisheng del 20241107*/
    display: flex;/* yisheng add 20241107*/
    border: 2px solid #025981;
    border-radius: 5px;/*penny add 20241211*/
    /* margin-left: 1px; */ /* yisheng del 20241107*/
    /* margin: 0 20px;yisheng add 20241107 */
    /* margin-top: 10px;yisheng add 20241107 */
}

.sub-tab-container {
    overflow-x: auto;
    white-space: nowrap;
    /* padding-top: 3px; */
    text-align: left;
}

.sub-tab-control {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 16px;/*(old:0px 20px)penny edit 20241211*/
    border-radius: 4px;/*penny add 20241211*/
    display: inline-block;
    /* margin: 0px 3px; */
    white-space: nowrap;
    text-shadow: 1px 1px 1px #bbbbbb;
    font-weight: bold;
}

.sub-tab-container .sub-tab-control.active {
    background-color: #025981;
    color: #fff;
    text-shadow: 1px 1px 1px #5a5a5a;
}

/* .sub-tab label {
    font-size: 1.0em;
} *//*penny cm 20241211*/

.sub-tab form {
    padding: 2px;
}

/* Mail OTP 特定樣式 */ /* yisheng add 20241107*//*penny cm 20241211*/
/* #subtab-mail_login .form-row {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    padding: 4px 27px;
    text-align: left;
}

#subtab-mail_login .form-row label {
    display: inline-block;
    line-height: 2em;
    width: 9rem;
    font-size: 1.0rem;
    text-align-last: justify;
    margin-bottom: 5px;
    font-weight: bold;
}

#subtab-mail_login .form-row input {
    font-size: 1.5rem;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

#subtab-mail_login #get_email_otp_link {
    font-size: 1.5rem;
    color: red;
    text-decoration: none;
    margin-top: 5px;
}

#subtab-mail_login #get_email_otp_link:hover {
    color: darkred;
    font-weight: bold;
    text-decoration: underline;
} */

/* Links */
#id_register_link, #get_email_otp_link {
    font-size: 1.5rem;
    color: red;
}

#id_register_link:hover, #get_email_otp_link:hover {
    color: darkred;
    font-weight: bold;
    text-decoration: underline;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px; /* yisheng fix 20241107*/ /* 20px->30px */
    border-radius: 8px;
    max-width: 25%;
    max-height: 80vh;
    overflow-y: auto;
    margin: 20px auto;
    position: relative; /* yisheng add 20241107*/
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* yisheng add 20241107*/
}

.close-button {
    /* float: right; */ /* yisheng del 20241107*/
    cursor: pointer;
    font-size: 24px;
    position: absolute; /* yisheng add 20241107*/
    top: 10px; /* yisheng add 20241107*/
    right: 15px; /* yisheng add 20241107*/
    color: #666; /* yisheng add 20241107*/
}

.close-button:hover {
    color: #000; /* yisheng add 20241107*/
}

/* Scrollbar */
#content::-webkit-scrollbar {
    width: 8px;
}

#content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/*kuoadd 20241210 app qrcode*/
/* #appqrcode{font-size:1.2rem;vertical-align:middle;display:inline-block;}#appqrcode a{margin-left:3px;margin-right:3px;vertical-align:middle;}#appqrcode img{width:100px;box-shadow:0 0 2px #000;} */
#appqrcode{font-size:1.2rem;display: flex;align-items: center;gap: 1rem;}#appqrcode img{width:100px;box-shadow:0 0 2px #000;}

/* yisheng app 20241229 */
/* 密碼輸入框容器 */
.password-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* 密碼輸入框 */
input[type="password"] {
    width: 100%;
    padding: 8px;
    padding-right: 35px;  /* 為圖示留出空間 */
    box-sizing: border-box;
}

/* 密碼切換圖示 */
.password-toggle-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1;
    color: #666;
}

/* 忘記密碼連結 */
.forget-password {
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

.otp-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.otp-password-toggle-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}