/* Inheriting from login.css */

.register-wrapper {
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.register-container {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.page-title {
    color: var(--white);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 40px;
}

.cards-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.channel-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 30px;
    flex: 1;
    max-width: 400px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f4f8;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background 0.2s, color 0.2s;
}

.channel-card:hover .card-icon {
    background: #fff0eb;
    color: var(--primary-color);
}

.channel-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.channel-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
    flex: 1;
}

.channel-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-align: center;
    font-size: 15px;
    transition: background 0.2s;
}

.channel-btn.ghost {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.channel-card:hover .channel-btn {
    opacity: 0.9;
}

.channel-card:hover .channel-btn.ghost {
    background: var(--primary-color);
    color: var(--white);
}

/* Specific Page styling for Register forms */
.register-form-container {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    margin: 30px auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--white); /* White on login background */
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.back-link:hover {
    opacity: 1;
}

/* Login link adjustment */
.register-login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}
.register-login-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {
    .register-wrapper {
        padding: 70px 20px 50px; /* 为top-nav和footer留出空间 */
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .cards-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .channel-card {
        width: 100%;
        padding: 32px 24px; /* 减小padding */
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px; /* 增加间距 */
    }
    
    .card-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .channel-title {
        font-size: 18px;
        margin-bottom: 16px; /* 增加间距 */
    }
    
    .channel-desc {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 24px; /* 调整间距 */
    }
    
    .channel-btn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .register-wrapper {
        padding: 60px 16px 40px; /* 小屏幕进一步优化 */
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .cards-wrapper {
        gap: 20px;
    }
    
    .channel-card {
        padding: 28px 20px;
    }
    
    .card-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 18px;
    }
    
    .card-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .channel-title {
        font-size: 17px;
        margin-bottom: 14px;
    }
    
    .channel-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }
}
