
/* 註冊頁面特有樣式 */
.form-subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

.form-header{
    margin-bottom: 23px;
}

/* 選項卡樣式 */
.register-tabs {
    margin-bottom: 20px;
}

.register-tabs .layui-tab-title {
    border-bottom: 1px solid #e6e6e6;
    background: none;
}

.register-tabs .layui-tab-title li {
    color: #666;
    font-size: 16px;
    padding: 0 30px;
    line-height:39px;
    min-width: 120px;
    text-align: center;
}

.register-tabs .layui-tab-title .layui-this {
    color: #8A0906;
    border-bottom: 2px solid #8A0906;
}

.register-tabs .layui-tab-title .layui-this:after {
    display: none;
}

.register-tabs .layui-tab-content {
    padding: 20px 0 0 0;
}

/* 表單樣式 */
.register-form {
    max-width: 400px;
    margin: 0 auto;
}

.register-form .layui-form-item {
    margin-bottom: 13px;
}

.register-form .layui-input-wrap {
    position: relative;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.3s;
}

.register-form .layui-input-wrap:hover {
    border-color: #8A0906;
}

.register-form .layui-input-wrap:focus-within {
    border-color: #8A0906;
    box-shadow: 0 0 0 2px rgba(138, 9, 6, 0.1);
}

.register-form .layui-input-wrap.verification-wrap{
    border: none;
}

.register-form .layui-input-wrap.verification-wrap:hover{
    border-color: transparent;
}

.register-form .layui-input-wrap.verification-wrap:focus-within {
    border-color: transparent;
    box-shadow: none;
}

.register-form .layui-input-wrap.verification-wrap .layui-input{
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 16px 12px 16px 35px;
}
.register-form .layui-input-wrap.verification-wrap .layui-input-prefix{
    top: 60%;
}

.register-form .layui-input-prefix {
    position: absolute;
    left: 0px;
    top: 61%;
    transform: translateY(-50%);
    color: #999;
    z-index: 2;
}

.register-form .layui-input {
    border: none;
    padding: 12px 12px 12px 30px;
    height: 48px;
    line-height: 24px;
    font-size: 14px;
    background: transparent;
}

.register-form .layui-input:focus {
    border: none;
    box-shadow: none;
}

/* 電話號碼輸入框特殊樣式 */
.phone-wrap {
    display: flex;
    align-items: center;
}

.country-code-select {
    border: none;
    background: transparent;
    padding: 12px 8px 12px 40px;
    font-size: 14px;
    color: #333;
    min-width: 80px;
    border-right: 1px solid #e6e6e6;
}

.phone-wrap .layui-unselect.layui-form-select{
    width:100px
}

.phone-input {
    flex: 1;
    padding-left: 12px !important;
}

/* 驗證碼輸入框 */
.verification-item {
    position: relative;
}

.verification-wrap {
    display: flex;
    align-items: center;
}

.verification-wrap .layui-input {
    flex: 1;
    border-right: 1px solid #e6e6e6;
    border-radius: 0;
}

.send-code-btn {
    border: none;
    background: transparent;
    color: #8A0906;
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
    min-width: 100px;
    height: auto;
    line-height: 1.4;
}

.send-code-btn:hover {
    background: rgba(138, 9, 6, 0.05);
    color: #8A0906;
}

.send-code-btn.disabled {
    color: #999;
    cursor: not-allowed;
}

.send-code-btn.disabled:hover {
    background: transparent;
}

/* 協議勾選框 */
.register-form .layui-form-item:has([name="agreement"]) {
    margin-bottom: 25px;
}

.register-form .layui-form-checkbox {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.agreement-link,
.privacy-link {
    color: #8A0906;
    text-decoration: none;
}

.agreement-link:hover,
.privacy-link:hover {
    text-decoration: underline;
}

/* 註冊按鈕 */
.register-btn {
    background: #8A0906 !important;
    border-color: #8A0906 !important;
    color: #fff !important;
    height: 48px;
    line-height: 48px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s;
}

.register-btn:hover {
    background: #a50a07 !important;
    border-color: #a50a07 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 9, 6, 0.3);
}

.register-btn:active {
    transform: translateY(0);
}

/* 底部鏈接 */
.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.form-footer p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.login-link {
    color: #8A0906;
    text-decoration: none;
    font-weight: 500;
}

.login-link:hover {
    text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
        margin: 20px;
    }

    .register-form {
        max-width: 100%;
    }

    .register-tabs .layui-tab-title li {
        padding: 0 20px;
        min-width: 100px;
        font-size: 15px;
    }

    .verification-wrap {
        flex-direction: column;
        gap: 11px;
    }

    .verification-wrap .layui-input {
        border-right: none;
        border-bottom: 1px solid #e6e6e6;
    }

    .send-code-btn {
        width: 100%;
        border: 1px solid #8A0906;
        border-radius: 6px;
        background: #fff;
        height: 48px;
        font-size: 15px;
    }

    .country-code-select {
        min-width: 70px;
        padding-left: 35px;
    }

    .register-form .layui-input-wrap.verification-wrap .layui-input-prefix{
        top: 56%;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 10px 0px;
        padding: 15px 0px;
    }

    .register-tabs .layui-tab-title li {
        padding: 0 15px;
        font-size: 14px;
    }

    .register-form .layui-input {
        font-size: 16px; /* 防止iOS縮放 */
    }

    .login-header{
        margin-bottom: 28px;
    }
}

/* 錯誤狀態 */
.layui-form-danger {
    border-color: #ff5722 !important;
}

.layui-form-danger:focus-within {
    box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.1) !important;
}

/* 加載狀態 */
.layui-btn-loading {
    position: relative;
    pointer-events: none;
}

.layui-btn-loading:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: layui-rotate 1s linear infinite;
}

@keyframes layui-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
