body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* 使用 min-height 以確保內容不足時也能垂直置中 */
    margin: 0;

    /* --- 背景圖片設定 --- */
    background-image: url('BODY.png'); /* <-- 請確保圖片路徑正確 */
    background-color: #828489;          /* 圖片載入失敗時的備用灰色 */
    background-size: cover;             /* 縮放圖片以完全覆蓋背景 */
    background-repeat: no-repeat;       /* 圖片不重複 */
    background-position: center center;   /* 圖片置中 */
    background-attachment: fixed;       /* 背景圖片固定 (可選) */
    /* --- 背景圖片設定結束 --- */
}

.container {
    width: 400px;
    padding: 30px; /* 增加 padding 使框架看起來更寬敞 */
    /* background-color: white; */ /* 原本的白色背景 */
    background-color: rgba(255, 255, 255, 0.8); /* 改成半透明白色，讓背景圖透出來 */
    border-radius: 10px; /* 增加 border-radius 使框架看起來更圓潤 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 增加陰影使框架看起來更有立體感 */
}

.form-container {
    text-align: center;
}

.form-container h2 {
    margin-bottom: 25px; /* 增加 margin-bottom 使標題與表單之間有更多空間 */
    color: #333;
    font-size: 24px; /* 增加標題字體大小 */
    font-weight: 600; /* 增加標題字體粗細 */
}

.input-group {
    margin-bottom: 20px; /* 增加 margin-bottom 使輸入框之間有更多空間 */
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px; /* 增加 margin-bottom 使標籤與輸入框之間有更多空間 */
    color: #555;
    font-size: 16px; /* 增加標籤字體大小 */
}

.input-group input {
    width: 100%;
    padding: 12px; /* 增加 padding 使輸入框看起來更大 */
    border: 1px solid #ddd;
    border-radius: 6px; /* 增加 border-radius 使輸入框看起來更圓潤 */
    box-sizing: border-box;
    font-size: 16px; /* 增加輸入框字體大小 */
}

.btn {
    width: 100%;
    padding: 12px 20px; /* 增加 padding 使按鈕看起來更大 */
    border: none;
    border-radius: 6px; /* 增加 border-radius 使按鈕看起來更圓潤 */
    cursor: pointer;
    font-size: 18px; /* 增加按鈕字體大小 */
    font-weight: 600; /* 增加按鈕字體粗細 */
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.switch-form {
    margin-top: 25px; /* 增加 margin-top 使切換連結與表單之間有更多空間 */
    font-size: 16px; /* 增加切換連結字體大小 */
}

.switch-form a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600; /* 增加切換連結字體粗細 */
}

.hidden {
    display: none;
}

.icon-arrow {
    margin-left: 5px;
}

.btn-success {
    background-color: #28a745;
    color: white;
}
.btn-warning {
    background-color: #ffc107;
    color: #333;
}
.logo {
    display: block;
    margin: 0 auto 20px; /* Center the logo and add spacing below */
    width: 250px; /* 維持你設定的 250px 寬度 */
    height: auto; /* Maintain aspect ratio */
}


/* Modal 內容區塊 */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* 條款捲動區域 */
.terms-text {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

#closeTermsBtn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: not-allowed;
}

#closeTermsBtn.enabled {
    cursor: pointer;
    background-color: #28a745;
}

/* 隱藏用 */
.hidden {
    display: none;
}

.modal.show {
    z-index: 1610;
}

/* 同時也需要提高 Modal 背景遮罩的 z-index */
.modal-backdrop {
    z-index: 1600;
}