/* === Frontend 共用內容樣式 body.css === */

/* 基本設定 */
body {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

/* 主要內容區 */
main.content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 標題樣式 */
h1, h2, h3, h4 {
    color: #8B0000;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* 分隔線 */
hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

/* 段落文字 */
p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #333;
}

/* 超連結樣式 */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #8B0000;
    text-decoration: none;
}

/* 清單樣式 */
ul, ol {
    margin: 10px 0 20px 20px;
    padding: 0;
    line-height: 1.8;
}
li {
    margin-bottom: 6px;
}

/* 表格樣式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    border: 1px solid #ddd;
    padding: 10px;
}
th {
    background-color: #8B0000;
    color: #fff;
    font-weight: 600;
}

/* 響應式調整 */
@media (max-width: 768px) {
    main, .content, .page-body {
        margin: 20px auto;
        padding: 0 15px;
    }
    h2 {
        font-size: 1.4rem;
    }
    p {
        font-size: 0.95rem;
    }
}

/* === 全站表格樣式（統一公告 / 課程 / 法規）=== */
.table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    background-color: #fff;
}

/* === 表頭樣式 === */
.table thead {
    background-color: #8B0000; /* ✅ 深紅底色 */
}

.table thead th {
    color: #fff;               /* ✅ 白色文字 */
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #7a0000; /* 邊框稍暗一點，維持層次 */
    background-color: #960c0c;
}

/* === 內容區 === */
.table tbody td {
    padding: 10px 15px;
    border: 1px solid #ddd;
    color: #333;
    vertical-align: middle;
}

/* === 斑馬紋效果 === */
.table tbody tr:nth-child(odd) {
    background-color: #ffffff; /* 奇數列 白底 */
}
.table tbody tr:nth-child(even) {
    background-color: #f9f2f2; /* 偶數列 淺粉底 */
}

/* === Hover 效果（整列變色）=== */
.table tbody tr {
    transition: background-color 0.25s ease;
}
.table tbody tr:hover {
    background-color: #ffeaea; /* 淡紅高亮 */
}

/* === RWD 手機版調整 === */
@media (max-width: 768px) {
    .table th,
    .table td {
        font-size: 14px;
        padding: 8px;
    }
}

/* === 學員登入頁樣式 === */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 75vh; /* 頁面垂直置中 */
    padding: 60px 20px;
    background: #faf7f2;
}

/* 登入框 */
.login-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 40px 50px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 標題 */
.login-box h2 {
    text-align: center;
    color: #8B0000;
    font-weight: 700;
    margin-bottom: 25px;
}

/* 表單欄位 */
.login-box label {
    font-weight: 600;
    color: #333;
}

/* 表單欄位統一設定 */
.login-box input[type="email"],
.login-box input[type="password"],
.login-box input[type="text"],
.login-box input[type="date"], /* ✅ 加入這一行：修正生日欄位 */
.login-box select              /* ✅ 加入這一行：修正下拉選單，讓它跟輸入框一樣長 */
{
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    background-color: #fff; /* 確保背景是白的 */
    box-sizing: border-box; /* 確保 padding 不會撐破寬度 */
}

.login-box input:focus {
    border-color: #8B0000;
    outline: none;
}

/* 登入按鈕 */
.login-box button {
    background-color: #8B0000;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.login-box button:hover {
    background-color: #a30b0b;
}

/* 訊息樣式 */
.login-box p {
    text-align: center;
    font-size: 14px;
}

.login-box p.error {
    color: #cc0000;
}

.login-box p.success {
    color: #2e8b57;
}

/* === RWD === */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 25px;
    }
}


/* === 會員登入｜註冊整合版 === */

/* 讓整個區塊置中 */
.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background: #faf7f2;
}

/* 雙欄排列 */
.dual-box {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    width: 100%;
    justify-content: center;
}

/* 左右欄寬度 */
.login-left,
.login-right {
    flex: 1;
    max-width: 500px;
}

/* RWD：小螢幕改為上下排列 */
@media (max-width: 768px) {
    .dual-box {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .login-left,
    .login-right {
        max-width: 100%;
    }
}


/* 修改這個 class */
.single-box {
    width: 100%;
    max-width: 600px; 
    margin: 0 auto; /* 確保置中 */
}

.modal-footer-bt-area {
    padding-bottom: 30px;
    margin-right: 20px;
}