/* ============================================================
 * 登入頁樣式 (由內聯 <style> / style="" 外部化而來)
 * 目的：使登入頁不需 CSP 的 style-src 'unsafe-inline' 亦能正常顯示
 * 來源：common/login/body.php、common/login/loginbox.php
 * ============================================================ */

/* ---- 版面 (原 body.php <style>) ---- */
h3, h4 {
    font-family: '微軟正黑體', "Microsoft JhengHei";
}

ul li {
    font-size: 15px;
}

.light-login {
    /* 相對於本 css 檔位置 resource/assets/css/ */
    background: url(images/pattern-2fu4.png) !important;
}

.main-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.main-content {
    margin-left: 0;
    width: 100%;
    max-width: 450px;
}

.login-container {
    margin-top: 15vh;
}

/* ---- 登入框 (原 loginbox.php <style> 及 style="") ---- */
a {
    color: #428bca;
    text-decoration: none;
}

a:hover {
    color: #3071a9;
    text-decoration: none;
}

.alert {
    padding: 5px !important;
}

.important_color {
    color: #f00;
}

#login-box {
    width: 380px;
}

.login-box .widget-main {
    padding: 12px;
}

.input-icon > .ace-icon {
    top: 3px;
}

/* teacher 登入頁社群/公告連結行高 (原 teacher loginbox <style>) */
.social-login a {
    line-height: 25px !important;
}

/* logo 區塊 (原 loginbox.php 行36 inline style) */
.login-logo-wrap {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* 驗證碼圖片 (原 #captcha_img 與行73 inline style 合併) */
#captcha_img {
    position: static;
    border: 1px solid #CCCCCC;
    width: 130px;
    height: 35px;
    flex: 0 0 130px;
    display: block;
}

/* 驗證碼輸入框 (原行74 inline style) */
.captcha-row {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.login-captcha-input {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    float: none;
}

/* 系統公告連結 (原行100 inline style) */
.login-news-more {
    font-size: 17px;
}

/* 公告清單 (原 .news 與行126 inline style 合併) */
.news {
    margin: 0px 0px 0px 3px !important;
    padding: 0;
    list-style: none;
}

.news a {
    font-size: 13px;
}

/* 公告項目 (原行141 inline style) */
.news-item {
    margin: 0px;
    padding: 0px;
}

/* 聯絡資訊區塊 (原行160 inline style) */
.login-contact {
    width: 100%;
    margin-top: 30px;
}
