/* 注册页面样式 */
.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.register-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    animation: slideUp 0.6s ease-out;
}

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

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-header p {
    color: #666;
    font-size: 1.1rem;
}

.register-form {
    margin-bottom: 25px;
}

.form-row {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

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

.required {
    color: #e74c3c;
    margin-left: 2px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 1.1rem;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
    color: #aaa;
}

.verify-btn {
    position: absolute;
    right: 10px;
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.verify-btn:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.verify-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #667eea;
}

.hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
    margin-left: 5px;
}

.password-strength {
    margin-top: 10px;
}

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

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

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

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

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

.strength-text {
    font-size: 0.8rem;
    color: #999;
}

.form-agreement {
    margin: 25px 0;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.agreement-checkbox input {
    display: none;
}

.agreement-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.agreement-checkbox input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.agreement-checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.agreement-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agreement-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.register-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.register-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.register-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-text {
    display: block;
}

.btn-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.register-btn.loading .btn-text {
    opacity: 0;
}

.register-btn.loading .btn-loading {
    display: block;
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
}

.social-register {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: #667eea;
}

.social-btn i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.social-btn.wechat i {
    color: #07c160;
}

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

.social-btn.weibo i {
    color: #e6162d;
}

.login-link {
    text-align: center;
    color: #666;
}

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

.login-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 背景装饰 */
.register-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 70%;
    right: 10%;
    animation-delay: 2s;
}

.circle-3 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

.circle-4 {
    width: 80px;
    height: 80px;
    top: 25%;
    right: 20%;
    animation-delay: 1s;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .register-wrapper {
        padding: 30px 25px;
        margin: 10px;
    }
    
    .register-header h1 {
        font-size: 2rem;
    }
    
    .social-register {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .social-btn {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }
    
    .social-btn i {
        margin-bottom: 0;
        font-size: 1.3rem;
    }
    
    .input-group input {
        padding: 12px 12px 12px 40px;
    }
    
    .input-group i {
        left: 12px;
        font-size: 1rem;
    }
    
    .verify-btn {
        right: 8px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .password-toggle {
        right: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .register-wrapper {
        padding: 25px 20px;
    }
    
    .register-header h1 {
        font-size: 1.8rem;
    }
    
    .input-group input {
        padding: 10px 10px 10px 35px;
        font-size: 0.9rem;
    }
    
    .input-group i {
        left: 10px;
        font-size: 0.9rem;
    }
    
    .verify-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .password-toggle {
        right: 10px;
        font-size: 0.9rem;
    }
}

/* 错误状态 */
.input-group.error input {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.input-group.error + .error-message {
    display: block;
}

/* 成功状态 */
.success-message {
    background: #2ecc71;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

/* 验证码倒计时样式 */
.countdown {
    color: #999;
    font-size: 0.85rem;
}

/* 表单验证提示 */
.validation-hint {
    font-size: 0.8rem;
    margin-top: 3px;
    padding-left: 5px;
}

.validation-hint.valid {
    color: #2ecc71;
}

.validation-hint.invalid {
    color: #e74c3c;
}