/* ================================================
   Register Module CSS
   適用於 Views/Register 底下所有頁面
   ================================================ */

/* ================================================
   1. 基礎共用設定
   ================================================ */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 手機版面容器 */
.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    position: relative;
}

.mobile-container.with-padding {
    padding-bottom: 40px;
}

/* ================================================
   2. Header 設定
   ================================================ */
.app-header {
    background: linear-gradient(to right, #008ED0, #105FB0);
    background-color: #0154A4;
    padding: 0 30px;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 10;
    height: 60px;
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ================================================
   3. Logo 區域
   ================================================ */
.logo-section {
    padding: 20px 0;
    text-align: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

/* ================================================
   4. 卡片樣式
   ================================================ */
.custom-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 0 15px;
    background: white;
}

.custom-card.padding-md {
    padding: 25px 20px;
}

.custom-card.padding-lg {
    padding: 30px 25px;
}

/* ================================================
   5. 輸入框設定
   ================================================ */
.form-floating > label {
    color: #4b8ccb;
}

.form-control:focus {
    border-color: #4b8ccb;
    box-shadow: 0 0 0 0.25rem rgba(75, 140, 203, 0.25);
}

/* 輸入框清除按鈕 (單一按鈕) */
.input-clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    z-index: 5;
}

/* 輸入框右側圖示群組 (多個按鈕) */
.input-icons-group {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.clear-btn {
    color: #999;
}

.toggle-password {
    color: #333;
}

/* 密碼輸入框圖示 (ChangePassword 頁面用) */
.password-icons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
}

/* ================================================
   6. 按鈕設定
   ================================================ */

/* 主要按鈕 (藍色) */
.btn-primary-custom {
    background-color: #3b66f5;
    border-color: #3b66f5;
    color: white;
    padding: 10px;
    font-size: 1.1rem;
    border-radius: 5px;
    width: 100%;
}

.btn-primary-custom:hover {
    background-color: #2a52d6;
}

.btn-primary-custom.padding-md {
    padding: 12px;
    font-weight: 500;
}

/* 次要按鈕 (白色框線) */
.btn-outline-custom {
    color: #3b66f5;
    border-color: #3b66f5;
    padding: 10px;
    font-size: 1rem;
    background: white;
}

.btn-outline-custom:hover {
    background-color: #f0f4ff;
    color: #3b66f5;
    border-color: #3b66f5;
}

/* 倒數計時按鈕 (灰色) */
.btn-countdown {
    background-color: #ccc;
    border: 1px solid #ccc;
    color: white;
    height: 58px;
    width: 100%;
    border-radius: 4px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* 上一步文字按鈕 */
.btn-link-back {
    color: #3b66f5;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
}

.btn-link-back:hover {
    color: #2a52d6;
    text-decoration: underline;
}

/* ================================================
   7. 步驟流程圖 (Stepper)
   ================================================ */
.stepper-container {
    display: flex;
    justify-content: space-around;
    padding: 0 20px 20px 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.step-label {
    font-size: 0.85rem;
    color: #999;
}

/* 目前步驟 (藍色) */
.step-active .step-circle {
    background-color: #3b66f5;
    color: white;
}

.step-active .step-label {
    color: #3b66f5;
    font-weight: 500;
}

/* 未完成步驟 (灰色) */
.step-inactive .step-circle {
    background-color: #adb5bd;
    color: white;
}

.step-inactive .step-label {
    color: #adb5bd;
}

/* ================================================
   8. 勾選框 (Checkbox) - Index 頁面
   ================================================ */
.custom-check-group {
    margin-top: 15px;
}

.custom-check-group .form-check {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.custom-check-group .form-check-input {
    margin-top: 4px;
    margin-right: 10px;
    flex-shrink: 0;
    border-color: #3b66f5;
}

.custom-check-group .form-check-input:checked {
    background-color: #3b66f5;
    border-color: #3b66f5;
}

.custom-check-group .form-check-label {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    text-align: justify;
}

/* ================================================
   9. 連結文字樣式
   ================================================ */
.link-text {
    color: #3b66f5;
    text-decoration: none;
    cursor: pointer;
}

.link-text:hover {
    text-decoration: underline;
}

.footer-link {
    color: #3b66f5;
    text-decoration: none;
    cursor: pointer;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ================================================
   10. 標題與提示文字
   ================================================ */
.register-title {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #000;
}

/* 密碼規則提示 */
.password-hint {
    font-size: 0.9rem;
    color: #000;
    font-weight: 500;
    margin-top: -10px;
    margin-bottom: 20px;
    line-height: 1.4;
    padding-left: 2px;
}

.password-hint.normal {
    font-weight: normal;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

/* 提示文字 (置中) */
.instruction-text {
    text-align: center;
    font-size: 1rem;
    color: #333;
    margin-bottom: 25px;
}

/* 限制次數文字 */
.limit-text {
    font-size: 0.9rem;
    color: #333;
    margin-top: 5px;
    margin-bottom: 25px;
}

/* 底部條款文字 */
.footer-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

/* 底部說明文字 */
.footer-text {
    padding: 20px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}

/* 橘色提示文字 */
.text-orange-custom {
    color: #f58220;
    font-size: 1rem;
    margin-top: 15px;
}

/* ================================================
   11. LINE 帳號樣式 - CheckAccount / Password 頁面
   ================================================ */
.line-account {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.line-account.mb-lg {
    margin-bottom: 25px;
}

.line-icon {
    color: #06c755;
    font-size: 1.8rem;
    margin: 0 8px;
}

/* ================================================
   12. 圖示區域 - RegisterVerify / RegisterComplete / BindSuccess 頁面
   ================================================ */
.sms-icon-area {
    text-align: center;
    margin-bottom: 20px;
}

.sms-icon {
    font-size: 3.5rem;
    color: #ffe082;
    text-shadow: 2px 2px 0px #666;
}

/* 完成圖片 (RegisterComplete / BindSuccess 頁面) */
.complete_img {
    max-width: 180px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ================================================
   13. 間距輔助類別
   ================================================ */
.spacer-bottom {
    height: 30px;
}
