/* BiCupid 注册页面自定义样式 */

/* 全局样式 */
body {
    font-family: 'Poppins', 'Roboto', Arial, sans-serif;
}

/* 英雄区域样式 */
.signup-hero {
    background: linear-gradient(135deg, #e74064 0%, #9b59b6 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.signup-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.signup-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.signup-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gradient-text {
    background: linear-gradient(to right, #fff, #ffccd5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 统计数据样式 */
.signup-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    height: 50px;
    width: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat strong {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 徽章样式 */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.badge i {
    font-size: 1rem;
}

/* 注册表单容器样式 */
.signup-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: -50px;
}

.signup-header {
    text-align: center;
    padding: 30px 40px 20px;
}

.signup-header h2 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.signup-header p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* 进度条样式 */
.signup-progress {
    display: flex;
    justify-content: space-between;
    margin: 0 auto 30px;
    position: relative;
    max-width: 600px;
}

.signup-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 3px;
    width: 100%;
    background: #e0e0e0;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #999;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.step-label {
    font-size: 0.85rem;
    color: #999;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #e74064 0%, #9b59b6 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 15px rgba(231, 64, 100, 0.3);
}

.progress-step.active .step-label {
    color: #e74064;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: #4CAF50;
    border-color: transparent;
    color: #fff;
}

.progress-step.completed .step-label {
    color: #4CAF50;
}

/* 表单样式增强 */
.signup-form {
    padding: 0 40px 40px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.form-step h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.form-step p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

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

.form-group {
    margin-bottom: 25px;
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    transition: all 0.3s ease;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    color: #333;
}

.input-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: #e74064;
    box-shadow: 0 0 0 3px rgba(231, 64, 100, 0.1);
    outline: none;
    background-color: #fff;
}

.input-wrapper input:focus + i,
.input-wrapper select:focus + i,
.input-wrapper textarea:focus + i {
    color: #e74064;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #e74064;
}

.password-strength {
    height: 5px;
    margin-top: 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.password-strength.weak {
    background: #ff5252;
    width: 30%;
}

.password-strength.medium {
    background: #ffa000;
    width: 60%;
}

.password-strength.strong {
    background: #4caf50;
    width: 100%;
}

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

/* 复选框样式 */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    color: #e74064;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.checkbox-label:hover input ~ .checkmark {
    border-color: #e74064;
    background-color: #fff;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #e74064;
    border-color: #e74064;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 年龄范围样式 */
.age-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-range select {
    flex: 1;
    padding-left: 15px;
}

.age-range span {
    color: #999;
    font-size: 0.9rem;
}

/* 按钮样式 */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.prev-btn,
.next-btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.prev-btn {
    background-color: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
}

.prev-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.next-btn,
.signup-btn {
    background: linear-gradient(135deg, #e74064 0%, #9b59b6 100%);
    color: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(231, 64, 100, 0.3);
    position: relative;
    overflow: hidden;
}

.next-btn:hover,
.signup-btn:hover {
    box-shadow: 0 7px 20px rgba(231, 64, 100, 0.4);
    transform: translateY(-2px);
}

.next-btn::after,
.signup-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.next-btn:hover::after,
.signup-btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-loading {
    display: none;
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
}

/* 社交登录样式 */
.social-signup {
    padding: 0 40px 30px;
}

.signup-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #999;
    font-size: 0.9rem;
}

.signup-divider::before,
.signup-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.signup-divider span {
    padding: 0 15px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    flex: 1;
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.facebook-btn {
    background-color: #3b5998;
    color: #fff;
}

.facebook-btn:hover {
    background-color: #344e86;
}

.google-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.google-btn:hover {
    background-color: #f5f5f5;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #666;
}

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

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

/* 优势部分样式 */
.signup-benefits {
    padding: 40px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    border-top: 1px solid #eee;
}

.signup-benefits h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
    position: relative;
}

.signup-benefits h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #e74064, #9b59b6);
    border-radius: 3px;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.benefit-item i {
    font-size: 2rem;
    color: #e74064;
    background: linear-gradient(135deg, #e74064 0%, #9b59b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.benefit-item h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.2rem;
}

.benefit-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 成功故事部分样式增强 */
.success-stories-preview {
    position: relative;
    z-index: 1;
}

.story-card {
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-10px);
}

/* 响应式样式 */
@media (max-width: 992px) {
    .signup-hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .signup-stats {
        gap: 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .checkbox-group {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .signup-container {
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {
    .signup-hero {
        padding: 60px 0;
    }
    
    .signup-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .signup-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .stat {
        flex-direction: row;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        justify-content: flex-start;
    }
    
    .stat-icon {
        margin-bottom: 0;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .signup-header,
    .signup-form,
    .social-signup,
    .signup-benefits {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .step-label {
        display: none;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }
    
    .benefit-item i {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .signup-hero h1 {
        font-size: 1.8rem;
    }
    
    .signup-container {
        margin-top: -30px;
        border-radius: 15px 15px 0 0;
    }
    
    .signup-header h2 {
        font-size: 1.8rem;
    }
    
    .form-step h2 {
        font-size: 1.5rem;
    }
    
    .prev-btn, 
    .next-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}