/* CSS Document */

:root {
    --color-btn-std: #3b5842;
	--color-btn-hov: #4d6c57;
	--color-black-a: #141C27;
	--primary-color: #3b5842;
	--secondary-color: #4d6c57;
}

* {
    box-sizing: border-box;
}

body {
    background-color:#515151;
    /*background-image:url(../img/login_bg.jpg);
    background-repeat: no-repeat;
    background-size: 100vw 100vh;*/
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-family: Microsoft JhengHei, sans-serif;
}

h1{
	font-family: Microsoft JhengHei, sans-serif;
	font-size: 1.7em;
	margin: 0;
	font-weight: bold;
	color: #FFFFFF;
	text-align: center;
}

h2{
	font-family: Microsoft JhengHei, sans-serif;
	font-size: 1.5em;
	margin: 0 0 20px 0;
	font-weight: bold;
	text-align: center;
}

t1{
	font-family: Microsoft JhengHei, sans-serif;
	font-size: 1.7em;
}

.login_container{
    max-width: 720px;
    width: 100%;
    padding: 24px 20px;
    margin: 0 auto;
}

.title_box{
    margin: 0 auto 20px auto;
    cursor: pointer;
    text-align: center;
}

.logo_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

img.top_logo{
	max-width: 100%;
	width: 15em;
	height: auto;
	display: block;
}

.login_box{
    background-color: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
    padding: 20px 30px;
    max-width: 600px;
    width: 100%;
    text-align: left;
    border-radius: 3px;
}

.form_group {
    margin-bottom: 16px;
}

.form_group label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    font-family: Microsoft JhengHei, sans-serif;
    color: #333;
}

.copyright_box {
    max-width: 100%;
    width: 100%;
    margin: 16px auto 0 auto;
    color: #999;
    text-align: center;
    font-size: 0.9em;
    line-height: 1.5;
}

input {
    width: 100%;
}

input[type=text], input[type=password] {
	font-family: Microsoft JhengHei, sans-serif;
    width: 100%;
    padding: 12px 15px;
    margin: 0;
    box-sizing: border-box;
	border-radius: 2px;
	border: 1px solid #ddd;
	font-size: 1em;
	transition: border-color 0.3s ease;
}

/* 密碼輸入框容器 */
.password_input_wrapper {
	position: relative;
	width: 100%;
}

/* 密碼輸入框 - 增加右側 padding 為圖示留空間 */
.password_input_wrapper input[type="password"],
.password_input_wrapper input[type="text"] {
	padding-right: 45px;
}

/* 密碼切換按鈕 */
.password_toggle_btn {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 2px;
	transition: background-color 0.2s ease;
	color: #666;
	font-size: 16px;
	line-height: 1;
}

.password_toggle_btn:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.password_toggle_btn:active {
	background-color: rgba(0, 0, 0, 0.1);
}

/* 密碼圖示樣式 - SVG */
.password_icon {
	display: inline-block;
	user-select: none;
	width: 18px;
	height: 18px;
	transition: opacity 0.2s ease;
	color: #666;
	vertical-align: middle;
}

.password_icon.icon_hidden {
	opacity: 0.6;
}

.password_icon.icon_visible {
	opacity: 0.8;
}

input[type=text]:focus, input[type=password]:focus {
    outline: none;
    border-color: var(--primary-color);
}

input[type=button], input[type=submit], input[type=reset], button.button_login {
	width: 100%;
	font-family: Microsoft JhengHei, sans-serif;
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 8px;
    text-decoration: none;
    margin: 10px 0 4px 0;
    cursor: pointer;
	font-size: 1.2em;
	border-radius: 2px;
	transition: background-color 0.3s ease;
}

input[type=button]:hover, button.button_login:hover {
    background-color: var(--secondary-color);
}

input[type=button]:active, button.button_login:active {
    position: relative;
    top: 1px;
}

.form_links {
    text-align: center;
    margin-top: 16px;
    font-size: 0.95em;
}

.form_links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form_links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.link_separator {
    margin: 0 8px;
    color: #999;
}

textarea.textarea_pw{
	height: 60px;
	width: 99%;
	border-radius: 8px;
}

/*附件圖片*/
.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 45%;
    max-width: 100%;
}

.img-left {
    display: block;
    width: 45%;
    max-width: 100%;
}

.img-w100 {
    display: block;
    width: 80%;
    max-width: 100%;
	margin-left: 10%;
}

/* 平板设备 (768px 及以下) */
@media (max-width: 768px) {
    .login_container {
        padding: 20px 16px;
    }
    
    .login_box {
        padding: 20px 20px;
    }
    
    img.top_logo {
        width: 12em;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    input[type=button], input[type=submit], input[type=reset], button.button_login {
        font-size: 1.1em;
        padding: 10px 8px;
    }
}

/* 小屏幕手机 (480px 及以下) */
@media (max-width: 480px) {
    .login_container {
        padding: 16px 12px;
    }
    
    .login_box {
        padding: 16px 16px;
    }
    
    img.top_logo {
        width: 10em;
    }
    
    h1 {
        font-size: 1.3em;
    }
    
    h2 {
        font-size: 1.2em;
        margin-bottom: 16px;
    }
    
    .form_group {
        margin-bottom: 14px;
    }
    
    input[type=text], input[type=password] {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    
    input[type=button], input[type=submit], input[type=reset], button.button_login {
        font-size: 1em;
        padding: 10px 8px;
    }
    
    .form_links {
        font-size: 0.9em;
    }
    
    .copyright_box {
        font-size: 0.85em;
    }
}

/* 超小屏幕手机 (360px 及以下) */
@media (max-width: 360px) {
    .login_container {
        padding: 12px 10px;
    }
    
    .login_box {
        padding: 14px 12px;
    }
    
    img.top_logo {
        width: 8em;
    }
    
    h1 {
        font-size: 1.2em;
    }
    
    h2 {
        font-size: 1.1em;
        margin-bottom: 14px;
    }
    
    .form_group label {
        font-size: 0.95em;
    }
    
    input[type=text], input[type=password] {
        padding: 9px 10px;
        font-size: 0.9em;
    }
    
    input[type=button], input[type=submit], input[type=reset], button.button_login {
        font-size: 0.95em;
        padding: 9px 6px;
    }
}