/* 舞星档案馆 - 注册页面专用样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.register-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 28px;
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.12),
        0 0 0 1px rgba(255,255,255,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
    overflow: hidden;
    width: 100%;
    max-width: 1300px;
    display: flex;
    min-height: 750px;
    position: relative;
    z-index: 1;
    animation: containerSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes containerSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.register-left {
    flex: 0 0 420px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 70px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.register-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.12) 0%, transparent 55%),
        linear-gradient(45deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    animation: leftPanelFloat 15s ease-in-out infinite;
}

@keyframes leftPanelFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.register-left h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, #ffffff, #f8f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

.register-left p {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 320px;
}

.register-right {
    flex: 1;
    padding: 50px 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    overflow-y: auto;
    max-height: 750px;
    position: relative;
}

.register-right::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    border-radius: 50%;
    filter: blur(40px);
    animation: rightPanelDecor 10s ease-in-out infinite;
}

@keyframes rightPanelDecor {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.2); }
}

.register-form h2 {
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.2rem;
    text-align: center;
    font-weight: 700;
    position: relative;
    letter-spacing: -0.5px;
}

.register-form h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 3px;
    animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 15px rgba(102, 126, 234, 0.6); }
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8ecf0;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.15),
        0 8px 25px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #d1d9e6;
    transform: translateY(-1px);
}

/* 按钮样式 */
.verify-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.register-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 20px;
    margin-bottom: 35px;
    box-shadow: 
        0 12px 30px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    overflow: hidden;
}

.register-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    background: linear-gradient(135deg, #5a6fd8 0%, #6b4190 50%, #e081e9 100%);
}

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

/* 社交登录 */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-btn.wechat {
    background: #1aad19;
}

.social-btn.qq {
    background: #12b7f5;
}

.social-btn.weibo {
    background: #e6162d;
}

.social-btn:hover {
    transform: translateY(-6px) scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* 登录链接 */
.login-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
    color: #666;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

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

/* 消息提示 */
.error-message {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.success-message {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 输入验证状态 */
.form-group.success input,
.form-group.valid input {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

.form-group.error input,
.form-group.invalid input {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.validation-message {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.validation-message.success,
.validation-message.valid {
    color: #27ae60;
}

.validation-message.error,
.validation-message.invalid {
    color: #e74c3c;
}

/* 照片上传样式 */
.photo-upload {
    border: 2px dashed #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.photo-upload.dragover {
    border-color: #667eea;
    background-color: #f0f4ff;
}

.photo-upload-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.photo-upload-item {
    flex: 1;
}

.photo-upload-label {
    display: block;
    cursor: pointer;
}

.photo-preview {
    width: 100%;
    height: 120px;
    border: 2px dashed #e1e5e9;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.photo-preview:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.photo-preview.has-image {
    border-style: solid;
    border-color: #27ae60;
}

.upload-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.photo-preview span {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.photo-upload-item input[type="file"] {
    display: none;
}

.upload-tips {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.upload-tips p {
    margin: 5px 0;
    font-size: 12px;
    color: #666;
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-fill.weak {
    width: 25%;
    background: #e74c3c;
}

.strength-fill.fair {
    width: 50%;
    background: #f39c12;
}

.strength-fill.good {
    width: 75%;
    background: #3498db;
}

.strength-fill.strong {
    width: 100%;
    background: #27ae60;
}

.strength-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.requirement {
    font-size: 11px;
    color: #e74c3c;
    transition: color 0.3s ease;
}

.requirement.met {
    color: #27ae60;
}

.requirement.met::before {
    content: '✓';
}

.requirement:not(.met)::before {
    content: '✗';
}

/* 验证码输入组 */
.verification-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.verification-group input {
    flex: 1;
}

.verification-group .verify-btn {
    margin: 0;
    white-space: nowrap;
}

.verification-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verification-input-group input {
    flex: 1;
}

.send-code-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.send-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.send-code-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 加载动画 */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 实时验证状态 */
.real-time-validation {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.real-time-validation.success {
    color: #27ae60;
}

.real-time-validation.error {
    color: #e74c3c;
}

.info-message {
    color: #3498db;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .register-container {
        max-width: 100%;
        border-radius: 15px;
        flex-direction: column;
    }
    
    .register-form {
        padding: 30px 20px;
    }
    
    .register-header {
        padding: 25px 20px;
    }
    
    .register-header h2 {
        font-size: 24px;
    }
    
    .social-buttons {
        flex-direction: column;
    }

    .register-left {
        padding: 40px 20px;
    }

    .register-right {
        padding: 40px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .verification-group {
        flex-direction: column;
        gap: 15px;
    }

    .verify-btn {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .verification-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .verification-group .verify-btn {
        width: 100%;
    }
    
    .social-buttons {
        gap: 10px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 16px;
    }
    
    .register-btn {
        padding: 15px;
        font-size: 16px;
    }

    .register-container {
        border-radius: 16px;
    }

    .register-left {
        padding: 30px 20px;
    }

    .register-right {
        padding: 30px 20px;
    }

    .register-left h1 {
        font-size: 1.8rem;
    }

    .register-form h2 {
        font-size: 1.8rem;
    }
}
   