/* static/css/register.css */
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-sizing: border-box;
}

.register-box {
    background: white;
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.4s ease-out;
    box-sizing: border-box;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .register-container {
        min-height: 100vh;
        padding: 20px 16px;
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .register-box {
        padding: 32px 20px;
        border-radius: 16px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .register-box h2 {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .register-subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .register-form .form-group {
        margin-bottom: 16px;
    }
    
    .register-form input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .register-form .btn-primary {
        padding: 12px;
        font-size: 15px;
    }
    
    .send-code-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .social-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
}

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

.register-box h2 {
    color: #333;
    text-align: center;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 600;
}

.register-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 32px;
}

.register-form {
    display: block;
}

.register-form .form-group {
    margin-bottom: 20px;
}

.register-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.register-form input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.register-form .btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.register-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.register-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

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

/* 验证码输入组 */
.code-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

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

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

.send-code-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.send-code-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 密码强度 */
.password-strength {
    margin: 12px 0 20px 0;
}

.strength-bar {
    height: 4px;
    width: 0;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s;
    margin-bottom: 6px;
}

.strength-text {
    display: block;
    font-size: 12px;
    color: #999;
}

.strength-weak { 
    background: #ff4757; 
    width: 33%; 
}

.strength-medium { 
    background: #ffa502; 
    width: 66%; 
}

.strength-strong { 
    background: #2ed573; 
    width: 100%; 
}

/* 密码输入组 */
.password-input-group {
    position: relative;
}

.password-input-group input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    opacity: 0.6;
    transition: opacity 0.3s;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    opacity: 1;
}

/* 第三方登录样式 */
.social-login {
    margin-top: 0;
    margin-bottom: 24px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 16px;
    background: white;
}

.social-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    box-sizing: border-box;
    min-width: 0;
    font-size: 14px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.social-btn:hover {
    border-color: #d0d0d0;
    background: #f9f9f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn.google {
    border-color: #e0e0e0;
}

.social-btn.google:hover {
    border-color: #4285f4;
    background: #f8f9ff;
}

.social-btn.facebook {
    border-color: #e0e0e0;
}

.social-btn.facebook:hover {
    border-color: #1877f2;
    background: #f0f4ff;
}

.social-btn svg {
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .register-container {
        min-height: calc(100vh - 120px);
        padding: 20px;
    }
    
    .register-box {
        padding: 32px 24px;
    }
    
    .register-box h2 {
        font-size: 24px;
    }
}
