/* ========== OTP 樣式 ========== */

/* OTP 區域容器 - 相對定位 */
#otpBlock {
    position: relative;
    margin-bottom: 0px;
}

/* OTP 輸入框 - 全寬 */
#otp {
    width: 100%;
    padding-right: 110px;  /* 為按鈕留出空間 */
}

/* 發送驗證碼按鈕 - 絕對定位在輸入框內 */
#sendOtpBtn {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    background: #FF9700;
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 0 12px;
    font-size: 15px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 38px;
    line-height: 24px;
}

#sendOtpBtn:hover:not(:disabled) {
    background: #da8305;
}

#sendOtpBtn:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* OTP 狀態訊息 */
#otpStatus {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    color: white;
}

#otpStatus.success {
    color: #90EE90;
}

#otpStatus.error {
    color: #ff6b6b;
}
@media (max-width: 1600px) {
	#sendOtpBtn {

		border-radius:0 8px 8px 0;
		height: 32px;
	}
}
/* 響應式：手機版調整 */
@media (max-width: 768px) {
    #otp {
        padding-right: 100px;
    }
    
    #sendOtpBtn {
        padding: 0 8px;
        font-size: 16px;
        height: 39px;
        line-height: 26px;
    }
    
    /* 確保手機版 OTP 在電話下面、電郵上面 */
    #common_form .form_main .form_c .block_b#otpBlock {
        display: block;
        width: 100%;
        order: 0; /* 確保自然順序 */
    }
    
    /* 移除可能造成順序錯亂的隱藏規則 */
    #form .body .form .empty {
        display: none;
    }
}