/* 瑞华博客网 - 注册页面样式 */
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e6d5f5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gradientBG 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 左右布局容器 */
.split-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.split-left {
    flex: 1;
    background-color: #8e44ad;
    background-image: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    padding: 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 550px;
}

.split-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/ruihua.png') center center;
    background-size: cover;
    opacity: 0.08;
    z-index: 0;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.05; }
    100% { opacity: 0.12; }
}

.split-left-content {
    position: relative;
    z-index: 1;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.split-left h1 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.split-left p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.features {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-icon {
    margin-right: 15px;
    font-size: 24px;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background-color: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.split-right {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 注册容器 */
.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
}

/* 注册标题 */
.login-title {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #9b59b6, #8e44ad);
    border-radius: 3px;
}

/* 注册选项卡 */
.register-tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.register-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 15px;
    color: #666;
}

.register-tab.active {
    background: linear-gradient(to right, #9b59b6, #8e44ad);
    color: #fff;
}

.register-form-container {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.register-form-container.active {
    display: block;
}

/* 注册表单 */
.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
    transition: color 0.3s;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #f9f9f9;
    height: auto;
}

.login-form input:focus {
    border-color: #8e44ad;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2);
    outline: none;
    background-color: #fff;
}

.login-form .input-group:focus-within label {
    color: #8e44ad;
}

.input-icon {
    position: absolute;
    top: 38px;
    right: 15px;
    height: auto;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    z-index: 2;
    pointer-events: none;
    margin: auto 0;
    transition: color 0.3s;
}

.login-form .input-group:focus-within .input-icon {
    color: #8e44ad;
}

/* 验证码区域 */
.verification-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 0 0 20px;
    background-color: #fff;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.verification-box:focus-within {
    border-color: #8e44ad;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2);
}

/* 验证码输入组 */
.verification-input-group {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

/* 验证码输入框 */
.verification-input-group input {
    flex: 1;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    background-color: #f9f9f9;
    transition: all 0.3s;
}

.verification-input-group input:focus {
    border-color: #8e44ad;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2);
    outline: none;
    background-color: #fff;
}

/* 验证码按钮 */
.verification-input-group .send-code-btn {
    min-width: 120px;
    height: auto;
    padding: 12px 15px;
    background: linear-gradient(to right, #9b59b6, #8e44ad);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.3);
    white-space: nowrap;
}

.verification-input-group .send-code-btn:hover {
    background: linear-gradient(to right, #8e44ad, #9b59b6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.4);
}

.verification-input-group .send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 验证码提示 */
.verification-tip {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    padding-left: 2px;
}

/* 邮箱验证码输入框特殊样式 */
#email-verification, #phone-verification {
    border-color: #ddd;
    background-color: #f9f9f9;
}

#email-verification:focus, #phone-verification:focus {
    border-color: #8e44ad;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2);
    background-color: #fff;
}

/* 隐私政策同意选项样式 */
.privacy-agreement {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    user-select: none;
}

.privacy-agreement input[type="checkbox"] {
    margin: 3px 10px 0 0;
    width: 16px;
    height: 16px;
    accent-color: #8e44ad;
}

.privacy-agreement label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    display: inline;
    line-height: 1.4;
}

.privacy-agreement a {
    color: #8e44ad;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.privacy-agreement a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -1px;
    left: 0;
    background-color: #8e44ad;
    transition: width 0.3s;
}

.privacy-agreement a:hover::after {
    width: 100%;
}

/* 注册按钮 */
.login-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #9b59b6, #8e44ad);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
    height: auto;
    margin-top: 10px;
}

.login-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s;
}

.login-form button[type="submit"]:hover {
    background: linear-gradient(to right, #8e44ad, #9b59b6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

.login-form button[type="submit"]:hover::before {
    left: 100%;
}

.login-form button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(142, 68, 173, 0.3);
}

/* 错误消息 */
.error-message {
    color: #e74c3c;
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: #fdecea;
    border-radius: 8px;
    font-size: 14px;
    border-left: 4px solid #e74c3c;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 成功消息 */
.success-message {
    color: #27ae60;
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: #e8f8f5;
    border-radius: 8px;
    font-size: 14px;
    border-left: 4px solid #27ae60;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 切换按钮 */
.switch-form {
    display: inline-block;
    margin-top: 30px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.switch-form:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.switch-form:active {
    transform: translateY(-1px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .split-container {
        flex-direction: column;
        margin: 10px;
        max-width: 100%;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    }
    
    .split-left, .split-right {
        width: 100%;
    }
    
    .split-left {
        min-height: auto;
        padding: 30px 20px;
        border-radius: 12px 12px 0 0;
        display: block;
    }
    
    .split-right {
        padding: 25px 20px;
        border-radius: 0 0 12px 12px;
    }
    
    .login-title {
        font-size: 22px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .split-left h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .split-left p {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .features {
        margin-top: 25px;
    }
    
    .register-tab {
        padding: 10px;
        font-size: 14px;
    }
    
    .verification-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .verification-input-group input {
        width: 100%;
    }
    
    .verification-input-group .send-code-btn {
        width: 100%;
    }
    
    .switch-form {
        margin-top: 20px;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .split-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        height: auto;
        overflow-y: visible;
    }
    
    .split-left, .split-right {
        border-radius: 0;
        display: block;
    }
    
    .split-left {
        padding: 25px 15px;
        min-height: auto;
    }
    
    .split-right {
        padding: 20px 15px;
    }
    
    .login-container {
        padding: 0;
    }
    
    .login-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .login-form input {
        padding: 10px 15px;
    }
    
    .login-form button[type="submit"] {
        padding: 12px;
        font-size: 15px;
    }
    
    .feature-item {
        margin-bottom: 12px;
    }
    
    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
        margin-right: 10px;
    }
    
    .verification-box {
        padding: 10px;
    }
    
    /* 优化在超小屏幕上的显示 */
    @media (max-height: 600px) {
        .split-left {
            padding: 15px;
        }
        
        .split-left h1 {
            font-size: 20px;
            margin-bottom: 10px;
        }
        
        .split-left p {
            font-size: 14px;
            margin-bottom: 15px;
        }
        
        .features {
            margin-top: 15px;
        }
        
        .feature-item {
            margin-bottom: 8px;
        }
    }
} 